private bool IsValidDrop(UnityRoguelike.Item item, string name) { if (item == null) { return(true); } return(!item.isCursed()); }
private bool IsValidDrop(UnityRoguelike.Item item, string name) { if (name.StartsWith("Slot")) { return(true); } if (item == null) { return(true); } if (item != null && name == item.Equipmentslot.ToString()) { return(true); } return(false); }