This commit is contained in:
MaddoScientisto 2026-03-25 23:32:36 +01:00
commit f92d1504fa
547 changed files with 37597 additions and 0 deletions

View file

@ -0,0 +1,27 @@
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:
return;
}

View file

@ -0,0 +1,17 @@
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;
}

View file

@ -0,0 +1,17 @@
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;
}

View file

@ -0,0 +1,55 @@
function timer_slot_20() /* entry=271 class_id=0x04C9 slot=0x20 */
{
var
referent, /* [BP+00h] type=0x69 */
cmd, /* [BP-02h] type=0x69 */
time, /* [BP-04h] type=0x69 */
phase2, /* [BP-06h] type=0x69 */
a, /* [BP-08h] type=0x69 */
l1, /* [BP-0Ch] type=0x64 */
l2, /* [BP-10h] type=0x64 */
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);
a = (cmd / 32);
if (a == 0) {
phase2 = 0;
}
else if (a == 1) {
phase2 = 10;
}
else if (a == 2) {
phase2 = 25;
}
else if (a == 3) {
phase2 = 40;
}
else if (a == 4) {
phase2 = 50;
}
else if (a == 5) {
phase2 = 60;
}
else if (a == 6) {
phase2 = 75;
}
else if (a == 7) {
phase2 = 90;
}
/* word_to_dword */
l1 = time;
/* word_to_dword */
l2 = phase2;
l1 = (l1 * l2);
/* word_to_dword */
l3 = 100;
l1 = (l1 / l3);
/* dword_to_word */
phase2 = l1;
time = (time - phase2);
}
return;
}