-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
decomp: merge all s6-*
remappings and finish training-obs
| villagep-obs
| lavatube-obs
| rolling-robber
| snow-obs
#1018
Conversation
Pull Request Test Coverage Report for Build 1580812697
💛 - Coveralls |
84ffbc9
to
e65465d
Compare
s6-*
remappings and finish training-obs
| villagep-obs
| lavatube-obs
| rolling-robber
s6-*
remappings and finish training-obs
| villagep-obs
| lavatube-obs
| rolling-robber
| snow-obs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
partial review, I still have to look at snow-obs, training-obs, and villagep-obs
|
||
(deftype darkecobarrel (darkecobarrel-base) | ||
((self-override darkecobarrel :offset 28) | ||
(spawn-array (array handle) :offset-assert 192) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this might be an array int64
but I'm not 100% sure...
(if (and (> (-> self cur-spawn) 0) (< gp-1 (the-as int (-> self spawn-array (+ (-> self cur-spawn) -1))))) | ||
(+! gp-1 (the-as int (darkecobarrel-cycle-time))) | ||
) | ||
(let ((gp-2 (- gp-1 (the-as int (-> self spawn-array (-> self cur-spawn)))))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this would make more sense as int
(defstate darkecobarrel-spawner (darkecobarrel) | ||
:trans | ||
(behavior () | ||
(let ((gp-1 (mod (darkecobarrel-base-time) (the-as int (darkecobarrel-cycle-time))))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and darkecobarrel-cycle-time
would return int
as well
(set! (-> obj flags) (logior #x2000000 (-> obj flags))) | ||
(let ((v0-2 'heat)) | ||
(set! (-> obj attack-event) v0-2) | ||
(the-as ripple-wave-set v0-2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd guess this function returns none
(defbehavior robber-find-ground robber () | ||
(let ((gp-0 (new 'stack-no-clear 'vector))) | ||
(set! (-> gp-0 quad) (-> self root-override trans quad)) | ||
(let ((t2-0 (new 'stack-no-clear 'collide-mesh-cache-tri))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be collide-tri-result
) | ||
) | ||
|
||
(defbehavior robber-calc-speed robber ((arg0 float) (arg1 float) (arg2 vector) (arg3 vector) (arg4 symbol)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
arg2 and arg3 should be float I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed the rest - as usual just a few small type things
goal_src/levels/snow/snow-obs.gc
Outdated
((root-override collide-shape-moving :offset 112) | ||
(max-frame float :offset-assert 176) | ||
(open-sound uint128 :offset-assert 192) | ||
(close-sound uint128 :offset-assert 208) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe these two should be sound-name
?
goal_src/levels/snow/snow-obs.gc
Outdated
(cond | ||
((zero? s3-0) | ||
(set! (-> obj open-sound) | ||
(the-as uint128 (make-u128 (the-as uint #x6e706f2d6e6f74) (the-as uint #x7369702d776f6e73))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hopefully these will become static-sound-name
s
Closes #910