[Reverse-engineering] [th02] Evil Eye Σ: Fight duration

Part of P0279, funded by Yanga and Blue Bolt.
This commit is contained in:
nmlgc 2024-04-05 23:38:09 +02:00
parent 0f66796fd4
commit 4a7d4db25a
2 changed files with 10 additions and 4 deletions

View File

@ -0,0 +1,5 @@
// TH02-specific boss declarations.
// Total amount of frames spent in the Evil Eye Σ fight, excluding the defeat
// animation.
extern uint32_t sigma_frames;

View File

@ -6791,7 +6791,7 @@ loc_FE9B:
push si
call sub_FC15
mov ax, 4E20h
sub ax, word ptr dword_20682
sub ax, word ptr _sigma_frames
mov si, ax
or si, si
jge short loc_FEB9
@ -7149,7 +7149,7 @@ loc_102A9:
mov byte_2066A, 0
mov _boss_damage, 0
mov byte_2066B, 0
mov dword_20682, 0
mov _sigma_frames, 0
mov word_20686, 0
pop si
pop bp
@ -18380,7 +18380,7 @@ loc_16948:
mov ax, [bx]
mov point_254E6.y, ax
call sub_15907
inc dword_20682
inc _sigma_frames
loc_16962:
call sub_1566F
@ -30549,7 +30549,8 @@ word_2066E dw ?
word_20670 dw ?
byte_20672 db ?
db 15 dup(?)
dword_20682 dd ?
public _sigma_frames
_sigma_frames dd ?
word_20686 dw ?
db 3000 dup(?)