Commit 6c0fa341 authored by cthscr's avatar cthscr

Add few more asmpatches

parent 5d3fa104
......@@ -225,8 +225,24 @@ retn
]]
--)
-- Notifications
-- Alchemy
mem.asmpatch(0x4157B4, [[
mov edi, eax
and edi, ]] .. MaxSkillValStr)
--mem.asmpatch(0x4157b4, [[
--push esi
--mov esi, 0x25
--call absolute ]] .. getbonus3 .. [[;
--pop esi
--mov edi, ecx
--cmp eax, 0x13c
--jle @end
--mov eax, 0x13c
[email protected]:
--]])
-- Notifications
mem.asmpatch(0x417295, [[
mov cx, word [ds:ebx*2+esi+0x378]
and eax, ]] .. MaxSkillValStr .. [[;
......@@ -252,23 +268,6 @@ mem.nop2(0x417468, 0x41746B)
--call absolute ]] .. getbonus .. [[;
--]])
-- Alchemy
mem.asmpatch(0x4157B4, [[
mov edi, eax
and edi, ]] .. MaxSkillValStr)
--mem.asmpatch(0x4157b4, [[
--push esi
--mov esi, 0x25
--call absolute ]] .. getbonus3 .. [[;
--pop esi
--mov edi, ecx
--cmp eax, 0x13c
--jle @end
--mov eax, 0x13c
[email protected]:
--]])
-- Id Monster
mem.asmpatch(0x41E07C, [[
mov edi, ecx
......@@ -320,6 +319,21 @@ push 0
pop eax
]])
-- Quick Spell SP cost
mem.asmpatch(0x42E86B, [[
test ah, 0x10
jz absolute 0x42E87D
]])
mem.asmpatch(0x42E87D, [[
test ah, 0x8
jz absolute 0x42E88E
lea eax, [ecx+ecx*4]
]])
mem.asmpatch(0x42E88E, [[
test ah, 0x4
lea eax, [ecx+ecx*4]
]])
-- damageMonsterFromParty
-- MainHand Weapon
-- Mace Stun
......@@ -413,6 +427,12 @@ cmp edx, edi
--call absolute 0x455b09
--]])
--
mem.asmpatch(0x439162, [[
and edx, ]] .. MaxSkillValStr .. [[;
mov ecx, esi
]])
-- Bow GM damage bonus
if Merge.Settings.Skills.BowDamageIncludeItemsBonus == 1 then
-- Take skill bonus from items into account
......@@ -805,4 +825,25 @@ and edx, ]] .. MaxSkillValStr)
--pop esi]])
mem.nop(0x490393, 3)
--
mem.asmpatch(0x4D1485, [[
test ah, 0x10
mov dword ptr [ebp-0x14], 1
jnz absolute 0x4D14A2
test ah, 0x8
jnz absolute 0x4D14A2
test ah, 0x4
]])
mem.nop2(0x4D148A, 0x4D1497)
--
mem.asmpatch(0x4D173D, [[
test ah, 0x10
mov dword ptr [ebp-0x18], 1
jnz absolute 0x4D1756
test ah, 0x8
jnz absolute 0x4D1756
test ah, 0x4
]])
Log(Merge.Log.Info, "Init finished: RemoveSkillBonusLimits.lua")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment