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:
NovaRain
2018-01-02 09:58:30 +08:00
parent d388a5c3bb
commit ca3f59ad1e
3 changed files with 2 additions and 2 deletions
Binary file not shown.
+1
View File
@@ -42,6 +42,7 @@ end
procedure start begin
if game_loaded and (sfall_ver_major >= 4) then begin
set_perk_ranks(PERK_gecko_skinning_perk, 1);
controlMode := GetConfig("CombatControl", "Mode", 0);
if (controlMode > 2) then controlMode := 0;
if (controlMode > 0) then begin
+1 -2
View File
@@ -613,8 +613,7 @@ lower:
}
void _stdcall ApplyHeaveHoFix() {
SafeWrite8(0x478AC4, 0xE9);
HookCall(0x478AC4, HeaveHoHook);
MakeJump(0x478AC4, HeaveHoHook);
perks[PERK_heave_ho].strengthMin = 0;
}