Crusader_Decomp/USECODE/EUSECODE_extracted/pseudocode/MISS14/slot_07_hatch.txt

52 lines
1.3 KiB
Text
Raw Normal View History

2026-03-25 23:32:36 +01:00
function miss14_hatch() /* entry=366 class_id=0x091A slot=0x07 */
{
var
referent, /* [BP+00h] type=0x69 */
counter; /* [BP-02h] type=0x69 */
2026-03-26 00:37:17 +01:00
set_info(0x0210, *(arg_06));
process_exclude();
if (Egg.getEggId(arg_06) == 1) {
2026-03-25 23:32:36 +01:00
/* global_address global_id=0x3C */
2026-03-26 00:37:17 +01:00
while (!Actor.isBusy()) {
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
2026-03-26 00:37:17 +01:00
suspend;
}
spawn FREE.slot_3C(pid, 0x00000000);
2026-03-25 23:32:36 +01:00
suspend;
FREE.slot_41();
2026-03-25 23:32:36 +01:00
counter = 1;
2026-03-26 00:37:17 +01:00
while (counter > 8) {
/* global_address global_id=0x3C */
suspend;
counter = (1 + counter);
}
2026-03-25 23:32:36 +01:00
counter = 1;
2026-03-26 00:37:17 +01:00
while (counter > 3) {
/* global_address global_id=0x3C */
suspend;
counter = (1 + counter);
}
2026-03-25 23:32:36 +01:00
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
2026-03-26 00:37:17 +01:00
return;
}
else if (Egg.getEggId(arg_06) == 2) {
2026-03-25 23:32:36 +01:00
/* pop_global global_id=0x2D size=0x1 */
spawn FREE.slot_26(1, pid, "14d", 0x00000000);
2026-03-25 23:32:36 +01:00
/* free_stack_string value_u8=0x0 target=[SP+00h] */
suspend;
2026-03-26 00:37:17 +01:00
return;
}
else if (Egg.getEggId(arg_06) == 3) {
spawn FREE.slot_26(pid, "14e", 0x00000000);
2026-03-25 23:32:36 +01:00
/* free_stack_string value_u8=0x0 target=[SP+00h] */
suspend;
return;
2026-03-26 00:37:17 +01:00
}
return;
2026-03-25 23:32:36 +01:00
}