50 lines
1.3 KiB
Text
50 lines
1.3 KiB
Text
|
|
/* synthesized appendix for V_LASER */
|
|
/* sparse lines above preserve recovered debugger line numbers where available */
|
|
|
|
/* ===== slot 0x0A equip ===== */
|
|
function v_laser_equip() /* entry=344 class_id=0x058A slot=0x0A */
|
|
{
|
|
set_info(0x0211, *(arg_06));
|
|
process_exclude();
|
|
ITEM.slot_24(0x1000, arg_06);
|
|
if (Item.getStatus(arg_06) & 0x1000) {
|
|
return;
|
|
}
|
|
else {
|
|
/* loopscr value_u8=0x24 */
|
|
/* loopscr value_u8=0x3D */
|
|
/* loopscr value_u8=0x3A */
|
|
/* loopscr value_u8=0x25 */
|
|
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x6 */
|
|
while (!condition) {
|
|
if (!Item.isNpc(local_02)) {
|
|
FREE.slot_20(8, 20, 8);
|
|
}
|
|
/* loopnext */
|
|
}
|
|
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
|
suspend;
|
|
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
|
suspend;
|
|
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
|
suspend;
|
|
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
|
suspend;
|
|
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
|
suspend;
|
|
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
|
suspend;
|
|
/* 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)) {
|
|
FREE.slot_20(8, Actor.getHp(local_02), 8);
|
|
}
|
|
}
|
|
/* loopnext */
|
|
}
|
|
ITEM.slot_25(0x1000, arg_06);
|
|
}
|
|
return;
|
|
}
|