public override string GetInspectString()
{
StringBuilder stringBuilder = new StringBuilder();
float num = this.Growth * 100f;
if (num > 100f)
{
num = 100.1f;
}
stringBuilder.AppendLine(num.ToString("##0") + "% growth");
if (this.LifeStage == PlantLifeStage.Mature)
{
if (this.def.plant.Harvestable)
{
stringBuilder.AppendLine("Ready to harvest");
}
else
{
stringBuilder.AppendLine("Mature");
}
}
else if (this.LifeStage == PlantLifeStage.Growing)
{
if (this.isInCryostasis)
{
stringBuilder.AppendLine("In cryostasis");
}
else if (this.Dying)
{
stringBuilder.Append("Dying");
if (this.Position.GetTemperature() > this.clusterPlantProps.maxGrowTemperature)
{
stringBuilder.Append(", drying");
}
if (this.isLightConditionOk == false)
{
float light = Find.GlowGrid.GameGlowAt(this.Position);
if (light < this.clusterPlantProps.minLight)
{
stringBuilder.Append(", too dark");
}
else if (light > this.clusterPlantProps.maxLight)
{
stringBuilder.Append(", overlit");
}
}
if (this.clusterPlantProps.growOnlyUndeRoof)
{
if (Find.RoofGrid.Roofed(this.Position) == false)
{
stringBuilder.Append(", unroofed");
}
}
if (this.isOnCavePlantGrower == false)
{
if (this.clusterPlantProps.growOnlyOnRoughRock)
{
if (this.isOnNaturalRoughRock == false)
{
stringBuilder.Append(", unadapted soil");
}
}
else if (this.isFertilityConditionOk == false)
{
stringBuilder.Append(", unadapted soil");
}
if (this.clusterPlantProps.growOnlyNearNaturalRock)
{
if (this.isNearNaturalRockBlock == false)
{
stringBuilder.Append(", too far from rock");
}
}
if (this.clusterPlantProps.isSymbiosisPlant)
{
if (this.isSymbiosisOk == false)
{
stringBuilder.Append(", broken symbiosis");
}
}
}
}
}
return stringBuilder.ToString();
}
private string cachedLabelMouseover = null;