Цитата: SusiS
Negative structure = applied damage > max structure = DESTRUCTION !
Sorry. That is what I think.
You right. But I can not check every object every second.
Destruction happens on events.
"Applied damage increasing"`s events:
1. Gun shot
2. Colliding
3. Planetary destruction with fleet
All this event I handle properly, so destruction happens.
"Max structure decreasing" events:
1. Defense decreasing in battle
2. Defense clearing on colonization
3. Building destroying in battle
4. Building destroying by player in building
5. Building clearing on colonization
6. Building destroying by Nuclear Strike
7. Building eating by Devourer
8. Xerj`s officer Auxin changing on colonization
and more. Every structure bonus can cause structure decreasing in a different places of game, so I gave up and started to think how to make negative structure legal.
Most of this events can cause negative structure. But destruction is not obvious. E.g. player wants to destroy one level of building to free field, but station blow up - nice isn`t it?
Sometimes players deal to much damage to OPS they want to capture.
In such cases I think negative structure with destroy timer will be a good solution.