Crusader_Decomp/USECODE/EUSECODE_extracted/pseudocode/TRANSFOR/slot_06_gotHit.txt
2026-03-26 00:37:17 +01:00

45 lines
1 KiB
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 {
class_0A0C_slot_2B(vel, ref);
damagePoints = retval;
class_0A0C_slot_2B(vel, ref);
if (retval) {
return;
}
else if ((Item.getNPCNum(arg_06) + damagePoints) >= 100) {
class_0A0C_slot_20(10);
if (retval <= 5) {
}
return;
}
else {
suspend;
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */
/* loop current_var=0xFA string_bytes=0x6 loop_type=0x2 */
while (!condition) {
/* loopnext */
}
if (Item.getMapArray(arg_06) == 0) {
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
suspend;
}
}
}
return;
}