Crusader_Decomp/USECODE/EUSECODE_extracted/pseudocode/SURCAMEW/slot_01_use.txt

27 lines
668 B
Text

function surcamew_use() /* entry=284 class_id=0x04DE slot=0x01 */
{
set_info(0x0207, *(arg_06));
process_exclude();
if (!(Item.getStatus(arg_06) & 0x1000)) {
return;
}
else {
/* global_address global_id=0x3C */
if (Actor.getMap((Item.getQLo(arg_06) == 4)) != 25) {
if (global[0x002C] == 0) {
/* pop_global global_id=0x2C size=0x1 */
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
suspend;
}
/* bit_not */
return;
}
else {
spawn SURCAMEW.slot_20(arg_06);
}
}
return;
}