public static string GrowingQuadrumsDescription(int tile) { List <Twelfth> list = GenTemperature.TwelfthsInAverageTemperatureRange(tile, 10f, 42f); if (list.NullOrEmpty <Twelfth>()) { return("NoGrowingPeriod".Translate()); } if (list.Count == 12) { return("GrowYearRound".Translate()); } return("PeriodDays".Translate(list.Count * 5 + "/" + 60) + " (" + QuadrumUtility.QuadrumsRangeLabel(list) + ")"); }
protected override string GetIconTip(Pawn pawn) { Tenant tenantComp = pawn.GetTenantComponent(); if (tenantComp != null && !tenantComp.IsTenant) { return(string.Empty); } string value = "FullDate".Translate(Find.ActiveLanguageWorker.OrdinalNumber(GenDate.DayOfSeason(tenantComp.ContractEndDate, 0f)), QuadrumUtility.Label(GenDate.Quadrum(tenantComp.ContractEndDate, 0f)), GenDate.Year(tenantComp.ContractEndDate, 0f)); string a = "ContractEndDate".Translate(value); string b = "ContractPayment".Translate(tenantComp.Payment * tenantComp.ContractLength / 60000); string c = "ContractLength".Translate(tenantComp.ContractLength / 60000); string d = "ContractDaily".Translate(tenantComp.Payment); return(a + " \n " + b + " \n " + c + " \n " + d); }