[decomp] add a bunch of flag enums (#1350)

* update refs

* first pass

* update refs 2

* update

* update

* update

* stuff and things

* accidentally wiped this

* fancy decomp for static sound specs

* clang

* 5 more refs
This commit is contained in:
ManDude
2022-05-02 23:35:17 +01:00
committed by GitHub
parent b40cbea366
commit 4d634cf50d
279 changed files with 7312 additions and 5465 deletions
+11 -8
View File
@@ -3824,15 +3824,18 @@
(function "Play" #f (lambda () (play #t #t)))
(function "Start" #f (lambda () (the-as int (start 'debug (get-or-create-continue! *game-info*)))))
(function "Stop" #f (lambda () (stop 'debug)))
(flag "Invulnerable" #f (lambda ((arg0 int) (arg1 debug-menu-msg))
(when (= arg1 (debug-menu-msg press))
(if *target*
(set! (-> *target* state-flags) (logxor (-> *target* state-flags) 16))
)
)
(the-as symbol (and *target* (logtest? (-> *target* state-flags) 16)))
)
(flag
"Invulnerable"
#f
(lambda ((arg0 int) (arg1 debug-menu-msg))
(when (= arg1 (debug-menu-msg press))
(if *target*
(set! (-> *target* state-flags) (logxor (-> *target* state-flags) (state-flags sf04)))
)
)
(the-as symbol (and *target* (logtest? (-> *target* state-flags) (state-flags sf04))))
)
)
(function
"Reset Trans"
#f