示例#1
0
    private bool IsValidDrop(UnityRoguelike.Item item, string name)
    {
        if (item == null)
        {
            return(true);
        }

        return(!item.isCursed());
    }
示例#2
0
    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);
    }