Usecode pseudocode
This commit is contained in:
parent
f92d1504fa
commit
c12bb39437
1362 changed files with 71072 additions and 38056 deletions
|
|
@ -8,53 +8,33 @@ function pepsins_use() /* entry=30 class_id=0x009A slot=0x01 */
|
|||
z, /* [BP-08h] type=0x69 */
|
||||
wp; /* [BP-0Dh] type=0x24 */
|
||||
|
||||
entry:
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
x = 0;
|
||||
y = 1;
|
||||
wp = Intrinsic0013(arg_06);
|
||||
local_0B = (Item.legal_create(arg_06) + 32);
|
||||
local_09 = (Item.getZ(arg_06) + 32);
|
||||
if (Intrinsic00DA(100, 0) > 50) goto block_01E4;
|
||||
|
||||
block_0140:
|
||||
if Item.getSurfaceWeight(wp, 0, 0x0343, item) goto block_01E1;
|
||||
|
||||
block_0156:
|
||||
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 */
|
||||
|
||||
block_01A0:
|
||||
if condition goto block_01DF;
|
||||
|
||||
block_01A3:
|
||||
if (Item.getStatus(item) & 0x0080) goto block_01DB;
|
||||
|
||||
block_01B6:
|
||||
spawn class_0A1E_slot_28(pid, 1, 0, item);
|
||||
suspend;
|
||||
|
||||
block_01DB:
|
||||
/* loopnext */
|
||||
goto block_01A0;
|
||||
|
||||
block_01DF:
|
||||
|
||||
block_01E1:
|
||||
goto block_0240;
|
||||
|
||||
block_01E4:
|
||||
if Item.getSurfaceWeight(wp, 0, 0x0579, item) goto block_0240;
|
||||
|
||||
block_01FA:
|
||||
suspend;
|
||||
|
||||
block_0240:
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,17 +5,12 @@ function pepsins_gotHit() /* entry=30 class_id=0x009A slot=0x06 */
|
|||
ref, /* [BP+0Ah] type=0x69 */
|
||||
vel; /* [BP+0Ch] type=0x69 */
|
||||
|
||||
entry:
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
class_0A0C_slot_2C(vel, ref);
|
||||
if retval goto block_02DE;
|
||||
|
||||
block_029E:
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
class_0A0C_slot_2C(vel, ref);
|
||||
if (!retval) {
|
||||
spawn class_0A1E_slot_28(pid, 0, 1, arg_06);
|
||||
suspend;
|
||||
|
||||
block_02DE:
|
||||
return;
|
||||
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue