Crusader_Decomp/USECODE/EUSECODE_extracted/pseudocode/WSHOCKEW/slot_0B_unequip.txt

21 lines
520 B
Text
Raw Normal View History

2026-03-25 23:32:36 +01:00
function wshockew_unequip() /* entry=245 class_id=0x044E slot=0x0B */
{
var
referent, /* [BP+00h] type=0x69 */
var, /* [BP+0Ah] type=0x69 */
item; /* [BP-02h] type=0x24 */
2026-03-26 00:37:17 +01:00
set_info(0x0212, *(arg_06));
process_exclude();
/* loop_selector item in nearby_items(family=6, origin=arg_06) */
2026-03-26 00:37:17 +01:00
while (!condition) {
if (!Actor.isNPC(item)) {
if (Item.overlaps(item, arg_06) == 1) {
spawn WSHOCKEW.gotHit(0, item, arg_06);
2026-03-26 00:37:17 +01:00
return;
}
}
2026-03-25 23:32:36 +01:00
/* loopnext */
2026-03-26 00:37:17 +01:00
}
return;
2026-03-25 23:32:36 +01:00
}