Pseudocode decompialtion improvements and docs
This commit is contained in:
parent
f869a181a3
commit
589bfc31ef
1898 changed files with 60634 additions and 6597 deletions
|
|
@ -11,10 +11,10 @@ function fffloor2_gotHit() /* entry=104 class_id=0x01C8 slot=0x06 */
|
|||
if (Item.getFrame(arg_06) == 1) {
|
||||
return;
|
||||
}
|
||||
class_0A1D_slot_20(pid, 8);
|
||||
spawn class_0A0F_slot_2F(retval, *(arg_06), local_02);
|
||||
FREE.slot_20(pid, 8);
|
||||
spawn NPC.slot_2F(retval, *(arg_06), local_02);
|
||||
suspend;
|
||||
spawn class_0A1D_slot_3B(pid, 2, 0x00000000);
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,71 +3,44 @@ function fffloor2_equip() /* entry=104 class_id=0x01C8 slot=0x0A */
|
|||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (arg_0A == 0) {
|
||||
/* 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) {
|
||||
for local_02 in nearby_items(shape=17, origin=arg_06) {
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 1) {
|
||||
/* 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) {
|
||||
for local_02 in nearby_items(shape=17, origin=arg_06) {
|
||||
/* loopnext */
|
||||
}
|
||||
/* bit_not */
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 29) {
|
||||
spawn class_0A1D_slot_3B(pid, 10, 0x00000000);
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
/* 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 */
|
||||
/* loop_selector local_04 in nearby_items(shape=0x0135, origin=arg_06) */
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 30) {
|
||||
spawn class_0A1D_slot_3B(pid, 10, 0x00000000);
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
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 */
|
||||
/* loop_selector local_02 in nearby_items(shape=17, origin=arg_06) */
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
spawn class_0A1D_slot_3B(pid, 10, 0x00000000);
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
/* 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 */
|
||||
/* loop_selector local_04 in nearby_items(shape=0x01C8, origin=arg_06) */
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 31) {
|
||||
/* 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) {
|
||||
for local_02 in nearby_items(shape=17, origin=arg_06) {
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -6,16 +6,11 @@ function fffloor2_unequip() /* entry=104 class_id=0x01C8 slot=0x0B */
|
|||
return;
|
||||
}
|
||||
else {
|
||||
/* 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) {
|
||||
for local_02 in nearby_items(family=6, origin=arg_06) {
|
||||
if (Item.isNpc(local_02) == 1) {
|
||||
if (!Item.overlaps(local_02, arg_06)) {
|
||||
class_0A1D_slot_20(pid, 8);
|
||||
spawn class_0A0F_slot_2F(retval, *(arg_06), local_02);
|
||||
FREE.slot_20(pid, 8);
|
||||
spawn NPC.slot_2F(retval, *(arg_06), local_02);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue