56 lines
1.5 KiB
Text
56 lines
1.5 KiB
Text
|
|
/* synthesized appendix for ENERGY */
|
|
/* sparse lines above preserve recovered debugger line numbers where available */
|
|
|
|
/* ===== slot 0x01 use ===== */
|
|
function energy_use() /* entry=341 class_id=0x0582 slot=0x01 */
|
|
{
|
|
set_info(0x0207, *(arg_06));
|
|
process_exclude();
|
|
set_info(0x00F0, 0);
|
|
/* global_address global_id=0x1E */
|
|
if (MainActor.getMaxEnergy() == 0x09C4) {
|
|
local_04 = 0x03E8;
|
|
}
|
|
else {
|
|
/* global_address global_id=0x1E */
|
|
if (MainActor.getMaxEnergy() == 0x1388) {
|
|
local_04 = 0x07D0;
|
|
}
|
|
else {
|
|
/* global_address global_id=0x1E */
|
|
if (MainActor.getMaxEnergy() == 0x2710) {
|
|
local_04 = 0x0BB8;
|
|
}
|
|
else {
|
|
/* global_address global_id=0x1E */
|
|
}
|
|
}
|
|
}
|
|
/* global_address global_id=0x1E */
|
|
/* global_address global_id=0x1E */
|
|
if (!MainActor.getMaxEnergy(Actor.getMana())) {
|
|
spawn FREE.slot_21(pid, 0x01A7, 0x00000000);
|
|
suspend;
|
|
return;
|
|
}
|
|
else {
|
|
/* global_address global_id=0x1E */
|
|
/* global_address global_id=0x1E */
|
|
if (!MainActor.getMaxEnergy((Actor.getMana() + local_04))) {
|
|
/* global_address global_id=0x1E */
|
|
/* global_address global_id=0x1E */
|
|
spawn FREE.slot_21(pid, 0x010D, 0x00000000);
|
|
suspend;
|
|
}
|
|
else {
|
|
/* global_address global_id=0x1E */
|
|
/* global_address global_id=0x1E */
|
|
spawn FREE.slot_21(pid, 0x010D, 0x00000000);
|
|
suspend;
|
|
}
|
|
spawn FREE.slot_3B(pid, 30, 0x00000000);
|
|
suspend;
|
|
}
|
|
return;
|
|
}
|