137 lines
3.6 KiB
Text
137 lines
3.6 KiB
Text
|
|
/* synthesized appendix for VIR */
|
|
/* sparse lines above preserve recovered debugger line numbers where available */
|
|
|
|
/* ===== slot 0x01 use ===== */
|
|
function vir_use() /* entry=292 class_id=0x04ED slot=0x01 */
|
|
{
|
|
set_info(0x0207, *(arg_06));
|
|
process_exclude();
|
|
set_info(0x00F0, 0);
|
|
/* global_address global_id=0x1E */
|
|
if (Actor.getMap() == 25) {
|
|
return;
|
|
}
|
|
else if (!(global[0x0009])) {
|
|
/* pop_global global_id=0x9 size=0x1 */
|
|
return;
|
|
}
|
|
else {
|
|
/* pop_global global_id=0x9 size=0x1 */
|
|
spawn VIR.slot_20(1, arg_06);
|
|
}
|
|
return;
|
|
}
|
|
|
|
/* ===== slot 0x20 slot_20 ===== */
|
|
function vir_slot_20() /* entry=292 class_id=0x04ED slot=0x20 */
|
|
{
|
|
entry:
|
|
set_info(0x0223, 0);
|
|
/* global_address global_id=0x1E */
|
|
if (Actor.getMana() < 0x00C8) goto block_017E;
|
|
|
|
block_0156:
|
|
spawn FREE.slot_21(pid, 0x01A7, 0x00000000);
|
|
suspend;
|
|
goto block_04A8;
|
|
|
|
block_017B:
|
|
goto block_018A;
|
|
|
|
block_017E:
|
|
/* global_address global_id=0x1E */
|
|
|
|
block_018A:
|
|
local_02 = Kernel.getNumProcesses(0x0223, global[0x001E]);
|
|
if (local_02 > 1) goto block_01A5;
|
|
|
|
block_01A2:
|
|
goto block_04A8;
|
|
|
|
block_01A5:
|
|
while (true) {
|
|
suspend;
|
|
/* loopscr value_u8=0x24 */
|
|
/* loopscr value_u8=0x44 */
|
|
/* loop current_var=0xFC string_bytes=0xA loop_type=0x2 */
|
|
while (!condition) {
|
|
/* loopnext */
|
|
}
|
|
/* loopscr value_u8=0x24 */
|
|
/* loopscr value_u8=0x44 */
|
|
/* loop current_var=0xFC string_bytes=0xA loop_type=0x2 */
|
|
while (!condition) {
|
|
/* loopnext */
|
|
}
|
|
/* loopscr value_u8=0x24 */
|
|
/* loopscr value_u8=0x41 */
|
|
/* loop current_var=0xFC string_bytes=0x4 loop_type=0x2 */
|
|
while (!condition) {
|
|
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
|
suspend;
|
|
/* loopnext */
|
|
}
|
|
/* global_address global_id=0x1E */
|
|
if (Intrinsic0035(0x01FD)) {
|
|
/* global_address global_id=0x1E */
|
|
}
|
|
spawn FREE.slot_3B(pid, 60, 0x00000000);
|
|
suspend;
|
|
/* global_address global_id=0x1E */
|
|
if (Actor.getMana() >= 0x00C9) {
|
|
/* loopscr value_u8=0x24 */
|
|
/* loopscr value_u8=0x3D */
|
|
/* loopscr value_u8=0x40 */
|
|
/* loopscr value_u8=0x25 */
|
|
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x4 */
|
|
while (!condition) {
|
|
/* loopnext */
|
|
}
|
|
/* pop_global global_id=0x9 size=0x1 */
|
|
}
|
|
else {
|
|
/* global_address global_id=0x1E */
|
|
/* global_address global_id=0x1E */
|
|
}
|
|
if (global[0x0009]) {
|
|
/* loopscr value_u8=0x24 */
|
|
/* loopscr value_u8=0x41 */
|
|
/* loop current_var=0xFC string_bytes=0x4 loop_type=0x2 */
|
|
while (!condition) {
|
|
if (Item.getShape(local_04) == 40) {
|
|
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
|
suspend;
|
|
}
|
|
/* loopnext */
|
|
}
|
|
/* loopscr value_u8=0x24 */
|
|
/* loopscr value_u8=0x44 */
|
|
/* loop current_var=0xFC string_bytes=0xA loop_type=0x2 */
|
|
while (!condition) {
|
|
ITEM.slot_26(4, local_04);
|
|
if (retval == 1) {
|
|
return;
|
|
}
|
|
/* loopnext */
|
|
}
|
|
/* loopscr value_u8=0x24 */
|
|
/* loopscr value_u8=0x44 */
|
|
/* loop current_var=0xFC string_bytes=0xA loop_type=0x2 */
|
|
while (!condition) {
|
|
ITEM.slot_26(4, local_04);
|
|
if (retval == 1) {
|
|
return;
|
|
}
|
|
/* loopnext */
|
|
}
|
|
/* global_address global_id=0x1E */
|
|
/* global_address global_id=0x1E */
|
|
return;
|
|
}
|
|
}
|
|
|
|
block_04A8:
|
|
return;
|
|
|
|
}
|