bencbartlett/Overmind

Fix Manager spawning logic.

GuguKatze opened this issue · 1 comments

Manager is often spawned with a Setups.managers.stationary configuration instead of a Setups.managers.stationary_work configuration even though ramparts around the center of the bunker are millions of hitPoints away from the desired value.

Fix the
"if (this.managerRepairTarget && this.colony.assets.energy > WorkerOverlord.settings.fortifyDutyThreshold) {"
condition to something more meaningful. Maybe use .avgManagerBarrierHits?

Probably intended and in order so the Manager does not fortify the core way above the level of the other ramparts? close