public void UpgradeBedroom()
    {
        BedRoom bedroom = PlayerRooms.GetBedRoom();

        if (bedroom.CanBeUpgraded())
        {
            int currentTier = PlayerRooms.GetBedRoomTier();

            if (bedroom.GetDevResourceQuantityAtTier(currentTier + 1).HasInInventory())
            {
                PlayerRooms.SetBedRoomTier(currentTier + 1);
                bedroom.GetDevResourceQuantityAtTier(currentTier + 1).SubtractFromInventory();
                ShopCanvas.TriggerRoomsInfoUpdate();
            }
            else
            {
                Debug.Log("Insufficient Resources:" + bedroom.GetDevResourceQuantityAtTier(currentTier + 1));
            }
        }
        else
        {
            Debug.Log("Max Tier Reached: BEDROOM ");
        }
    }
Beispiel #2
0
 public static DevResourceQuantity GetNextBedRoomUpgradeCosts()
 {
     return(bedRoom.GetDevResourceQuantityAtTier(GetBedRoomTier() + 1));
 }