41 lines
912 B
Text
41 lines
912 B
Text
|
|
/* synthesized appendix for CHEST_OE */
|
|
/* sparse lines above preserve recovered debugger line numbers where available */
|
|
|
|
/* ===== slot 0x01 use ===== */
|
|
function chest_oe_use() /* entry=317 class_id=0x054B slot=0x01 */
|
|
{
|
|
set_info(0x0207, *(arg_06));
|
|
process_exclude();
|
|
if (Item.getFrame(arg_06) <= 9) {
|
|
return;
|
|
}
|
|
else {
|
|
spawn FREE.slot_49(pid, *(arg_06), 0x00000000);
|
|
suspend;
|
|
/* dword_to_word */
|
|
if (!process_result) {
|
|
ITEM.slot_24(0x1000, arg_06);
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|
|
/* ===== slot 0x06 gotHit ===== */
|
|
function chest_oe_gotHit() /* entry=317 class_id=0x054B slot=0x06 */
|
|
{
|
|
set_info(0x020C, *(arg_06));
|
|
process_exclude();
|
|
FREE.slot_35(arg_0C, arg_0A);
|
|
if (retval) {
|
|
return;
|
|
}
|
|
else if (Item.getFrame(arg_06) >= 10) {
|
|
FREE.slot_35(arg_0C, arg_0A);
|
|
if (!retval) {
|
|
spawn ITEM.slot_2A(pid, 0, 0, arg_06);
|
|
suspend;
|
|
}
|
|
}
|
|
return;
|
|
}
|