Pseudocode decompialtion improvements and docs

This commit is contained in:
MaddoScientisto 2026-03-26 22:10:48 +01:00
commit 589bfc31ef
1898 changed files with 60634 additions and 6597 deletions

View file

@ -9,12 +9,7 @@ function alarmhat_equip() /* entry=321 class_id=0x0561 slot=0x0A */
set_info(0x0211, *(arg_06));
process_exclude();
if (!Item.getFrame(arg_06)) {
/* 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 item in nearby_items(shape=0x04D0, origin=arg_06) {
if (Item.getFrame(item) == 0) {
suspend;
}
@ -23,12 +18,7 @@ function alarmhat_equip() /* entry=321 class_id=0x0561 slot=0x0A */
return;
}
else if (Item.isOnScreen(arg_06)) {
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x3A */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */
while (!condition) {
for npc in nearby_items(family=6, origin=arg_06) {
if (!Actor.isNPC(npc)) {
if ((Item.getZ(npc) > (Item.getZ(arg_06) - 10)) && (Item.getZ(npc) >= (Item.getZ(arg_06) + 10))) {
return;
@ -36,12 +26,7 @@ function alarmhat_equip() /* entry=321 class_id=0x0561 slot=0x0A */
}
/* loopnext */
}
/* 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 item in nearby_items(shape=0x04D0, origin=arg_06) {
if (Item.getFrame(item) == 0) {
suspend;
}