45 lines
1.2 KiB
Text
45 lines
1.2 KiB
Text
|
|
/* synthesized appendix for SCANNER */
|
|
/* sparse lines above preserve recovered debugger line numbers where available */
|
|
|
|
/* ===== slot 0x01 use ===== */
|
|
function scanner_use() /* entry=306 class_id=0x052D slot=0x01 */
|
|
{
|
|
set_info(0x0207, *(arg_06));
|
|
process_exclude();
|
|
set_info(0x00F0, 0);
|
|
/* global_address global_id=0x1E */
|
|
if (Actor.getMana() >= 0x0258) {
|
|
spawn FREE.slot_21(pid, 0x01A7, 0x00000000);
|
|
suspend;
|
|
spawn FREE.slot_3B(pid, 20, 0x00000000);
|
|
suspend;
|
|
return;
|
|
}
|
|
else {
|
|
/* global_address global_id=0x1E */
|
|
/* global_address global_id=0x1E */
|
|
/* loop_selector local_02 in nearby_items(family=6, origin=global[0x001E]) */
|
|
while (!condition) {
|
|
if ((Actor.isDead(local_02) == 0) && (local_02 != World.getControlledNPCNum())) {
|
|
NPC.slot_2A(local_02);
|
|
if (!retval) {
|
|
spawn SCANNER.slot_20(local_02, arg_06);
|
|
}
|
|
}
|
|
/* loopnext */
|
|
}
|
|
/* global_address global_id=0x1E */
|
|
spawn FREE.slot_3B(pid, 60, 0x00000000);
|
|
suspend;
|
|
}
|
|
return;
|
|
}
|
|
|
|
/* ===== slot 0x20 slot_20 ===== */
|
|
function scanner_slot_20() /* entry=306 class_id=0x052D slot=0x20 */
|
|
{
|
|
set_info(0x00F0, 0);
|
|
local_02 = arg_0A;
|
|
return;
|
|
}
|