Fixed broken get_perk_available script function.

This commit is contained in:
NovaRain
2019-03-11 11:31:36 +08:00
parent e2fc1ee0ec
commit 69bea44481
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -526,6 +526,7 @@ const DWORD pc_flag_toggle_ = 0x42E2B0;
const DWORD perform_withdrawal_end_ = 0x47A558;
const DWORD perk_add_ = 0x496A5C;
const DWORD perk_add_effect_ = 0x496BFC;
const DWORD perk_can_add_ = 0x49680C;
const DWORD perk_description_ = 0x496BB4;
const DWORD perk_init_ = 0x4965A0;
const DWORD perk_level_ = 0x496B78;
+1
View File
@@ -734,6 +734,7 @@ extern const DWORD pc_flag_toggle_;
extern const DWORD perform_withdrawal_end_;
extern const DWORD perk_add_;
extern const DWORD perk_add_effect_;
extern const DWORD perk_can_add_;
extern const DWORD perk_description_;
extern const DWORD perk_init_;
extern const DWORD perk_level_;
+1 -1
View File
@@ -85,7 +85,7 @@ static void __declspec(naked) GetPerkAvailable() {
jge fail;
mov edx, eax;
mov eax, ds:[_obj_dude];
call perk_make_list_;
call perk_can_add_;
mov edx, eax;
jmp end;
fail: