public override string GetExplanationAbstract(ThingDef def = null) { return(explanationKeyAbstract.Translate(maxBuildings, MinOffsetPerBuilding.ToString("0%"), MaxOffsetPerBuilding.ToString("0%")) + ": +0-" + MaxOffset().ToString("0%")); }
public override string GetExplanation(Thing parent) { if (!parent.Spawned) { return(GetExplanationAbstract(parent.def)); } int value = BuildingCount(parent); return(explanationKey.Translate(value, maxBuildings, MinOffsetPerBuilding.ToString("0%"), MaxOffsetPerBuilding.ToString("0%")) + ": " + GetOffset(parent).ToStringWithSign("0%")); }