Just from the snippets you've posted here it looks like you're increasing the attack rating every time a battle takes place...
My preference would be to alter the code in ComabtUnit::GetOffense and CombatUnit::GetDefense so that they checked the veteran status. Veteranness is a property of the unit, not the battle, and so if possible the code pertaining to it should be contained within the unit definition.
My preference would be to alter the code in ComabtUnit::GetOffense and CombatUnit::GetDefense so that they checked the veteran status. Veteranness is a property of the unit, not the battle, and so if possible the code pertaining to it should be contained within the unit definition.
Of course if you think your code should be tested more before you add it there, you can post it here as well. Or any other thread that is about the code in question.
Comment