diff options
| author | Cardboy777 <22593559+Cardboy777@users.noreply.github.com> | 2022-10-21 00:18:31 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-21 00:18:31 -0400 |
| commit | 5d29c4755eed73641bb5485a2c9a6b37bb2c76dd (patch) | |
| tree | 203f7394f35fe3aa58ab3c3e606612044861e4d4 /soh/src/code | |
| parent | af02623456a3401d6e27571d06c5a400c92dfad3 (diff) | |
Add cheat for removing age restrictions on items (#1644)
* Add Cheat for disabling age check on equipment
* Add Cheat for disabling age check on equipment... pt 2
* cleanup some logic with macros
* Keep adult strength as child & prevent equipment greyout
* Timeless Equipment cleanup
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/z_player_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/soh/src/code/z_player_lib.c b/soh/src/code/z_player_lib.c index 5e5a10980..e187707c4 100644 --- a/soh/src/code/z_player_lib.c +++ b/soh/src/code/z_player_lib.c @@ -489,7 +489,7 @@ s32 Player_IsBurningStickInRange(GlobalContext* globalCtx, Vec3f* pos, f32 xzRan s32 Player_GetStrength(void) { s32 strengthUpgrade = CUR_UPG_VALUE(UPG_STRENGTH); - if (LINK_IS_ADULT) { + if (CVar_GetS32("gTimelessEquipment", 0) || LINK_IS_ADULT) { return strengthUpgrade; } else if (strengthUpgrade != 0) { return PLAYER_STR_BRACELET; |
