public static ThingDef CalculateWantedPlantDef(IntVec3 c, Map map) { IPlantToGrowSettable plantToGrowSettable = c.GetPlantToGrowSettable(map); if (plantToGrowSettable == null) { return(null); } return(plantToGrowSettable.GetPlantDefToGrow()); }
public static ThingDef CalculateWantedPlantDef(IntVec3 c, Map map) { IPlantToGrowSettable plantToGrowSettable = c.GetPlantToGrowSettable(map); ThingDef result; if (plantToGrowSettable == null) { result = null; } else { result = plantToGrowSettable.GetPlantDefToGrow(); } return(result); }
public static ThingDef CalculateWantedPlantDef(IntVec3 c, Map map) { return(c.GetPlantToGrowSettable(map)?.GetPlantDefToGrow()); }