27 lines
638 B
Text
27 lines
638 B
Text
function medikit_use() /* entry=188 class_id=0x0351 slot=0x01 */
|
|
{
|
|
var
|
|
referent, /* [BP+00h] type=0x69 */
|
|
item; /* [BP-02h] type=0x24 */
|
|
|
|
set_info(0x0207, *(arg_06));
|
|
process_exclude();
|
|
set_info(0x00F0, 0);
|
|
/* global_address global_id=0x3C */
|
|
if (Actor.getHp() < 0x0096) {
|
|
spawn FREE.slot_21(pid, 0x00B0, 0x00000000);
|
|
suspend;
|
|
}
|
|
/* global_address global_id=0x3C */
|
|
if (!Actor.addHp(80)) {
|
|
spawn FREE.slot_21(pid, 0x00DB, 0x00000000);
|
|
suspend;
|
|
}
|
|
else {
|
|
spawn FREE.slot_21(pid, 0x00B0, 0x00000000);
|
|
suspend;
|
|
}
|
|
spawn FREE.waitNTimerTicks(pid, 30, 0x00000000);
|
|
suspend;
|
|
return;
|
|
}
|