Usecode pseudocode
This commit is contained in:
parent
f92d1504fa
commit
c12bb39437
1362 changed files with 71072 additions and 38056 deletions
|
|
@ -0,0 +1,32 @@
|
|||
function pepsins_use() /* entry=39 class_id=0x009A slot=0x01 */
|
||||
{
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
local_04 = 0;
|
||||
local_06 = 1;
|
||||
local_0D = 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(local_0D, 0, 0x0343, local_02)) {
|
||||
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(local_02) & 0x0080)) {
|
||||
spawn class_0A0C_slot_2A(pid, 1, 0, local_02);
|
||||
suspend;
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (!Item.legalCreateAtPoint(local_0D, 0, 0x0579, local_02)) {
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
function pepsins_gotHit() /* entry=39 class_id=0x009A slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
class_0A1D_slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
spawn class_0A0C_slot_2A(pid, 0, 1, arg_06);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue