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(); }
public override int GetUpgradeCost() { return(HouseChestObject.GetUpgradeCost(Quality + 1)); }