|
|
Posted By: Anonymous (2005-08-27 17:34:24)
I noticed that the comments for the military police in city.js show attack adjustment limits of -30 to +30. > // this method sets the attack adjustsments. The min is -30 which means it cant attack // that type of unit and max is +30 // the params are the unit to set the stat on, air, ground, sea
Yet the code right after that show attack adjustments of -100 to (?) > setAttackAdjustment( unit, -100, 20, -100 );
So my question is which is correct? The code or the comments?
For example, does -50 mean that a unit cannot attack that category ever, or does it just mean that it is difficult to attack that category?
Thanks
| Posted By: Tully (2005-08-27 22:09:05)
The comments are out of date. The attack, defense, etc adjustments were adjusted for 1.6. The limits on the attack and defense properties are 0 - 100. SeeRange is 8 Attack Range is 8.
Attack adj, defense adj are both in the range of -100 to 100. Where -100 means it cant hit that type and +100 doubles the damage done.
Hope that helps.
| Posted By: Tully (2005-08-27 22:10:13)
oh so to answer you question -50 would do half damage to that type of unit. Defense Adj is the opposite way. A defense ajd of -50 would double the damage you take when that type of unit attacks you.
|
|
|
|
|