125 lines
3.3 KiB
Text
125 lines
3.3 KiB
Text
|
|
/* synthesized appendix for MISS1 */
|
|
/* sparse lines above preserve recovered debugger line numbers where available */
|
|
|
|
/* ===== slot 0x04 cachein ===== */
|
|
function miss1_cachein() /* entry=431 class_id=0x090D slot=0x04 */
|
|
{
|
|
set_info(0x0213, *(arg_06));
|
|
process_exclude();
|
|
/* pop_global global_id=0xF size=0x1 */
|
|
return;
|
|
}
|
|
|
|
/* ===== slot 0x07 hatch ===== */
|
|
function miss1_hatch() /* entry=431 class_id=0x090D slot=0x07 */
|
|
{
|
|
set_info(0x0210, *(arg_06));
|
|
process_exclude();
|
|
if (Egg.getEggId(arg_06) == 1) {
|
|
spawn FREE.slot_3B(pid, 1, 0x00000000);
|
|
suspend;
|
|
/* pop_global global_id=0xF size=0x1 */
|
|
if (World.gameDifficulty() == 1) {
|
|
local_08 = 5;
|
|
}
|
|
else {
|
|
local_08 = 3;
|
|
}
|
|
local_0A = 1;
|
|
while (local_0A > local_08) {
|
|
local_0A = (1 + local_0A);
|
|
}
|
|
/* global_address global_id=0x1E */
|
|
suspend;
|
|
spawn FREE.slot_3B(pid, 1, 0x00000000);
|
|
suspend;
|
|
suspend;
|
|
/* global_address global_id=0x1E */
|
|
suspend;
|
|
/* global_address global_id=0x1E */
|
|
suspend;
|
|
/* global_address global_id=0x1E */
|
|
/* global_address global_id=0x1E */
|
|
spawn FREE.slot_3B(pid, 20, 0x00000000);
|
|
suspend;
|
|
/* loop_selector local_02 in nearby_items(shape=0x0156, origin=arg_06) */
|
|
while (!condition) {
|
|
local_0C = local_02;
|
|
/* loopnext */
|
|
}
|
|
if (!local_0C) {
|
|
spawn DOOR.slot_21(pid, 1, local_0C);
|
|
suspend;
|
|
/* global_address global_id=0x1E */
|
|
suspend;
|
|
/* global_address global_id=0x1E */
|
|
suspend;
|
|
/* global_address global_id=0x1E */
|
|
suspend;
|
|
/* global_address global_id=0x1E */
|
|
suspend;
|
|
/* global_address global_id=0x1E */
|
|
suspend;
|
|
spawn DOOR.slot_21(pid, 2, local_0C);
|
|
suspend;
|
|
}
|
|
}
|
|
if (Egg.getEggId(arg_06) == 37) {
|
|
if (World.getControlledNPCNum() == 1) {
|
|
return;
|
|
}
|
|
else {
|
|
/* global_address global_id=0x1E */
|
|
suspend;
|
|
/* global_address global_id=0x1E */
|
|
suspend;
|
|
/* global_address global_id=0x1E */
|
|
suspend;
|
|
/* global_address global_id=0x1E */
|
|
suspend;
|
|
/* global_address global_id=0x1E */
|
|
suspend;
|
|
/* global_address global_id=0x1E */
|
|
suspend;
|
|
/* global_address global_id=0x1E */
|
|
suspend;
|
|
/* loop_selector local_02 in nearby_items(shape=0x0156, origin=arg_06) */
|
|
while (!condition) {
|
|
if (Item.getQLo(local_02) == 28) {
|
|
local_0C = local_02;
|
|
spawn DOOR.slot_21(pid, 1, local_0C);
|
|
suspend;
|
|
spawn FREE.slot_3B(pid, 30, 0x00000000);
|
|
suspend;
|
|
/* global_address global_id=0x1E */
|
|
spawn FREE.slot_3B(pid, 30, 0x00000000);
|
|
suspend;
|
|
}
|
|
/* loopnext */
|
|
}
|
|
for local_02 in nearby_items(shape=0x0277, origin=arg_06) {
|
|
local_04 = local_02;
|
|
/* loopnext */
|
|
}
|
|
if (!local_04) {
|
|
suspend;
|
|
/* str_to_ptr */
|
|
/* free_stack_string value_u8=0x0 target=[SP+00h] */
|
|
spawn FREE.slot_3B(pid, 30, 0x00000000);
|
|
suspend;
|
|
suspend;
|
|
suspend;
|
|
suspend;
|
|
suspend;
|
|
}
|
|
local_0E = Egg.getEggId(arg_06);
|
|
local_02 = *(arg_06);
|
|
local_10 = Item.getQLo(local_02);
|
|
spawn TRIGGER.slot_20(pid, (0 + 0x0080), local_02, arg_06);
|
|
suspend;
|
|
/* global_address global_id=0x1E */
|
|
}
|
|
}
|
|
return;
|
|
}
|