TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ ModifyDefaultSwapSlot()

virtual bool Terraria.ModLoader.ModAccessorySlot.ModifyDefaultSwapSlot ( Item item,
int accSlotToSwapTo )
inlinevirtualinherited

After checking for empty slots in ItemSlot.AccessorySwap, this allows for changing what the default target slot (accSlotToSwapTo) will be. DOES NOT affect vanilla behavior of swapping items like for like where existing in a slot Return true to set this slot as the default targeted slot.

Definition at line 150 of file ModAccessorySlot.cs.

151 {
152 return false;
153 }