![]() |
|
|||||||
| Fantasy Wars Turn-based strategy. Gather an army, upgrade units, study magic spells, participate in castle sieges and assaults to destroy the great Orc Ugraum’s horde. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Look in ApplyAttackToDetachment() at the variable randomisedCasualties. This appears to be the damage done to the unit. Note: damage is health and each unit has 15 little guys and each of those little guys has health. So "15" damage may only mean 1 little guy dies.
But anyway, there is a for() loop near the end of the function that goes from 0 to randomisedCasualties and applies the damage to the unit. Just before this for() loop, try multiplying randomisedCasualties by 5 and it should have the effect you want. |
|
#2
|
|||
|
|||
|
Heh, sweet. Thanks!
I changed: averageCasualties = AttackAverageOfDistribution(targetDetachment, role, attackAction, currentAttackCount); to averageCasualties = 5 * AttackAverageOfDistribution(targetDetachment, role, attackAction, currentAttackCount); and changed --local maximumDeviation = 2; to --local maximumDeviation = 10; Tests show the damage is both increased and the Attack/Ratio is preserved, but I'm not sure if the random deviation +/- also got a 5x bump. It's not critical anyway. |
|
#3
|
|||
|
|||
|
lines that have '--' in them are just comments and do not do anything.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|