Wrong Usage of Defensive Trait (1.0.0+)
Posted: Tue Oct 27, 2020 3:59 pm
Towed guns in AT-mode all got the defensive trait which doesn’t work there. This trait only works in classes.txt as class-trait which modifies attack-damage by x0.7 if I’m not mistaken by reading the code.
Test:
No trait vs. same unit on river: 4:2+
No trait vs. same unit on ground: 3+:3+
Unit with defensive unit-trait vs. same unit on river: 4:2+
Unit with defensive unit-trait vs. same unit on ground: 3+:3+
Unit with defensive class-trait vs. same unit on river: 3+:2+
Unit with defensive class-trait vs. same unit on ground: 3:3+
And most importantly as prove if trait is added in classes.txt under [ANTI_TANK]:
There is a new trait listed for all AT-units called "Defensive Weapon: Unit is less effective at attacking"
No idea if this is intended, but adding this trait in wrong places doesn’t look right to me. The question is: do you want this attack-penalty on all anti-tank units as it also counts for the vehicles which didn’t have this before?
IMHO, it should be there as anti-tank vehicles also enjoy the powerful supportAT class-trait which tanks don’t have.
Another way would be to recode the trait to make it work in units.csv again or to keep ignoring this like five years before. Yeah, sorry that it took so long for me to discover this.
Test:
No trait vs. same unit on river: 4:2+
No trait vs. same unit on ground: 3+:3+
Unit with defensive unit-trait vs. same unit on river: 4:2+
Unit with defensive unit-trait vs. same unit on ground: 3+:3+
Unit with defensive class-trait vs. same unit on river: 3+:2+
Unit with defensive class-trait vs. same unit on ground: 3:3+
And most importantly as prove if trait is added in classes.txt under [ANTI_TANK]:
There is a new trait listed for all AT-units called "Defensive Weapon: Unit is less effective at attacking"
No idea if this is intended, but adding this trait in wrong places doesn’t look right to me. The question is: do you want this attack-penalty on all anti-tank units as it also counts for the vehicles which didn’t have this before?
IMHO, it should be there as anti-tank vehicles also enjoy the powerful supportAT class-trait which tanks don’t have.
Another way would be to recode the trait to make it work in units.csv again or to keep ignoring this like five years before. Yeah, sorry that it took so long for me to discover this.