public static bool IsOldEnoughToAge(AgingManager manager, AgingState state) { if (state == null) return true; if (state.SimDescription.Elder) { if (state.AgingYearsPassedSinceLastTransition >= manager.SimDaysToAgingYears(state.MinimumElderLifeSpanInSimDays)) return true; } else { if (manager.SimIsCloseToAging(state, 0)) return true; } return false; }
public static bool IsOldEnoughToAge(AgingManager manager, AgingState state) { if (state == null) { return(true); } if (state.SimDescription.Elder) { if (state.AgingYearsPassedSinceLastTransition >= manager.SimDaysToAgingYears(state.MinimumElderLifeSpanInSimDays)) { return(true); } } else { if (manager.SimIsCloseToAging(state, 0)) { return(true); } } return(false); }