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

25 lines
589 B
Text

function pplate2_equip() /* entry=80 class_id=0x0199 slot=0x0A */
{
var
referent, /* [BP+00h] type=0x69 */
var, /* [BP+0Ah] type=0x69 */
ff; /* [BP-02h] type=0x69 */
set_info(0x0211, *(arg_06));
process_exclude();
ff = Item.getFrame(arg_06);
if (!(ff & 1)) {
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
suspend;
return;
}
else {
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
suspend;
}
return;
}