Crusader_Decomp/USECODE/REGRET/HOLO.unk

95 lines
2.2 KiB
Text

/* synthesized appendix for HOLO */
/* sparse lines above preserve recovered debugger line numbers where available */
/* ===== slot 0x01 use ===== */
function holo_use() /* entry=355 class_id=0x05AD slot=0x01 */
{
set_info(0x0207, *(arg_06));
process_exclude();
if (Item.getFrame(arg_06) == 0) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
return;
}
else if (Item.getFrame(arg_06) == 1) {
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x6 */
while (!condition) {
/* loopnext */
}
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
return;
}
else {
return;
}
return;
}
/* ===== slot 0x06 gotHit ===== */
function holo_gotHit() /* entry=355 class_id=0x05AD slot=0x06 */
{
set_info(0x020C, *(arg_06));
process_exclude();
if (Item.getFrame(arg_06) <= 1) {
return;
}
else {
FREE.slot_35(arg_0C, arg_0A);
if (!retval) {
spawn ITEM.slot_2A(pid, 0, 1, arg_06);
suspend;
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x6 */
while (!condition) {
/* loopnext */
}
}
}
return;
}
/* ===== slot 0x0A equip ===== */
function holo_equip() /* entry=355 class_id=0x05AD slot=0x0A */
{
set_info(0x0211, *(arg_06));
process_exclude();
if (Item.getFrame(arg_06) == 2) {
return;
}
else if (arg_0A == 0) {
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x6 */
while (!condition) {
/* loopnext */
}
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
return;
}
else if (arg_0A == 1) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
return;
}
return;
}
/* ===== slot 0x0F enterFastArea ===== */
function holo_enterFastArea() /* entry=355 class_id=0x05AD slot=0x0F */
{
set_info(0x021B, *(arg_06));
process_exclude();
return;
}