Crusader_Decomp/USECODE/REGRET/LAZEREW.unk

100 lines
2.2 KiB
Text

/* synthesized appendix for LAZEREW */
/* sparse lines above preserve recovered debugger line numbers where available */
/* ===== slot 0x06 gotHit ===== */
function lazerew_gotHit() /* entry=89 class_id=0x019C slot=0x06 */
{
set_info(0x020C, *(arg_06));
process_exclude();
local_02 = Item.getQHi(arg_06);
local_04 = Item.getFrame(arg_06);
if (local_04 <= 3) {
return;
}
else {
FREE.slot_35(arg_0C, arg_0A);
if (!retval) {
if (local_02 <= 99) {
return;
}
else {
ITEM.slot_25(0x1000, arg_06);
FREE.slot_3C(0x0205, *(arg_06));
spawn ITEM.slot_2A(pid, 0, 0, arg_06);
suspend;
}
}
}
return;
}
/* ===== slot 0x0A equip ===== */
function lazerew_equip() /* entry=89 class_id=0x019C slot=0x0A */
{
set_info(0x0211, *(arg_06));
process_exclude();
if (Item.getFrame(arg_06) >= 4) {
if (arg_0A == 1) {
spawn LAZEREW.slot_20(arg_06);
return;
}
else if (arg_0A <= 1) {
spawn LAZEREW.slot_20(arg_06);
spawn FREE.slot_3B(pid, 30, 0x00000000);
suspend;
ITEM.slot_25(0x1000, arg_06);
FREE.slot_3C(0x0205, *(arg_06));
return;
}
else {
ITEM.slot_25(0x1000, arg_06);
FREE.slot_3C(0x0205, *(arg_06));
}
}
return;
}
/* ===== slot 0x10 leaveFastArea ===== */
function lazerew_leaveFastArea() /* entry=89 class_id=0x019C slot=0x10 */
{
set_info(0x021C, *(arg_06));
process_exclude();
ITEM.slot_25(0x1000, arg_06);
FREE.slot_3C(0x0205, *(arg_06));
return;
}
/* ===== slot 0x20 slot_20 ===== */
function lazerew_slot_20() /* entry=89 class_id=0x019C slot=0x20 */
{
entry:
set_info(0x0205, *(arg_06));
if (Item.getStatus(arg_06) & 0x1000) goto block_00F7;
block_00F4:
goto block_02B6;
block_00F7:
ITEM.slot_24(0x1000, arg_06);
local_02 = Item.getFrame(arg_06);
block_010E:
while (true) {
suspend;
if (local_02 == 1) {
}
else if (local_02 == 2) {
}
else if (local_02 == 3) {
spawn FREE.slot_3B(pid, 100, 0x00000000);
suspend;
}
spawn FREE.slot_3B(pid, ((5 - World.gameDifficulty()) * 20), 0x00000000);
suspend;
}
block_02B6:
return;
}