gcsim
gcsim copied to clipboard
character dying is not implemented
related to #1131
When the active character's hp ratio reaches 0, the following should happen:
- lock sim out of actions for ~3s (needs more investigation on how long this actually is, looks like it can be shortened when the char is walking when they are killed)
- this happens even if on the death all chars are dead (should count towards sim duration)
- force swap to the next alive char with the lowest slot index if possible:
- example: team has chars in slot 1,2,3,4. char dies in slot 3, so sim should force swap to char in slot 1
- if no chars are alive, end the sim execution (just like when out of actions/all targets dead/sim duration reached)
Technically we also need to go through every character implementation and remove certain things on death / cancel certain tasks on death.
Need clarity on:
- what to do when sim hits an action of a dead character?
- maybe the sim should terminate when 1 character dies and not when all die?