Usecode pseudocode
This commit is contained in:
parent
f92d1504fa
commit
c12bb39437
1362 changed files with 71072 additions and 38056 deletions
|
|
@ -1,27 +1,16 @@
|
|||
function timer_equip() /* entry=271 class_id=0x04C9 slot=0x0A */
|
||||
{
|
||||
entry:
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (arg_0A != 1) goto block_01E1;
|
||||
|
||||
block_01BA:
|
||||
if ((Item.getStatus(arg_06) & 0x1000) != 0) goto block_01DE;
|
||||
|
||||
block_01D0:
|
||||
spawn class_04C9_slot_20(arg_06);
|
||||
|
||||
block_01DE:
|
||||
goto block_01FE;
|
||||
|
||||
block_01E1:
|
||||
if (arg_0A != 0) goto block_01FE;
|
||||
|
||||
block_01EC:
|
||||
/* bit_not */
|
||||
goto block_01FE;
|
||||
|
||||
block_01FE:
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (arg_0A == 1) {
|
||||
if ((Item.getStatus(arg_06) & 0x1000) == 0) {
|
||||
spawn class_04C9_slot_20(arg_06);
|
||||
}
|
||||
return;
|
||||
|
||||
}
|
||||
else if (arg_0A == 0) {
|
||||
/* bit_not */
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,17 +1,11 @@
|
|||
function timer_enterFastArea() /* entry=271 class_id=0x04C9 slot=0x0F */
|
||||
{
|
||||
entry:
|
||||
set_info(0x021B, *(arg_06));
|
||||
process_exclude();
|
||||
if (Intrinsic00FB(arg_06) & 2) goto block_0127;
|
||||
|
||||
block_0103:
|
||||
if ((Item.getStatus(arg_06) & 0x1000) != 0) goto block_0127;
|
||||
|
||||
block_0119:
|
||||
spawn class_04C9_slot_20(arg_06);
|
||||
|
||||
block_0127:
|
||||
return;
|
||||
|
||||
set_info(0x021B, *(arg_06));
|
||||
process_exclude();
|
||||
if (!(Item.getQHi(arg_06) & 2)) {
|
||||
if ((Item.getStatus(arg_06) & 0x1000) == 0) {
|
||||
spawn class_04C9_slot_20(arg_06);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,17 +1,11 @@
|
|||
function timer_leaveFastArea() /* entry=271 class_id=0x04C9 slot=0x10 */
|
||||
{
|
||||
entry:
|
||||
set_info(0x021C, *(arg_06));
|
||||
process_exclude();
|
||||
if (Intrinsic00FB(arg_06) & 4) goto block_0185;
|
||||
|
||||
block_0163:
|
||||
if (Item.getStatus(arg_06) & 0x1000) goto block_0185;
|
||||
|
||||
block_0176:
|
||||
/* bit_not */
|
||||
|
||||
block_0185:
|
||||
return;
|
||||
|
||||
set_info(0x021C, *(arg_06));
|
||||
process_exclude();
|
||||
if (!(Item.getQHi(arg_06) & 4)) {
|
||||
if (!(Item.getStatus(arg_06) & 0x1000)) {
|
||||
/* bit_not */
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,9 +11,12 @@ function timer_slot_20() /* entry=271 class_id=0x04C9 slot=0x20 */
|
|||
l3; /* [BP-14h] type=0x64 */
|
||||
|
||||
set_info(1, 0);
|
||||
time = ((Item.getMapNum(arg_06) * 0x0100) + Item.andStatus(arg_06));
|
||||
if ((time != 0)) {
|
||||
cmd = Intrinsic00FB(arg_06);
|
||||
time = ((Item.getMapArray(arg_06) * 0x0100) + Item.getNPCNum(arg_06));
|
||||
if (time == 0) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
cmd = Item.getQHi(arg_06);
|
||||
a = (cmd / 32);
|
||||
if (a == 0) {
|
||||
phase2 = 0;
|
||||
|
|
@ -50,6 +53,42 @@ function timer_slot_20() /* entry=271 class_id=0x04C9 slot=0x20 */
|
|||
/* dword_to_word */
|
||||
phase2 = l1;
|
||||
time = (time - phase2);
|
||||
while (!(1)) {
|
||||
if (!phase2) {
|
||||
spawn class_0A0C_slot_32(pid, phase2, 0x00000000);
|
||||
suspend;
|
||||
if ((Item.getStatus(arg_06) & 0x1000) == 0) {
|
||||
return;
|
||||
}
|
||||
if ((Item.inFastArea(arg_06) == 1) || ((cmd & 8) != 0)) {
|
||||
spawn class_0A18_slot_20(pid, (0x0080 + 0), *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
spawn class_0A0C_slot_32(pid, time, 0x00000000);
|
||||
suspend;
|
||||
if ((Item.getStatus(arg_06) & 0x1000) == 0) {
|
||||
if (!(cmd & 16)) {
|
||||
spawn class_0A18_slot_20(pid, (0x0080 + 1), *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
if ((Item.inFastArea(arg_06) == 1) || ((cmd & 8) != 0)) {
|
||||
if (!phase2) {
|
||||
spawn class_0A18_slot_20(pid, (0x0080 + 1), *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
else {
|
||||
spawn class_0A18_slot_20(pid, (0x0080 + 0), *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
if ((cmd & 1) == 0) {
|
||||
/* bit_not */
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue