DarthNihilus wrote: ↑Sun Apr 18, 2021 11:11 am
could you add doctor's cloroform timer zeroing?
There's an ability on level-up that actually grants this, I believe. But, if you don't want to take that, or you don't use the quick level script and just want this, here's the code.
{ Game : StreetsOfRogue.exe
Author : Sigan
}
define(address,<RechargeSpecialAbility2>d__242:MoveNext+3ac)
define(bytes,FF C9 89 88 F0 00 00 00)
[ENABLE]
assert(address,bytes)
alloc(newmem,$1000,<RechargeSpecialAbility2>d__242:MoveNext+3ac)
label(code)
label(return)
newmem:
dec ecx //orig code
mov ecx,#0
code:
mov [rax+000000F0],ecx
jmp return
address:
jmp newmem
nop 3
return:
[DISABLE]
address:
db bytes
// dec ecx
// mov [rax+000000F0],ecx
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: <RechargeSpecialAbility2>d__242:MoveNext+3ac
<RechargeSpecialAbility2>d__242:MoveNext+375: 0F 8E 9D 11 00 00 - jng <RechargeSpecialAbility2>d__242:MoveNext+1518
<RechargeSpecialAbility2>d__242:MoveNext+37b: 49 8B CE - mov rcx,r14
<RechargeSpecialAbility2>d__242:MoveNext+37e: 49 BB D0 E9 00 8C E3 01 00 00 - mov r11,StatusEffects:CanRecharge
<RechargeSpecialAbility2>d__242:MoveNext+388: 41 FF D3 - call r11
<RechargeSpecialAbility2>d__242:MoveNext+38b: 85 C0 - test eax,eax
<RechargeSpecialAbility2>d__242:MoveNext+38d: 0F 84 85 11 00 00 - je <RechargeSpecialAbility2>d__242:MoveNext+1518
<RechargeSpecialAbility2>d__242:MoveNext+393: 49 8B 46 28 - mov rax,[r14+28]
<RechargeSpecialAbility2>d__242:MoveNext+397: 48 8B 80 20 04 00 00 - mov rax,[rax+00000420]
<RechargeSpecialAbility2>d__242:MoveNext+39e: 48 8B 80 A0 00 00 00 - mov rax,[rax+000000A0]
<RechargeSpecialAbility2>d__242:MoveNext+3a5: 48 63 88 F0 00 00 00 - movsxd rcx,dword ptr [rax+000000F0]
// ---------- INJECTING HERE ----------
<RechargeSpecialAbility2>d__242:MoveNext+3ac: FF C9 - dec ecx
// ---------- DONE INJECTING ----------
<RechargeSpecialAbility2>d__242:MoveNext+3ae: 89 88 F0 00 00 00 - mov [rax+000000F0],ecx
<RechargeSpecialAbility2>d__242:MoveNext+3b4: 49 8B 46 28 - mov rax,[r14+28]
<RechargeSpecialAbility2>d__242:MoveNext+3b8: 48 8B 80 20 04 00 00 - mov rax,[rax+00000420]
<RechargeSpecialAbility2>d__242:MoveNext+3bf: 48 8B 80 A0 00 00 00 - mov rax,[rax+000000A0]
<RechargeSpecialAbility2>d__242:MoveNext+3c6: 48 63 80 F0 00 00 00 - movsxd rax,dword ptr [rax+000000F0]
<RechargeSpecialAbility2>d__242:MoveNext+3cd: 85 C0 - test eax,eax
<RechargeSpecialAbility2>d__242:MoveNext+3cf: 0F 85 43 11 00 00 - jne <RechargeSpecialAbility2>d__242:MoveNext+1518
<RechargeSpecialAbility2>d__242:MoveNext+3d5: 49 8B 46 28 - mov rax,[r14+28]
<RechargeSpecialAbility2>d__242:MoveNext+3d9: 48 05 04 03 00 00 - add rax,00000304
<RechargeSpecialAbility2>d__242:MoveNext+3df: 48 63 00 - movsxd rax,dword ptr [rax]
}