-
Notifications
You must be signed in to change notification settings - Fork 630
Cheat: Child Link Can Hold Hylian Shield (Modern Codebase Port) #5990
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
base: develop
Are you sure you want to change the base?
Cheat: Child Link Can Hold Hylian Shield (Modern Codebase Port) #5990
Conversation
soh/src/code/z_player_lib.c
Outdated
| return false; // Skip vanilla check for making child Link have the Hylian Shield on his back, allowing for it to | ||
| // be used in hand | ||
| } else { | ||
| return gSaveContext.linkAge != 0 && (this->currentShield == PLAYER_SHIELD_HYLIAN); |
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.
can be return GameInteractor_Should(...) with *should = false in handler instead of doing cvar check here
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.
Added a new hook and changed z_player_lib.c to use that.
I'm not sure what to do with remaining direct CVar usage (adding many more hooks?)
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.
Yes, long term having a mod_hooks.cpp file in Enhancements that hooks a bunch of VBs may be the way
…sters#3887) to modern codebase
* Maybe "Show Age-Dependent Equipment" is not required?
TODO: mods.cpp is going to be retired and graphics patches will need to be moved into its own cpp file eventually
…ildWithHylianShield to use that Removed unneeded gSaveContext
7a1fc15 to
9345ff7
Compare
This is an experimental port of Patrick12115's "Child Link Can Hold Hylian Shield" (#3887) to the modern codebase.
I also moved the category of this option from Enhancements to Cheat, and modified Octorok's projectile to be reflectable with this option.
Build Artifacts