Usecode pseudocode
This commit is contained in:
parent
f92d1504fa
commit
c12bb39437
1362 changed files with 71072 additions and 38056 deletions
|
|
@ -6,71 +6,43 @@ function crumorph_equip() /* entry=173 class_id=0x0318 slot=0x0A */
|
|||
n, /* [BP-02h] type=0x24 */
|
||||
lastAct; /* [BP-04h] type=0x69 */
|
||||
|
||||
entry:
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
|
||||
block_0109:
|
||||
if condition goto block_02AF;
|
||||
|
||||
block_010C:
|
||||
if Item.isNpc(n) goto block_02AB;
|
||||
|
||||
block_011B:
|
||||
if (Item.getQLo(n) != Item.pop(arg_06)) goto block_02AB;
|
||||
|
||||
block_0137:
|
||||
if (Kernel.resetRef(n) != 0) goto block_02AB;
|
||||
|
||||
block_0149:
|
||||
class_0A11_slot_2B(n);
|
||||
if (!retval) goto block_0163;
|
||||
|
||||
block_015D:
|
||||
goto block_02B1;
|
||||
|
||||
block_0163:
|
||||
lastAct = Intrinsic0050(n);
|
||||
spawn class_0A0C_slot_32(pid, 3, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A11_slot_28(pid, n);
|
||||
suspend;
|
||||
|
||||
block_020B:
|
||||
if (Item.pop() > 1) goto block_0242;
|
||||
|
||||
block_0219:
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
goto block_020B;
|
||||
|
||||
block_0242:
|
||||
if (Kernel.resetRef(n) != 0) goto block_027E;
|
||||
|
||||
block_0254:
|
||||
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
goto block_02A5;
|
||||
|
||||
block_027E:
|
||||
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
|
||||
block_02A5:
|
||||
goto block_02B1;
|
||||
|
||||
block_02AB:
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
if (!Actor.isNPC(n)) {
|
||||
if (Actor.GetNPCDataField0x63_00B(n) == Item.getQLo(arg_06)) {
|
||||
if (Actor.isDead(n) == 0) {
|
||||
class_0A11_slot_2B(n);
|
||||
if (retval) {
|
||||
return;
|
||||
}
|
||||
lastAct = GetNPCDataField0x2_050(n);
|
||||
spawn class_0A0C_slot_32(pid, 3, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A11_slot_28(pid, n);
|
||||
suspend;
|
||||
while (getTargetNPCNumMaybe() <= 1) {
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
if (Actor.isDead(n) == 0) {
|
||||
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
else {
|
||||
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
goto block_0109;
|
||||
|
||||
block_02AF:
|
||||
|
||||
block_02B1:
|
||||
return;
|
||||
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue