43 lines
1,023 B
Text
43 lines
1,023 B
Text
function transfor_gotHit() /* entry=94 class_id=0x01BF slot=0x06 */
|
|
{
|
|
var
|
|
referent, /* [BP+00h] type=0x69 */
|
|
ref, /* [BP+0Ah] type=0x69 */
|
|
vel, /* [BP+0Ch] type=0x69 */
|
|
fram, /* [BP-02h] type=0x69 */
|
|
damagePoints, /* [BP-04h] type=0x69 */
|
|
item; /* [BP-06h] type=0x24 */
|
|
|
|
set_info(0x020C, *(arg_06));
|
|
process_exclude();
|
|
fram = Item.getFrame(arg_06);
|
|
if (fram <= 0) {
|
|
return;
|
|
}
|
|
else {
|
|
FREE.slot_2B(vel, ref);
|
|
damagePoints = retval;
|
|
FREE.slot_2B(vel, ref);
|
|
if (retval) {
|
|
return;
|
|
}
|
|
else if ((Item.getNPCNum(arg_06) + damagePoints) >= 100) {
|
|
FREE.slot_20(10);
|
|
if (retval <= 5) {
|
|
}
|
|
return;
|
|
}
|
|
else {
|
|
suspend;
|
|
/* loop_selector item in selector_0x42(arg0=0x01C9, arg1=0x01C2, arg2=(5 * 32), origin=arg_06) */
|
|
while (!condition) {
|
|
/* loopnext */
|
|
}
|
|
if (Item.getMapArray(arg_06) == 0) {
|
|
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
|
suspend;
|
|
}
|
|
}
|
|
}
|
|
return;
|
|
}
|