[Ohrrpgce] [ohrrpgce/ohrrpgce] Enemy spawned with 0 HP appears with sprite of dead enemy / disagreements about what enemies exist/are alive (#1221)

Ralph Versteegen notifications at github.com
Tue Sep 28 18:42:37 PDT 2021


In particular, `reset_enemy_state` sets `.vis = YES` but `check_death` is one of those places that ignores slots with `.id = -1`, so `vis = NO` is never reached.

I've said before that `.vis` is a big problem, it has different meanings in different places. I think we should replace various state variables (which can have invalid combinations of assignments), with a single enumeration of possible states, probably being: Empty, Dead (in future, not just heroes but also enemies), Appearing, Dying (including fleeing), On_Death (reached 0 HP but waiting on an on-death attack), Pending_Death  (has 0 HP but hasn't been processed for death yet), Alive.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1221#issuecomment-929752410
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20210928/0fe50107/attachment.html>


More information about the Ohrrpgce mailing list