public static bool Prefix(out RulesetInventorySlot selectedSlot)
        {
#if DEBUG
            if (!LoggedMessage)
            {
                Main.Log("Ignoring AutoEquipItem");
                LoggedMessage = true;
            }
#endif
            selectedSlot = null;

            // No auto equip
            return(false);
        }
Beispiel #2
0
 public static T SetInventorySlot <T>(this T entity, RulesetInventorySlot value)
     where T : GuiEquipmentItem
 {
     entity.SetField("inventorySlot", value);
     return(entity);
 }