Comment 11 for bug 894934

Revision history for this message
Millennium (kotaka) wrote :

Oh, and... if these modifiers are included, they should not add up, but rather override each other. For example:

You have a bike with Speed=10
Bike is hit by weapon with SpeedMod=.2
Bike now has Speed=2

Now, if you hit it with a weapon that has SpeedMod=1, this should not modify the current Speed (which is 2), but rather change the speed to 1x the original speed (which would be 10). This is important, because otherwise, you could never restore a unit with a mobility kill (or armor kill, blindness, whatever) to its original state. I see that this override path is kinda buggy, therefore, alternatively, you could create a special tag, or maybe special number to put into the XXXXModifier= tag, to indicate that this warhead is a "restore" type, which removes all buffs and debuffs (useful for repair units).