예제 #1
0
        public static int GetUpgradeCost(FurnitureTypeEnum furnitureType, int quality)
        {
            switch (furnitureType)
            {
            case FurnitureTypeEnum.Bed:
                return(HouseBedObject.GetUpgradeCost(quality));

            case FurnitureTypeEnum.Chest:
                return(HouseChestObject.GetUpgradeCost(quality));
            }
            throw new ArgumentException();
        }
예제 #2
0
 public override int GetUpgradeCost()
 {
     return(HouseChestObject.GetUpgradeCost(Quality + 1));
 }