55 lines
1.3 KiB
Text
55 lines
1.3 KiB
Text
function fffloor2_equip() /* entry=96 class_id=0x01C8 slot=0x0A */
|
|
{
|
|
var
|
|
referent, /* [BP+00h] type=0x69 */
|
|
var, /* [BP+0Ah] type=0x69 */
|
|
egg, /* [BP-02h] type=0x24 */
|
|
fffloor; /* [BP-04h] type=0x24 */
|
|
|
|
set_info(0x0211, *(arg_06));
|
|
process_exclude();
|
|
if (var == 0) {
|
|
for egg in nearby_items(shape=17, origin=arg_06) {
|
|
/* loopnext */
|
|
}
|
|
return;
|
|
}
|
|
else if (var == 1) {
|
|
for egg in nearby_items(shape=17, origin=arg_06) {
|
|
/* loopnext */
|
|
}
|
|
/* bit_not */
|
|
return;
|
|
}
|
|
else if (var == 29) {
|
|
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
|
suspend;
|
|
/* loop_selector fffloor in nearby_items(shape=0x0135, origin=arg_06) */
|
|
while (!condition) {
|
|
/* loopnext */
|
|
}
|
|
return;
|
|
}
|
|
else if (var == 30) {
|
|
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
|
suspend;
|
|
/* loop_selector egg in nearby_items(shape=17, origin=arg_06) */
|
|
while (!condition) {
|
|
/* loopnext */
|
|
}
|
|
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
|
suspend;
|
|
/* loop_selector fffloor in nearby_items(shape=WHITE_GRID, origin=arg_06) */
|
|
while (!condition) {
|
|
/* loopnext */
|
|
}
|
|
return;
|
|
}
|
|
else if (var == 31) {
|
|
for egg in nearby_items(shape=17, origin=arg_06) {
|
|
/* loopnext */
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|