214 lines
4.3 KiB
Text
214 lines
4.3 KiB
Text
|
|
/* synthesized appendix for STEAM */
|
|
/* sparse lines above preserve recovered debugger line numbers where available */
|
|
|
|
/* ===== slot 0x20 slot_20 ===== */
|
|
function steam_slot_20() /* entry=466 class_id=0x0A14 slot=0x20 */
|
|
{
|
|
entry:
|
|
set_info(0x0001, *(arg_06));
|
|
|
|
block_0102:
|
|
while (true) {
|
|
suspend;
|
|
spawn FREE.slot_3B(pid, 60, 0x00000000);
|
|
suspend;
|
|
local_03 = 0;
|
|
/* loop_selector local_02 in nearby_items(family=6, origin=arg_06) */
|
|
while (!condition) {
|
|
if (!Item.isNpc(local_02)) {
|
|
if (!Item.overlaps(*(arg_06), local_02)) {
|
|
local_05 = local_02;
|
|
if (local_05 == World.getControlledNPCNum()) {
|
|
NPC.slot_2A(local_05);
|
|
}
|
|
local_03 = 1;
|
|
}
|
|
}
|
|
/* loopnext */
|
|
}
|
|
if (local_03) {
|
|
ITEM.slot_25(4, arg_06);
|
|
return;
|
|
}
|
|
}
|
|
|
|
block_01D7:
|
|
return;
|
|
|
|
}
|
|
|
|
/* ===== slot 0x21 slot_21 ===== */
|
|
function steam_slot_21() /* entry=466 class_id=0x0A14 slot=0x21 */
|
|
{
|
|
entry:
|
|
set_info(0x0001, *(arg_06));
|
|
local_02 = arg_0A;
|
|
if (Item.getStatus(arg_06) & 4) goto block_01F9;
|
|
|
|
block_01F6:
|
|
goto block_0292;
|
|
|
|
block_01F9:
|
|
ITEM.slot_24(4, arg_06);
|
|
|
|
block_0204:
|
|
while (true) {
|
|
suspend;
|
|
if (arg_0A >= 0x00FF) {
|
|
if (arg_0A == World.getControlledNPCNum()) {
|
|
}
|
|
else {
|
|
NPC.slot_2A(local_02);
|
|
}
|
|
spawn STEAM.slot_20(arg_06);
|
|
return;
|
|
}
|
|
else {
|
|
ITEM.slot_25(4, arg_06);
|
|
return;
|
|
}
|
|
}
|
|
|
|
block_0292:
|
|
return;
|
|
|
|
}
|
|
|
|
/* ===== slot 0x22 slot_22 ===== */
|
|
function steam_slot_22() /* entry=466 class_id=0x0A14 slot=0x22 */
|
|
{
|
|
entry:
|
|
set_info(0x0001, *(arg_06));
|
|
|
|
block_029E:
|
|
while (true) {
|
|
suspend;
|
|
spawn FREE.slot_3B(pid, 20, 0x00000000);
|
|
suspend;
|
|
local_03 = 0;
|
|
/* loop_selector local_02 in nearby_items(family=6, origin=arg_06) */
|
|
while (!condition) {
|
|
if (!Item.isNpc(local_02)) {
|
|
if (!Item.overlaps(*(arg_06), local_02)) {
|
|
local_05 = local_02;
|
|
if (local_05 == World.getControlledNPCNum()) {
|
|
NPC.slot_2A(local_05);
|
|
}
|
|
local_03 = 1;
|
|
}
|
|
}
|
|
/* loopnext */
|
|
}
|
|
if (local_03) {
|
|
ITEM.slot_25(4, arg_06);
|
|
return;
|
|
}
|
|
}
|
|
|
|
block_0364:
|
|
return;
|
|
|
|
}
|
|
|
|
/* ===== slot 0x23 slot_23 ===== */
|
|
function steam_slot_23() /* entry=466 class_id=0x0A14 slot=0x23 */
|
|
{
|
|
entry:
|
|
set_info(0x0001, *(arg_06));
|
|
local_02 = arg_0A;
|
|
if (Item.getStatus(arg_06) & 4) goto block_0386;
|
|
|
|
block_0383:
|
|
goto block_03D3;
|
|
|
|
block_0386:
|
|
ITEM.slot_24(4, arg_06);
|
|
|
|
block_0391:
|
|
while (true) {
|
|
suspend;
|
|
if (arg_0A >= 0x00FF) {
|
|
NPC.slot_2A(local_02);
|
|
spawn STEAM.slot_22(arg_06);
|
|
return;
|
|
}
|
|
}
|
|
|
|
block_03D3:
|
|
return;
|
|
|
|
}
|
|
|
|
/* ===== slot 0x24 slot_24 ===== */
|
|
function steam_slot_24() /* entry=466 class_id=0x0A14 slot=0x24 */
|
|
{
|
|
entry:
|
|
set_info(0x0001, *(arg_06));
|
|
|
|
block_03DF:
|
|
while (true) {
|
|
suspend;
|
|
spawn FREE.slot_3B(pid, 60, 0x00000000);
|
|
suspend;
|
|
local_03 = 0;
|
|
/* loop_selector local_02 in nearby_items(family=6, origin=arg_06) */
|
|
while (!condition) {
|
|
if (!Item.isNpc(local_02)) {
|
|
if (!Item.overlaps(*(arg_06), local_02)) {
|
|
local_05 = local_02;
|
|
if (local_05 == World.getControlledNPCNum()) {
|
|
NPC.slot_2A(local_05);
|
|
}
|
|
local_03 = 1;
|
|
}
|
|
}
|
|
/* loopnext */
|
|
}
|
|
if (local_03) {
|
|
ITEM.slot_25(4, arg_06);
|
|
return;
|
|
}
|
|
}
|
|
|
|
block_04B6:
|
|
return;
|
|
|
|
}
|
|
|
|
/* ===== slot 0x25 slot_25 ===== */
|
|
function steam_slot_25() /* entry=466 class_id=0x0A14 slot=0x25 */
|
|
{
|
|
entry:
|
|
set_info(0x0001, *(arg_06));
|
|
local_02 = arg_0A;
|
|
if (Item.getStatus(arg_06) & 4) goto block_04D8;
|
|
|
|
block_04D5:
|
|
goto block_0573;
|
|
|
|
block_04D8:
|
|
ITEM.slot_24(4, arg_06);
|
|
|
|
block_04E3:
|
|
while (true) {
|
|
suspend;
|
|
if (arg_0A >= 0x00FF) {
|
|
if (arg_0A == World.getControlledNPCNum()) {
|
|
}
|
|
else {
|
|
NPC.slot_2A(local_02);
|
|
}
|
|
spawn STEAM.slot_24(arg_06);
|
|
return;
|
|
}
|
|
else {
|
|
ITEM.slot_25(4, arg_06);
|
|
return;
|
|
}
|
|
}
|
|
|
|
block_0573:
|
|
return;
|
|
|
|
}
|