HomeWildfire Games

Rewrite Structure Tree and Template Viewer to use OOP principles

Description

Rewrite Structure Tree and Template Viewer to use OOP principles

Commenters: elexis, Stan, Angen
Refs.: #5387
Differential Revision: https://code.wildfiregames.com/D2734

Event Timeline

Stan added a subscriber: Stan.Jul 11 2020, 6:02 PM

I think we might have overlooked something https://wildfiregames.com/forum/index.php?/topic/28491-archery-tradition-for-all-factions/&tab=comments#comment-400664
I looked at the code, but couldn't find where the issue lies

Should be remedied by rP23816

Nescio added a subscriber: Nescio.Jul 30 2020, 5:44 PM

@s0600204, there is something wrong with the values displayed in the structure tree when launched from the pre-game main menu. It worked correctly before, therefore my guess is the problem was introduced here.
For example, palisades have 200 to 1000 health. athen, mace, spart structures have +10% health as a civ bonus, so for them it is 220 to 1100 health, but not for the others. When opened from a game session, the structure tree displays the correct values, e.g. 200 to 1000 for pers. However, when launching the structure from the pre-game main menu, it displays 220 to 1100 health for all civs, which is wrong.