Closed jmgomezg closed 12 years ago
I think if a robot chooses to die, that's always alright and should override the immortal flag.
I guess Immortal refers to whether damage is taken,
or maybe if when the remaining health is zero or less if it will trigger the out of health event, or if that event is not present, an auto-death.
On 6/02/2012, at 11:50 AM, jmgomezg reply@reply.github.com wrote:
If we have a robot set as immortal means we can not destroy it, so if we also have a parameter "permanent" set to false on a story point robot, the robot will not be destroyed. I can check on my side and see if we have a "permanent" so we override the "immortal", but wondering if there is a better way. Any suggestions?
Reply to this email directly or view it on GitHub: https://github.com/instinct/GameFroot/issues/264
Oh yeah, that's it, we apply immortal only when damage is taken and health is zero, makes totally sense!
Jose - If you're happy with this, please close it
Sure, closing!!
If we have a robot set as immortal means we can not destroy it, so if we also have a parameter "permanent" set to false on a story point robot, the robot will not be destroyed. I can check on my side and see if we have a "permanent" so we override the "immortal", but wondering if there is a better way. Any suggestions?