Esempio n. 1
0
 private int GetUpgradeLevelRequirementForBuidlingType(Buildings.AnimalBuildingType type)
 {
     if (type == Buildings.AnimalBuildingType.BARN)
     {
         return(ModConfig.Instance.BarnRequiredUpgradeLevel);
     }
     else if (type == Buildings.AnimalBuildingType.COOP)
     {
         return(ModConfig.Instance.CoopRequiredUpgradeLevel);
     }
     return(0);
 }
Esempio n. 2
0
        private int GetUpgradeLevelRequirementForBuidlingType(Buildings.AnimalBuildingType type)
        {
            switch (type)
            {
            case Buildings.AnimalBuildingType.BARN:
                return(config.BarnRequiredUpgradeLevel);

            case Buildings.AnimalBuildingType.COOP:
                return(config.CoopRequiredUpgradeLevel);

            default:
                return(0);
            }
        }