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
This commit is contained in:
Cardboy777
2022-10-21 00:18:31 -04:00
committed by GitHub
parent af02623456
commit 5d29c4755e
5 changed files with 28 additions and 22 deletions

View File

@@ -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;