aoe2techtree icon indicating copy to clipboard operation
aoe2techtree copied to clipboard

Added exceptions for showing irrelevant values

Open LOSER4ever opened this issue 2 years ago • 5 comments

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.

LOSER4ever avatar Aug 14 '22 07:08 LOSER4ever

Hmm that is a lot of hardcoding based on the current balance…

HSZemi avatar Aug 22 '22 20:08 HSZemi

So what did you think of it?

LOSER4ever avatar Aug 24 '22 15:08 LOSER4ever

I think I prefer to keep it as it currently is

HSZemi avatar Aug 24 '22 19:08 HSZemi

@LOSER4ever is it possible to author this without the class ID hardcoding?

paulirish avatar Aug 24 '22 21:08 paulirish

You need to check all armor classes across units to see if the unit has negative armor.

LOSER4ever avatar Sep 23 '22 08:09 LOSER4ever