[Ohrrpgce] [ohrrpgce/ohrrpgce] Can escape unescapable enemies who are jumping (#1107)
Ralph Versteegen
notifications at github.com
Thu Mar 19 17:06:35 PDT 2020
If an enemy with the Unescapeable bit jumps off-screen, then you can run from battle.
Is this a bug, or a feature? Should we add a backcompat bit or a battle system pref bit to toggle it?
It happens because:
```
FUNCTION checkNoRunBit (bslot() as BattleSprite) as bool
FOR i as integer = 4 TO 11
IF bslot(i).stat.cur.hp > 0 AND bslot(i).vis = YES AND bslot(i).unescapable = YES THEN RETURN YES
NEXT i
RETURN NO
END FUNCTION
```
`BattleSprite.vis` is false while an combatant has jumped offscreen.
`vis` is used for many different purposes in many different places. I know it's short for "visible", but I spent an hour trying to figure out what it *actually* means. There are a set of exceptions (which I've now documented), and I consider any code that makes use of `vis` as suspect.
--
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/1107
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20200319/3370c42a/attachment.html>
More information about the Ohrrpgce
mailing list