diff --git a/binaries/data/mods/public/simulation/components/Attack.js b/binaries/data/mods/public/simulation/components/Attack.js
index 64bec00..05e26ae 100644
a
|
b
|
|
1 | 1 | function Attack() {} |
2 | 2 | |
3 | | var bonusesSchema = |
| 3 | Attack.prototype.bonusesSchema = |
4 | 4 | "<optional>" + |
5 | 5 | "<element name='Bonuses'>" + |
6 | 6 | "<zeroOrMore>" + |
… |
… |
var bonusesSchema =
|
18 | 18 | "</element>" + |
19 | 19 | "</optional>"; |
20 | 20 | |
21 | | var preferredClassesSchema = |
| 21 | Attack.prototype.preferredClassesSchema = |
22 | 22 | "<optional>" + |
23 | 23 | "<element name='PreferredClasses' a:help='Space delimited list of classes preferred for attacking. If an entity has any of theses classes, it is preferred. The classes are in decending order of preference'>" + |
24 | 24 | "<attribute name='datatype'>" + |
… |
… |
var preferredClassesSchema =
|
28 | 28 | "</element>" + |
29 | 29 | "</optional>"; |
30 | 30 | |
31 | | var restrictedClassesSchema = |
| 31 | Attack.prototype.restrictedClassesSchema = |
32 | 32 | "<optional>" + |
33 | 33 | "<element name='RestrictedClasses' a:help='Space delimited list of classes that cannot be attacked by this entity. If target entity has any of these classes, it cannot be attacked'>" + |
34 | 34 | "<attribute name='datatype'>" + |
… |
… |
Attack.prototype.Schema =
|
112 | 112 | "<element name='RepeatTime' a:help='Time between attacks (in milliseconds). The attack animation will be stretched to match this time'>" + // TODO: it shouldn't be stretched |
113 | 113 | "<data type='positiveInteger'/>" + |
114 | 114 | "</element>" + |
115 | | bonusesSchema + |
116 | | preferredClassesSchema + |
117 | | restrictedClassesSchema + |
| 115 | Attack.prototype.bonusesSchema + |
| 116 | Attack.prototype.preferredClassesSchema + |
| 117 | Attack.prototype.restrictedClassesSchema + |
118 | 118 | "</interleave>" + |
119 | 119 | "</element>" + |
120 | 120 | "</optional>" + |
… |
… |
Attack.prototype.Schema =
|
139 | 139 | "<ref name='nonNegativeDecimal'/>" + |
140 | 140 | "</element>" + |
141 | 141 | "<element name='Spread' a:help='Radius over which missiles will tend to land (when shooting to the maximum range). Roughly 2/3 will land inside this radius (in metres). Spread is linearly diminished as the target gets closer.'><ref name='nonNegativeDecimal'/></element>" + |
142 | | bonusesSchema + |
143 | | preferredClassesSchema + |
144 | | restrictedClassesSchema + |
| 142 | Attack.prototype.bonusesSchema + |
| 143 | Attack.prototype.preferredClassesSchema + |
| 144 | Attack.prototype.restrictedClassesSchema + |
145 | 145 | "<optional>" + |
146 | 146 | "<element name='Splash'>" + |
147 | 147 | "<interleave>" + |
… |
… |
Attack.prototype.Schema =
|
151 | 151 | "<element name='Hack' a:help='Hack damage strength'><ref name='nonNegativeDecimal'/></element>" + |
152 | 152 | "<element name='Pierce' a:help='Pierce damage strength'><ref name='nonNegativeDecimal'/></element>" + |
153 | 153 | "<element name='Crush' a:help='Crush damage strength'><ref name='nonNegativeDecimal'/></element>" + |
154 | | bonusesSchema + |
| 154 | Attack.prototype.bonusesSchema + |
155 | 155 | "</interleave>" + |
156 | 156 | "</element>" + |
157 | 157 | "</optional>" + |
… |
… |
Attack.prototype.Schema =
|
166 | 166 | "<element name='Crush' a:help='Crush damage strength'><ref name='nonNegativeDecimal'/></element>" + |
167 | 167 | "<element name='MaxRange'><ref name='nonNegativeDecimal'/></element>" + // TODO: how do these work? |
168 | 168 | "<element name='MinRange'><ref name='nonNegativeDecimal'/></element>" + |
169 | | bonusesSchema + |
170 | | preferredClassesSchema + |
171 | | restrictedClassesSchema + |
| 169 | Attack.prototype.bonusesSchema + |
| 170 | Attack.prototype.preferredClassesSchema + |
| 171 | Attack.prototype.restrictedClassesSchema + |
172 | 172 | "</interleave>" + |
173 | 173 | "</element>" + |
174 | 174 | "</optional>" + |
… |
… |
Attack.prototype.Schema =
|
179 | 179 | "<element name='Pierce' a:help='Pierce damage strength'><ref name='nonNegativeDecimal'/></element>" + |
180 | 180 | "<element name='Crush' a:help='Crush damage strength'><ref name='nonNegativeDecimal'/></element>" + |
181 | 181 | "<element name='MaxRange'><ref name='nonNegativeDecimal'/></element>" + // TODO: how do these work? |
182 | | bonusesSchema + |
183 | | preferredClassesSchema + |
184 | | restrictedClassesSchema + |
| 182 | Attack.prototype.bonusesSchema + |
| 183 | Attack.prototype.preferredClassesSchema + |
| 184 | Attack.prototype.restrictedClassesSchema + |
185 | 185 | "</interleave>" + |
186 | 186 | "</element>" + |
187 | 187 | "</optional>"; |