mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 21:33:40 -07:00
Add fixes for power crouch stab to the Enhancements menu (#874)
* Add optional fixes for power crouch stab * Add line break in "Fix Megaton Hammer" tooltip Co-authored-by: PurpleHato <linkvssangoku.jr@gmail.com> Co-authored-by: PurpleHato <linkvssangoku.jr@gmail.com>
This commit is contained in:
parent
1160fb2b15
commit
4a15e113f7
2 changed files with 34 additions and 6 deletions
|
@ -7847,15 +7847,35 @@ s32 func_8084285C(Player* this, f32 arg1, f32 arg2, f32 arg3) {
|
|||
}
|
||||
|
||||
s32 func_808428D8(Player* this, GlobalContext* globalCtx) {
|
||||
if (!Player_IsChildWithHylianShield(this) && Player_GetSwordHeld(this) && D_80853614) {
|
||||
func_80832264(globalCtx, this, &gPlayerAnim_002EC8);
|
||||
this->unk_84F = 1;
|
||||
this->swordAnimation = 0xC;
|
||||
this->currentYaw = this->actor.shape.rot.y + this->unk_6BE;
|
||||
if (Player_IsChildWithHylianShield(this) || !Player_GetSwordHeld(this) || !D_80853614) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
func_80832264(globalCtx, this, &gPlayerAnim_002EC8);
|
||||
this->unk_84F = 1;
|
||||
this->swordAnimation = 0xC;
|
||||
this->currentYaw = this->actor.shape.rot.y + this->unk_6BE;
|
||||
|
||||
if (!CVar_GetS32("gCrouchStabHammerFix", 0)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
u32 swordId;
|
||||
if (Player_HoldsBrokenKnife(this)) {
|
||||
swordId = 1;
|
||||
} else {
|
||||
swordId = Player_GetSwordHeld(this) - 1;
|
||||
}
|
||||
|
||||
if (swordId != 4 && !CVar_GetS32("gCrouchStabFix", 0)) { // 4 = Megaton Hammer
|
||||
return 1;
|
||||
}
|
||||
|
||||
u32 flags = D_80854488[swordId][0];
|
||||
func_80837918(this, 0, flags);
|
||||
func_80837918(this, 1, flags);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
s32 func_80842964(Player* this, GlobalContext* globalCtx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue