Crusader_Decomp/USECODE/REGRET/PEPSIEW.unk

46 lines
1.2 KiB
Text

/* synthesized appendix for PEPSIEW */
/* sparse lines above preserve recovered debugger line numbers where available */
/* ===== slot 0x01 use ===== */
function pepsiew_use() /* entry=36 class_id=0x0094 slot=0x01 */
{
set_info(0x0207, *(arg_06));
process_exclude();
local_04 = 1;
local_06 = 0;
local_0D = (Item.getX(arg_06) + 32);
local_0B = Item.getY(arg_06);
local_09 = (Item.getZ(arg_06) + 32);
if (UCMachine.rndRange(100, 0) <= 50) {
if (!Item.legalCreateAtPoint(local_0D, 0, 0x0343, local_02)) {
suspend;
/* loop_selector local_02 in nearby_items(shape=0x01E4, origin=global[0x001E]) */
while (!condition) {
if (!(Item.getStatus(local_02) & 0x0080)) {
spawn ITEM.slot_2A(pid, 1, 0, local_02);
suspend;
}
/* loopnext */
}
}
return;
}
else if (!Item.legalCreateAtPoint(local_0D, 1, 0x0579, local_02)) {
suspend;
}
return;
}
/* ===== slot 0x06 gotHit ===== */
function pepsiew_gotHit() /* entry=36 class_id=0x0094 slot=0x06 */
{
set_info(0x020C, *(arg_06));
process_exclude();
FREE.slot_35(arg_0C, arg_0A);
if (!retval) {
spawn ITEM.slot_2A(pid, 0, 1, arg_06);
suspend;
}
return;
}