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

27 lines
668 B
Text
Raw Normal View History

2026-03-25 23:32:36 +01:00
function surcamew_use() /* entry=284 class_id=0x04DE slot=0x01 */
{
2026-03-26 00:37:17 +01:00
set_info(0x0207, *(arg_06));
process_exclude();
if (!(Item.getStatus(arg_06) & 0x1000)) {
2026-03-25 23:32:36 +01:00
return;
2026-03-26 00:37:17 +01:00
}
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);
2026-03-26 00:37:17 +01:00
suspend;
}
/* bit_not */
return;
}
else {
spawn SURCAMEW.slot_20(arg_06);
2026-03-26 00:37:17 +01:00
}
}
return;
2026-03-25 23:32:36 +01:00
}