add patch to show EXP gains from the server

This commit is contained in:
Martin Michelsen
2025-10-27 23:56:15 -07:00
parent 446b521898
commit 662ee48a64
6 changed files with 34 additions and 23 deletions
@@ -18,7 +18,7 @@ write_call_to_code:
# [esp + 0x04] = code ptr
# [esp + 0x08] = code size
# [esp + 0x0C] = jump callsite
# [esp + 0x10] = callsite size
# [esp + 0x10] = callsite size (if zero, write the address instead of a call)
# Allocate memory for the copied code
mov ecx, [0x00AAB404]
@@ -41,8 +41,16 @@ memcpy_again:
jne memcpy_again
pop ebx
# Write the call or jmp opcode
mov edx, [esp + 0x0C] # edx = jump callsite
# If the callsite size is zero, just write the address directly
cmp dword [esp + 0x10], 0
jne write_call_or_jmp
mov [edx], eax
jmp done
# Write the call or jmp opcode
write_call_or_jmp:
lea ecx, [eax - 5]
sub ecx, edx # ecx = (dest code addr) - (jump callsite) - 5
cmp dword [esp + 0x10], 0
+3 -2
View File
@@ -811,8 +811,9 @@
"Friday": ["Monomate x1", "Dimate x1", "Trimate x1", "Monofluid x1", "Difluid x1", "Trifluid x1", "Sol Atomizer x1", "Moon Atomizer x1", "Antidote x1", "Antiparalysis x1", "Telepipe x1", "Trap Vision x1"],
"Saturday": ["Monomate x1", "Dimate x1", "Trimate x1", "Monofluid x1", "Difluid x1", "Trifluid x1", "Sol Atomizer x1", "Moon Atomizer x1", "Antidote x1", "Antiparalysis x1", "Telepipe x1", "Trap Vision x1"],
},
// EXP multiplier for BB games. This must be an integer due to a client
// limitation, and must be at least 1.
// EXP multiplier for BB games. If this is not an integer, the client will
// display incorrect EXP values, unless you also add "ServerEXPDisplay" to
// BBRequiredPatches.
"BBGlobalEXPMultiplier": 1,
// EXP share multiplier for BB games. The logic for EXP computation is:
// - If the player lands the killing blow on an enemy they get full EXP (or