Crusader_Decomp/USECODE/REGRET/MEDIKIT.unk

28 lines
704 B
Text

/* synthesized appendix for MEDIKIT */
/* sparse lines above preserve recovered debugger line numbers where available */
/* ===== slot 0x01 use ===== */
function medikit_use() /* entry=184 class_id=0x0351 slot=0x01 */
{
set_info(0x0207, *(arg_06));
process_exclude();
set_info(0x00F0, 0);
/* global_address global_id=0x1E */
if (Actor.getHp() < 0x0096) {
spawn FREE.slot_21(pid, 0x01A7, 0x00000000);
suspend;
}
/* global_address global_id=0x1E */
if (!Actor.addHp(80)) {
spawn FREE.slot_21(pid, 0x00DB, 0x00000000);
suspend;
}
else {
spawn FREE.slot_21(pid, 0x01A7, 0x00000000);
suspend;
}
spawn FREE.slot_3B(pid, 30, 0x00000000);
suspend;
return;
}