Crusader_Decomp/USECODE/EUSECODE_extracted/pseudocode/WINDSURF/slot_0A_equip.txt

27 lines
627 B
Text

function windsurf_equip() /* entry=180 class_id=0x0337 slot=0x0A */
{
var
referent, /* [BP+00h] type=0x69 */
var, /* [BP+0Ah] type=0x69 */
item; /* [BP-02h] type=0x24 */
set_info(0x0211, *(arg_06));
process_exclude();
FREE.slot_33(0x020C, *(arg_06));
if (var == 0x00FF) {
return;
}
else {
/* loopscr value_u8=0x24 */
/* loop current_var=0xFE string_bytes=0x1 loop_type=0x2 */
while (!condition) {
if (item == *(arg_06)) {
if (!Item.overlaps(item, arg_06)) {
spawn WINDSURF.gotHit(0, item, arg_06);
}
}
/* loopnext */
}
}
return;
}