diff options
| author | vaguerant <vaguerant@users.noreply.github.com> | 2022-06-17 11:08:32 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-16 21:08:32 -0400 |
| commit | ac8acaeba48987bb8f432e435a5a42f2872cb4a7 (patch) | |
| tree | 60f099534ab5404095deaa24e863d57fb6c79ae4 /soh/src/code | |
| parent | 93e69c924d5102801d4c8aef95e3ca531d5d0bc3 (diff) | |
Cheat: shield with two-handed weapons (#487)
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/z_player_lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/soh/src/code/z_player_lib.c b/soh/src/code/z_player_lib.c index cf7fbd51c..77c569951 100644 --- a/soh/src/code/z_player_lib.c +++ b/soh/src/code/z_player_lib.c @@ -360,7 +360,8 @@ s32 Player_ActionToModelGroup(Player* this, s32 actionParam) { void Player_SetModelsForHoldingShield(Player* this) { if ((this->stateFlags1 & 0x400000) && ((this->itemActionParam < 0) || (this->itemActionParam == this->heldItemActionParam))) { - if (!Player_HoldsTwoHandedWeapon(this) && !Player_IsChildWithHylianShield(this)) { + if ((CVar_GetS32("gShieldTwoHanded", 0) && (this->heldItemActionParam != PLAYER_AP_STICK) || + !Player_HoldsTwoHandedWeapon(this)) && !Player_IsChildWithHylianShield(this)) { this->rightHandType = 10; this->rightHandDLists = &sPlayerDListGroups[10][(void)0, gSaveContext.linkAge]; if (this->sheathType == 18) { |
