Пример #1
0
    //Unequips evo from selected slot on selected critter and updates buttons for player.
    public void Unequip(Critter critter, SlotData dataSlot)
    {
        dataSlot.UnequipSlot();
        UnlockConflicts(critter);

        RefundStats(critter);

        if(critter.GetIsPlayer()){
            CheckCurrentBuyState(critter);

            foreach (Adaptation item in Prerequisites1)
            {
                item.CheckCurrentBuyState(critter);
            }
            foreach (Adaptation item in Prerequisites2)
            {
                item.CheckCurrentBuyState(critter);
            }
            foreach (Adaptation item in Unlocks)
            {
                item.CheckCurrentBuyState(critter);
            }
            foreach (Adaptation item in Conflicts)
            {
                item.CheckCurrentBuyState(critter);
            }
        }
        critter.UnequipSpecials(this);
    }