Fix one frame of ghost yellow eco in finalboss (#1536)

* Fix one frame of ghost yellow eco in finalboss

* Fixed the eco duping in goggles

Whoops tried to fix an issue that wasn't there and paid the price for it.

* Add commented code

Describing the change and noting that is it different than the original game.

Could be useful in the future if anything odd happens to have our changes documented.

* Wrap change in a when PC_PORT block

* Move comment from inside block to outside

Having the comment inside the block seemed cringe
This commit is contained in:
Zedb0T 2022-06-24 15:25:11 -04:00 committed by GitHub
parent fb3f9ffe35
commit 80e84f2225
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -244,7 +244,17 @@
(send-event (handle->process (-> self shot-attractor)) 'draw #f)
)
(defbehavior robotboss-yellow-eco-off robotboss ()
;; These logclears are not present in the orignal game, this is to patch the one frame of ghost yellow eco bug that can
;; occcur under certain conditions when robot-boss-yellow-eco-off is called.
(#when PC_PORT
(logclear! (-> self alts 7 extra perm status) (entity-perm-status bit-3))
(logclear! (-> self alts 8 extra perm status) (entity-perm-status bit-3))
(logclear! (-> self alts 9 extra perm status) (entity-perm-status bit-3))
(logclear! (-> self alts 10 extra perm status) (entity-perm-status bit-3))
)
(logior! (-> self alts 7 extra perm status) (entity-perm-status bit-9))
(logior! (-> self alts 8 extra perm status) (entity-perm-status bit-9))
(logior! (-> self alts 9 extra perm status) (entity-perm-status bit-9))