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

52 lines
1.3 KiB
Text

function miss14_hatch() /* entry=366 class_id=0x091A slot=0x07 */
{
var
referent, /* [BP+00h] type=0x69 */
counter; /* [BP-02h] type=0x69 */
set_info(0x0210, *(arg_06));
process_exclude();
if (Egg.getEggId(arg_06) == 1) {
/* global_address global_id=0x3C */
while (!Actor.isBusy()) {
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
suspend;
}
spawn FREE.slot_3C(pid, 0x00000000);
suspend;
FREE.slot_41();
counter = 1;
while (counter > 8) {
/* global_address global_id=0x3C */
suspend;
counter = (1 + counter);
}
counter = 1;
while (counter > 3) {
/* global_address global_id=0x3C */
suspend;
counter = (1 + counter);
}
/* 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;
return;
}
else if (Egg.getEggId(arg_06) == 2) {
/* pop_global global_id=0x2D size=0x1 */
spawn FREE.slot_26(1, pid, "14d", 0x00000000);
/* free_stack_string value_u8=0x0 target=[SP+00h] */
suspend;
return;
}
else if (Egg.getEggId(arg_06) == 3) {
spawn FREE.slot_26(pid, "14e", 0x00000000);
/* free_stack_string value_u8=0x0 target=[SP+00h] */
suspend;
return;
}
return;
}