EBaalhuis / TI4_battle_sim

Twilight Imperium IV Calculator
https://ti4odds.herokuapp.com/
MIT License
3 stars 2 forks source link

Optimize check for presence of flagship #110

Open EBaalhuis opened 3 years ago

EBaalhuis commented 3 years ago

Find a way to store a boolean that indicates whether flagship is present or not.

Update it by checking whenever a ship dies.

EBaalhuis commented 3 years ago

has_flagship is only used for 4 factions. So might be a low impact optimization.