character draws normally when drowning after core fight

This commit is contained in:
duncathan 2021-03-31 00:04:40 -06:00
parent 1f44720d31
commit f62d54fe98
2 changed files with 33 additions and 2 deletions

View File

@ -1,3 +1,34 @@
offset 416A15
offset 4169EB
JMP 416A52
#define
GetNPCFlag=40E930
StartTextScript=421990
setDeathCond=416A52
computeAirGet=416A65
gMC.air=49E6DC
#enddefine
PUSH 0FA0 ; 4000
CALL GetNPCFlag
POP ECX
TEST EAX,EAX ; if (GetNPCFlag(4000))
JE :drown
:core
PUSH 44C ; 1100
CALL StartTextScript
POP ECX
MOV [gMC.air], 3E8 ; gMC.air = 1000
JMP computeAirGet
:drown
PUSH 29 ; 41
CALL StartTextScript
POP ECX
JMP setDeathCond

Binary file not shown.