Crusader_Decomp/USECODE/REGRET/NOSTRIL.unk

75 lines
1.7 KiB
Text

/* synthesized appendix for NOSTRIL */
/* sparse lines above preserve recovered debugger line numbers where available */
/* ===== slot 0x0A equip ===== */
function nostril_equip() /* entry=242 class_id=0x043E slot=0x0A */
{
set_info(0x0211, *(arg_06));
process_exclude();
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) {
spawn NOSTRIL.slot_20(local_02, arg_06);
/* loopnext */
}
return;
}
else if (arg_0A == 1) {
if (!(Item.getStatus(arg_06) & 0x1000)) {
return;
}
else {
ITEM.slot_24(0x1000, arg_06);
spawn NOSTRIL.slot_21(arg_06);
return;
}
}
return;
}
/* ===== slot 0x20 slot_20 ===== */
function nostril_slot_20() /* entry=242 class_id=0x043E slot=0x20 */
{
set_info(1, *(arg_06));
spawn STEAM.slot_22(local_04);
if (!Intrinsic006A()) {
while (Item.getFrame(local_04) == 21) {
spawn FREE.slot_3B(pid, 2, 0x00000000);
suspend;
}
}
else {
spawn FREE.slot_3B(pid, 30, 0x00000000);
suspend;
}
ITEM.slot_25(0x1000, arg_06);
return;
}
/* ===== slot 0x21 slot_21 ===== */
function nostril_slot_21() /* entry=242 class_id=0x043E slot=0x21 */
{
set_info(1, *(arg_06));
spawn FREE.slot_3B(UCMachine.rndRange(pid, 15, 0), 0x00000000);
suspend;
spawn STEAM.slot_22(local_02);
if (!Intrinsic006A()) {
while (Item.getFrame(local_02) == 10) {
spawn FREE.slot_3B(pid, 2, 0x00000000);
suspend;
}
}
else {
spawn FREE.slot_3B(pid, 30, 0x00000000);
suspend;
}
if (!Intrinsic006A()) {
return;
}
return;
}