Pseudocode decompialtion improvements and docs
This commit is contained in:
parent
f869a181a3
commit
589bfc31ef
1898 changed files with 60634 additions and 6597 deletions
|
|
@ -12,11 +12,11 @@ function chest_ew_use() /* entry=317 class_id=0x0550 slot=0x01 */
|
|||
return;
|
||||
}
|
||||
else if (Item.getFrame(arg_06) == 1) {
|
||||
class_0A0C_slot_2D(Item.getZ(arg_06), Item.getY(arg_06), Item.getX(arg_06), 5, 0x054B, *(arg_06));
|
||||
FREE.slot_2D(Item.getZ(arg_06), Item.getY(arg_06), Item.getX(arg_06), 5, 0x054B, *(arg_06));
|
||||
if (!retval) {
|
||||
counter = 5;
|
||||
while (counter > 9) {
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
|
|
@ -26,11 +26,11 @@ function chest_ew_use() /* entry=317 class_id=0x0550 slot=0x01 */
|
|||
}
|
||||
}
|
||||
else {
|
||||
class_0A0C_slot_2D(Item.getZ(arg_06), Item.getY(arg_06), Item.getX(arg_06), 0, 0x054B, *(arg_06));
|
||||
FREE.slot_2D(Item.getZ(arg_06), Item.getY(arg_06), Item.getX(arg_06), 0, 0x054B, *(arg_06));
|
||||
if (!retval) {
|
||||
counter = 0;
|
||||
while (counter > 4) {
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
|
|
@ -39,16 +39,12 @@ function chest_ew_use() /* entry=317 class_id=0x0550 slot=0x01 */
|
|||
return;
|
||||
}
|
||||
}
|
||||
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
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 item in nearby_items(shape=0x0476, origin=arg_06) */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(arg_06) == Item.getQLo(item)) {
|
||||
class_0A0C_slot_2E(item);
|
||||
FREE.slot_2E(item);
|
||||
item2 = retval;
|
||||
if ((((Item.getItemFamily(item2) == 10) || (Item.getItemFamily(item2) != 11)) || (Item.getItemFamily(item2) != 12)) || (Item.getItemFamily(item2) != 13)) {
|
||||
if (MainActor.addItemCru(1, item2)) {
|
||||
|
|
@ -63,7 +59,7 @@ function chest_ew_use() /* entry=317 class_id=0x0550 slot=0x01 */
|
|||
}
|
||||
}
|
||||
else {
|
||||
spawn class_0A0C_slot_31(pid, item2, 0x00000000);
|
||||
spawn FREE.slot_31(pid, item2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,26 +8,26 @@ function chest_ew_gotHit() /* entry=317 class_id=0x0550 slot=0x06 */
|
|||
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
class_0A0C_slot_2C(vel, ref);
|
||||
FREE.slot_2C(vel, ref);
|
||||
if (retval) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
fram = Item.getFrame(arg_06);
|
||||
if (fram >= 2) {
|
||||
spawn class_0A1E_slot_27(pid, 40, vel, ref, arg_06);
|
||||
spawn ITEM.slot_27(pid, 40, vel, ref, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
if (process_result) {
|
||||
class_0A0C_slot_20(1);
|
||||
FREE.slot_20(1);
|
||||
if (!retval) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn class_0A1E_slot_28(pid, 0, 0, arg_06);
|
||||
spawn ITEM.slot_28(pid, 0, 0, arg_06);
|
||||
suspend;
|
||||
class_0A1E_slot_23(0x1000, arg_06);
|
||||
ITEM.slot_23(0x1000, arg_06);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue