aoe2techtree
aoe2techtree copied to clipboard
Added exceptions for showing irrelevant values
Removed Armor class 31 from armors of units since Obsolete. Removed 0 attacks of units (like archers having 0 vs Rams, etc), but made sure that armor classes having units with negative armor are rendered properly. Exceptions are hardcoded - may need to be updated with time. Current exceptions: War Elephants, Cavalry and Siege Weapons since Ballista Elephants have -2 armor in each. Mounted Archers since Elephant Archers have -7 armor. Base melee since Rams have negative armor.
Hmm that is a lot of hardcoding based on the current balance…
So what did you think of it?
I think I prefer to keep it as it currently is
@LOSER4ever is it possible to author this without the class ID hardcoding?
You need to check all armor classes across units to see if the unit has negative armor.