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,90 @@
function shocker_slot_20() /* entry=389 class_id=0x0A13 slot=0x20 */
{
var
referent, /* [BP+00h] type=0x69 */
randNum, /* [BP-02h] type=0x69 */
var, /* [BP-04h] type=0x69 */
duration, /* [BP-06h] type=0x69 */
skill, /* [BP-08h] type=0x69 */
kernelCheck, /* [BP-0Ah] type=0x69 */
counter; /* [BP-0Ch] type=0x69 */
entry:
set_info(0x020A, *(arg_06));
set_info(0x0205, *(arg_06));
if (Item.hurl(arg_06) != 0) goto block_013F;
block_0120:
class_0A0C_slot_20(29);
randNum = (retval + 1);
block_013F:
var = Item.hurl(arg_06);
if (var != 31) goto block_0162;
block_0158:
duration = 1;
goto block_0196;
block_0162:
if (var > 31) goto block_0179;
block_0170:
goto block_02EB;
block_0176:
goto block_0196;
block_0179:
skill = Intrinsic0029();
duration = ((6 - Intrinsic0029()) * (10 + var));
block_0196:
spawn class_0A0C_slot_32(pid, duration, 0x00000000);
suspend;
block_01BC:
suspend;
kernelCheck = Item.hurl(0x020C, *(arg_06));
if (kernelCheck != 0) goto block_01F5;
block_01E7:
spawn class_0A13_slot_21(arg_06);
block_01F5:
class_0A0C_slot_20(1);
if retval goto block_0215;
block_0205:
goto block_0222;
block_0215:
block_0222:
counter = 0;
block_0229:
if (counter <= 5) goto block_027C;
block_0231:
class_0A0C_slot_20(pid, 5, 5);
spawn class_0A0C_slot_32(retval, 0x00000000);
suspend;
counter = (1 + counter);
goto block_0229;
block_027C:
if (duration > 1) goto block_02E8;
block_028A:
class_0A0C_slot_33(0x020C, *(arg_06));
spawn class_0A0C_slot_32(pid, duration, 0x00000000);
suspend;
block_02E8:
goto block_01BC;
block_02EB:
return;
}

View file

@ -0,0 +1,51 @@
function shocker_slot_21() /* entry=389 class_id=0x0A13 slot=0x21 */
{
var
referent, /* [BP+00h] type=0x69 */
monster; /* [BP-02h] type=0x24 */
entry:
set_info(0x0205, *(arg_06));
set_info(0x020C, *(arg_06));
block_0366:
suspend;
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend;
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x3A */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
block_03B6:
if condition goto block_0461;
block_03B9:
if (Item.isNpc(monster) != 1) goto block_045D;
block_03CB:
if (!Kernel.resetRef(monster)) goto block_045D;
block_03DE:
if ((Item.overlaps(monster, arg_06) != 1) && (Item.getFrame(arg_06) < 6)) goto block_045D;
block_0402:
class_0A0C_slot_20(pid, 8);
spawn class_0A11_slot_2D(retval, *(arg_06), monster);
suspend;
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
goto block_0466;
block_045D:
/* loopnext */
goto block_03B6;
block_0461:
goto block_0366;
block_0466:
return;
}