In the original game, units with higher defense were less likely to get selected as the receiver of the damage when distributing the damage taken by the army between units on the survivor's side.
However, insecticide attempted to change this code and as far as I can tell it's somewhat messed up. If the unit does not have 50 or higher defense (no unit has that...), the chance of receiving the damage is just equal between units. I would think Kryub wanted to make this cost based (units over 50 defense get a chance based on cost) and did it only halfway or something.
What is your experience with this, if any?
What do you think would be reasonable? I've set my mod to do 50-(unit cost/10) but a minimum of 1 as the chance of the unit being the receiver of the damage, so more valuable units will take less damage and will get killed much later in the queue.
I can however justify the opposite just as easily :
A., Weaker units take more damage because they are weaker and less valuable, so the wizard will care about their loss less and will attempt to save the stronger units.
B., Stronger units take more damage because you normally try to keep weak units away from being damaged, and let the strong ones tank for them, their survival is much more likely even if damaged.
In terms of gameplay I think the stronger unit surviving is better, and allows the AI to build up armies more.
Another thing to consider.
Damage is being applied in chunks of 3 points. A unit that is selected to take damage will automatically get selected again the next time, until it dies or damage runs out. This means that after every combat there can be at most one damaged unit, everything else is either dead, or has full health. Not very realistic. I think it would be better if it selected a random unit after every 3 points of damage, with - or without - the already damaged unit receiving a boosted priority for the next selection.
I've applied this change to my mod and the results speak for themselves.
After the change, most units survive from the army of 6 attacking the "many" War Bears, but roughly 75% of the surviving units are wounded to varying degree. (Attacking army had mostly equal value units, cost 100 heroes, a priest and 2 cavalry, all cheap units)
Previously, there were fewer survivors but most of them not wounded at all.
However, insecticide attempted to change this code and as far as I can tell it's somewhat messed up. If the unit does not have 50 or higher defense (no unit has that...), the chance of receiving the damage is just equal between units. I would think Kryub wanted to make this cost based (units over 50 defense get a chance based on cost) and did it only halfway or something.
What is your experience with this, if any?
What do you think would be reasonable? I've set my mod to do 50-(unit cost/10) but a minimum of 1 as the chance of the unit being the receiver of the damage, so more valuable units will take less damage and will get killed much later in the queue.
I can however justify the opposite just as easily :
A., Weaker units take more damage because they are weaker and less valuable, so the wizard will care about their loss less and will attempt to save the stronger units.
B., Stronger units take more damage because you normally try to keep weak units away from being damaged, and let the strong ones tank for them, their survival is much more likely even if damaged.
In terms of gameplay I think the stronger unit surviving is better, and allows the AI to build up armies more.
Another thing to consider.
Damage is being applied in chunks of 3 points. A unit that is selected to take damage will automatically get selected again the next time, until it dies or damage runs out. This means that after every combat there can be at most one damaged unit, everything else is either dead, or has full health. Not very realistic. I think it would be better if it selected a random unit after every 3 points of damage, with - or without - the already damaged unit receiving a boosted priority for the next selection.
I've applied this change to my mod and the results speak for themselves.
After the change, most units survive from the army of 6 attacking the "many" War Bears, but roughly 75% of the surviving units are wounded to varying degree. (Attacking army had mostly equal value units, cost 100 heroes, a priest and 2 cavalry, all cheap units)
Previously, there were fewer survivors but most of them not wounded at all.