mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Fixed a bug in NPC combat control that kept increasing the perk rank of Gecko Skinning after the combat ended.
Condensed the code in ApplyHeaveHoFix a bit.
This commit is contained in:
Binary file not shown.
@@ -42,6 +42,7 @@ end
|
|||||||
|
|
||||||
procedure start begin
|
procedure start begin
|
||||||
if game_loaded and (sfall_ver_major >= 4) then begin
|
if game_loaded and (sfall_ver_major >= 4) then begin
|
||||||
|
set_perk_ranks(PERK_gecko_skinning_perk, 1);
|
||||||
controlMode := GetConfig("CombatControl", "Mode", 0);
|
controlMode := GetConfig("CombatControl", "Mode", 0);
|
||||||
if (controlMode > 2) then controlMode := 0;
|
if (controlMode > 2) then controlMode := 0;
|
||||||
if (controlMode > 0) then begin
|
if (controlMode > 0) then begin
|
||||||
|
|||||||
@@ -613,8 +613,7 @@ lower:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _stdcall ApplyHeaveHoFix() {
|
void _stdcall ApplyHeaveHoFix() {
|
||||||
SafeWrite8(0x478AC4, 0xE9);
|
MakeJump(0x478AC4, HeaveHoHook);
|
||||||
HookCall(0x478AC4, HeaveHoHook);
|
|
||||||
perks[PERK_heave_ho].strengthMin = 0;
|
perks[PERK_heave_ho].strengthMin = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user