40 lines
1 KiB
Text
40 lines
1 KiB
Text
function pepsins_use() /* entry=30 class_id=0x009A slot=0x01 */
|
|
{
|
|
var
|
|
referent, /* [BP+00h] type=0x69 */
|
|
item, /* [BP-02h] type=0x24 */
|
|
x, /* [BP-04h] type=0x69 */
|
|
y, /* [BP-06h] type=0x69 */
|
|
z, /* [BP-08h] type=0x69 */
|
|
wp; /* [BP-0Dh] type=0x24 */
|
|
|
|
set_info(0x0207, *(arg_06));
|
|
process_exclude();
|
|
x = 0;
|
|
y = 1;
|
|
wp = Item.getX(arg_06);
|
|
local_0B = (Item.getY(arg_06) + 32);
|
|
local_09 = (Item.getZ(arg_06) + 32);
|
|
if (UCMachine.rndRange(100, 0) <= 50) {
|
|
if (!Item.legalCreateAtPoint(wp, 0, 0x0343, item)) {
|
|
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=0x2 */
|
|
while (!condition) {
|
|
if (!(Item.getStatus(item) & 0x0080)) {
|
|
spawn class_0A1E_slot_28(pid, 1, 0, item);
|
|
suspend;
|
|
}
|
|
/* loopnext */
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
else if (!Item.legalCreateAtPoint(wp, 0, 0x0579, item)) {
|
|
suspend;
|
|
}
|
|
return;
|
|
}
|