Usecode pseudocode
This commit is contained in:
parent
f92d1504fa
commit
c12bb39437
1362 changed files with 71072 additions and 38056 deletions
|
|
@ -9,7 +9,10 @@ function npctrig_equip() /* entry=191 class_id=0x0363 slot=0x0A */
|
|||
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if ((Item.getStatus(arg_06) & 0x1000)) {
|
||||
if (!(Item.getStatus(arg_06) & 0x1000)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
class_0A1E_slot_23(0x1000, arg_06);
|
||||
if (event == 1) {
|
||||
spawn class_0363_slot_20(pid, 0x02FD, arg_06);
|
||||
|
|
|
|||
|
|
@ -7,36 +7,22 @@ function npctrig_slot_20() /* entry=191 class_id=0x0363 slot=0x20 */
|
|||
item, /* [BP-04h] type=0x24 */
|
||||
item2; /* [BP-06h] type=0x24 */
|
||||
|
||||
entry:
|
||||
set_info(0x0001, *(arg_06));
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */
|
||||
|
||||
block_0283:
|
||||
if condition goto block_0291;
|
||||
|
||||
block_0286:
|
||||
set_info(0x0001, *(arg_06));
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
item2 = item;
|
||||
/* loopnext */
|
||||
goto block_0283;
|
||||
|
||||
block_0291:
|
||||
if item2 goto block_0370;
|
||||
|
||||
block_029B:
|
||||
}
|
||||
if (!item2) {
|
||||
spawn class_0A11_slot_23(pid, n);
|
||||
suspend;
|
||||
if (Item.pop() != 0) goto block_0361;
|
||||
|
||||
block_034E:
|
||||
goto block_0370;
|
||||
|
||||
block_0361:
|
||||
|
||||
block_0370:
|
||||
return;
|
||||
|
||||
if (getTargetNPCNumMaybe() == 0) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue