Pseudocode decompialtion improvements and docs
This commit is contained in:
parent
f869a181a3
commit
589bfc31ef
1898 changed files with 60634 additions and 6597 deletions
|
|
@ -14,7 +14,7 @@ function spider_slot_20() /* entry=390 class_id=0x0A14 slot=0x20 */
|
|||
if (!spiderType) goto block_011B;
|
||||
|
||||
block_0107:
|
||||
class_0A1E_slot_23(4, arg_06);
|
||||
ITEM.slot_23(4, arg_06);
|
||||
goto block_03D4;
|
||||
|
||||
block_011B:
|
||||
|
|
@ -24,7 +24,7 @@ function spider_slot_20() /* entry=390 class_id=0x0A14 slot=0x20 */
|
|||
goto block_03D4;
|
||||
|
||||
block_0134:
|
||||
class_0A1E_slot_23(0x1000, arg_06);
|
||||
ITEM.slot_23(0x1000, arg_06);
|
||||
targetLoop = spiderType;
|
||||
|
||||
block_014A:
|
||||
|
|
@ -49,7 +49,7 @@ function spider_slot_20() /* entry=390 class_id=0x0A14 slot=0x20 */
|
|||
if ((Item.getZ(target) > (Item.getZ(arg_06) + 16)) || (Item.getZ(target) < (Item.getZ(arg_06) - 16))) goto block_01F2;
|
||||
|
||||
block_01C9:
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
goto block_0193;
|
||||
|
||||
|
|
@ -57,8 +57,8 @@ function spider_slot_20() /* entry=390 class_id=0x0A14 slot=0x20 */
|
|||
if ((Item.getStatus(arg_06) & 4) || (Item.getFrame(arg_06) > 0)) goto block_0237;
|
||||
|
||||
block_0214:
|
||||
class_0A1E_slot_24(4, arg_06);
|
||||
class_0A1E_slot_24(0x1000, arg_06);
|
||||
ITEM.slot_24(4, arg_06);
|
||||
ITEM.slot_24(0x1000, arg_06);
|
||||
goto block_03D4;
|
||||
|
||||
block_0237:
|
||||
|
|
@ -68,7 +68,7 @@ function spider_slot_20() /* entry=390 class_id=0x0A14 slot=0x20 */
|
|||
if (count <= 5) goto block_02D2;
|
||||
|
||||
block_0292:
|
||||
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
count = (1 + count);
|
||||
goto block_028A;
|
||||
|
|
@ -80,7 +80,7 @@ function spider_slot_20() /* entry=390 class_id=0x0A14 slot=0x20 */
|
|||
if (count <= 9) goto block_034A;
|
||||
|
||||
block_030A:
|
||||
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
count = (1 + count);
|
||||
goto block_0302;
|
||||
|
|
@ -89,17 +89,17 @@ function spider_slot_20() /* entry=390 class_id=0x0A14 slot=0x20 */
|
|||
if (Item.getRangeIfVisible(target, arg_06) != 0) goto block_0387;
|
||||
|
||||
block_035E:
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
goto block_034A;
|
||||
|
||||
block_0387:
|
||||
spawn class_0A14_slot_21(pid, targetLoop, target, spider, spider);
|
||||
spawn SPIDER.slot_21(pid, targetLoop, target, spider, spider);
|
||||
suspend;
|
||||
if (spiderType < 99) goto block_03D1;
|
||||
|
||||
block_03BC:
|
||||
class_0A1E_slot_24(0x1000, arg_06);
|
||||
ITEM.slot_24(0x1000, arg_06);
|
||||
goto block_03D4;
|
||||
|
||||
block_03D1:
|
||||
|
|
|
|||
|
|
@ -16,11 +16,11 @@ function spider_slot_21() /* entry=390 class_id=0x0A14 slot=0x21 */
|
|||
x = 1;
|
||||
/* rsh */
|
||||
y = 1;
|
||||
spawn class_0A14_slot_22((Item.getX(target) - Item.getX(arg_06)), (Item.getY(target) - Item.getY(arg_06)), pid, (Game.getDifficultyLevel() + 5), Item.getZ(arg_06), (y + Item.getY(arg_06)), (x + Item.getX(arg_06)), arg_06);
|
||||
spawn SPIDER.slot_22((Item.getX(target) - Item.getX(arg_06)), (Item.getY(target) - Item.getY(arg_06)), pid, (Game.getDifficultyLevel() + 5), Item.getZ(arg_06), (y + Item.getY(arg_06)), (x + Item.getX(arg_06)), arg_06);
|
||||
suspend;
|
||||
targetLoop = (targetLoop - 1);
|
||||
}
|
||||
spawn class_0A14_slot_22(pid, (Game.getDifficultyLevel() + 5), Item.getZ(arg_06), Item.getY(target), Item.getX(target), arg_06);
|
||||
spawn SPIDER.slot_22(pid, (Game.getDifficultyLevel() + 5), Item.getZ(arg_06), Item.getY(target), Item.getX(target), arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,8 +37,8 @@ function spider_slot_22() /* entry=390 class_id=0x0A14 slot=0x22 */
|
|||
ovel = vel;
|
||||
c = 0;
|
||||
axis = 1;
|
||||
class_0A0C_slot_3F(w);
|
||||
class_0A0C_slot_3F(retval, h);
|
||||
FREE.slot_3F(w);
|
||||
FREE.slot_3F(retval, h);
|
||||
if retval goto block_0652;
|
||||
|
||||
block_064B:
|
||||
|
|
@ -48,10 +48,10 @@ function spider_slot_22() /* entry=390 class_id=0x0A14 slot=0x22 */
|
|||
if (axis != 0) goto block_06BD;
|
||||
|
||||
block_065D:
|
||||
class_0A0C_slot_3F(((h / w) * w));
|
||||
FREE.slot_3F(((h / w) * w));
|
||||
q = retval;
|
||||
/* mod */
|
||||
class_0A0C_slot_3F(h, w);
|
||||
FREE.slot_3F(h, w);
|
||||
r = retval;
|
||||
if (w < 0) goto block_0699;
|
||||
|
||||
|
|
@ -65,15 +65,15 @@ function spider_slot_22() /* entry=390 class_id=0x0A14 slot=0x22 */
|
|||
minor = -1;
|
||||
|
||||
block_06AB:
|
||||
class_0A0C_slot_3F(w);
|
||||
FREE.slot_3F(w);
|
||||
oabs = retval;
|
||||
goto block_071A;
|
||||
|
||||
block_06BD:
|
||||
class_0A0C_slot_3F(((w / h) * h));
|
||||
FREE.slot_3F(((w / h) * h));
|
||||
q = retval;
|
||||
/* mod */
|
||||
class_0A0C_slot_3F(w, h);
|
||||
FREE.slot_3F(w, h);
|
||||
r = retval;
|
||||
if (h < 0) goto block_06F9;
|
||||
|
||||
|
|
@ -87,19 +87,19 @@ function spider_slot_22() /* entry=390 class_id=0x0A14 slot=0x22 */
|
|||
minor = -1;
|
||||
|
||||
block_070B:
|
||||
class_0A0C_slot_3F(h);
|
||||
FREE.slot_3F(h);
|
||||
oabs = retval;
|
||||
|
||||
block_071A:
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
zcur = (z & 0x00FF);
|
||||
ztarg = (destZ & 0x00FF);
|
||||
if (zcur != ztarg) goto block_07C2;
|
||||
|
||||
block_076E:
|
||||
class_0A0C_slot_3F((ztarg - zcur));
|
||||
FREE.slot_3F((ztarg - zcur));
|
||||
dif = ((retval / 20) + 1);
|
||||
if (dif != 0) goto block_0795;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue