| 1 | -- $Id: movedefs.lua 2682 2008-08-17 07:01:18Z kingraptor $ |
|---|
| 2 | -------------------------------------------------------------------------------- |
|---|
| 3 | -------------------------------------------------------------------------------- |
|---|
| 4 | -- |
|---|
| 5 | -- file: moveDefs.lua |
|---|
| 6 | -- brief: move data definitions |
|---|
| 7 | -- |
|---|
| 8 | -------------------------------------------------------------------------------- |
|---|
| 9 | -------------------------------------------------------------------------------- |
|---|
| 10 | |
|---|
| 11 | local moveDefs = { |
|---|
| 12 | |
|---|
| 13 | KBOT1 = { |
|---|
| 14 | footprintx = 1, |
|---|
| 15 | footprintz = 1, |
|---|
| 16 | maxwaterdepth = 15, |
|---|
| 17 | maxslope = 36, |
|---|
| 18 | crushstrength = 5, |
|---|
| 19 | }, |
|---|
| 20 | |
|---|
| 21 | KBOT2 = { |
|---|
| 22 | footprintx = 2, |
|---|
| 23 | footprintz = 2, |
|---|
| 24 | maxwaterdepth = 22, |
|---|
| 25 | maxslope = 36, |
|---|
| 26 | crushstrength = 50, |
|---|
| 27 | }, |
|---|
| 28 | |
|---|
| 29 | KBOT4 = { |
|---|
| 30 | footprintx = 4, |
|---|
| 31 | footprintz = 4, |
|---|
| 32 | maxwaterdepth = 22, |
|---|
| 33 | maxslope = 36, |
|---|
| 34 | crushstrength = 500, |
|---|
| 35 | }, |
|---|
| 36 | |
|---|
| 37 | AKBOT2 = { |
|---|
| 38 | footprintx = 2, |
|---|
| 39 | footprintz = 2, |
|---|
| 40 | maxwaterdepth = 5000, |
|---|
| 41 | depthmod = 0, |
|---|
| 42 | maxslope = 36, |
|---|
| 43 | crushstrength = 50, |
|---|
| 44 | }, |
|---|
| 45 | |
|---|
| 46 | AKBOT4 = { |
|---|
| 47 | footprintx = 4, |
|---|
| 48 | footprintz = 4, |
|---|
| 49 | maxwaterdepth = 5000, |
|---|
| 50 | depthmod = 0, |
|---|
| 51 | maxslope = 36, |
|---|
| 52 | crushstrength = 500, |
|---|
| 53 | }, |
|---|
| 54 | |
|---|
| 55 | AKBOT6 = { |
|---|
| 56 | footprintx = 6, |
|---|
| 57 | footprintz = 6, |
|---|
| 58 | maxwaterdepth = 5000, |
|---|
| 59 | depthmod = 0, |
|---|
| 60 | maxslope = 36, |
|---|
| 61 | crushstrength = 5000, |
|---|
| 62 | }, |
|---|
| 63 | |
|---|
| 64 | TKBOT1 = { |
|---|
| 65 | footprintx = 1, |
|---|
| 66 | footprintz = 1, |
|---|
| 67 | maxwaterdepth = 15, |
|---|
| 68 | maxslope = 72, |
|---|
| 69 | crushstrength = 5, |
|---|
| 70 | }, |
|---|
| 71 | |
|---|
| 72 | TKBOT2 = { |
|---|
| 73 | footprintx = 2, |
|---|
| 74 | footprintz = 2, |
|---|
| 75 | maxwaterdepth = 22, |
|---|
| 76 | maxslope = 72, |
|---|
| 77 | crushstrength = 50, |
|---|
| 78 | }, |
|---|
| 79 | |
|---|
| 80 | TANK2 = { |
|---|
| 81 | footprintx = 2, |
|---|
| 82 | footprintz = 2, |
|---|
| 83 | maxwaterdepth = 22, |
|---|
| 84 | maxslope = 18, |
|---|
| 85 | crushstrength = 50, |
|---|
| 86 | }, |
|---|
| 87 | |
|---|
| 88 | TANK4 = { |
|---|
| 89 | footprintx = 4, |
|---|
| 90 | footprintz = 4, |
|---|
| 91 | maxwaterdepth = 22, |
|---|
| 92 | maxslope = 18, |
|---|
| 93 | crushstrength = 500, |
|---|
| 94 | }, |
|---|
| 95 | |
|---|
| 96 | HOVER2 = { |
|---|
| 97 | footprintx = 2, |
|---|
| 98 | footprintz = 2, |
|---|
| 99 | maxslope = 36, |
|---|
| 100 | slopemod = 36.7, |
|---|
| 101 | crushstrength = 5, |
|---|
| 102 | }, |
|---|
| 103 | |
|---|
| 104 | BOAT2 = { |
|---|
| 105 | footprintx = 2, |
|---|
| 106 | footprintz = 2, |
|---|
| 107 | minwaterdepth = 5, |
|---|
| 108 | crushstrength = 50, |
|---|
| 109 | }, |
|---|
| 110 | |
|---|
| 111 | BOAT4 = { |
|---|
| 112 | footprintx = 4, |
|---|
| 113 | footprintz = 4, |
|---|
| 114 | maxwaterdepth = 10, |
|---|
| 115 | crushstrength = 500, |
|---|
| 116 | }, |
|---|
| 117 | |
|---|
| 118 | BOAT6 = { |
|---|
| 119 | footprintx = 6, |
|---|
| 120 | footprintz = 6, |
|---|
| 121 | maxwaterdepth = 15, |
|---|
| 122 | crushstrength = 5000, |
|---|
| 123 | }, |
|---|
| 124 | |
|---|
| 125 | UBOAT4 = { |
|---|
| 126 | footprintx = 4, |
|---|
| 127 | footprintz = 4, |
|---|
| 128 | maxwaterdepth = 15, |
|---|
| 129 | crushstrength = 5, |
|---|
| 130 | }, |
|---|
| 131 | } |
|---|
| 132 | |
|---|
| 133 | -------------------------------------------------------------------------------- |
|---|
| 134 | -------------------------------------------------------------------------------- |
|---|
| 135 | |
|---|
| 136 | -- convert from map format to the expected array format |
|---|
| 137 | |
|---|
| 138 | local array = {} |
|---|
| 139 | local i = 1 |
|---|
| 140 | for k,v in pairs(moveDefs) do |
|---|
| 141 | array[i] = v |
|---|
| 142 | v.name = k |
|---|
| 143 | i = i + 1 |
|---|
| 144 | end |
|---|
| 145 | |
|---|
| 146 | |
|---|
| 147 | -------------------------------------------------------------------------------- |
|---|
| 148 | -------------------------------------------------------------------------------- |
|---|
| 149 | |
|---|
| 150 | return array |
|---|
| 151 | |
|---|
| 152 | -------------------------------------------------------------------------------- |
|---|
| 153 | -------------------------------------------------------------------------------- |
|---|