public override string CompInspectStringExtra() { if (!Active) { return((string)null); } return(growthLabel + ": " + Fullness.ToStringPercent()); }
public Player(Game1 game, IEnumerable <Sprite> frames) { this.sprite = frames.ToArray(); this.game = game; Position = new Vector2(game.GraphicsDevice.Viewport.Width / 2, game.GraphicsDevice.Viewport.Height); bounds = new BoundingRectangle(Position.X - (int)(origin.X * scale), Position.Y - (int)(origin.Y * scale), 100, 100); state = new NotFull(this); }
private void Awake() { attackManager = GetComponent <FollowerAttackManager>(); baseStats = GetComponent <BaseStats>(); baseFeedee = GetComponent <BaseFeedeeStats>(); fighter = GetComponent <FollowerFighter>(); fullness = GetComponent <Fullness>(); selfMana = GetComponent <Mana>(); combatLog = Instantiate(logPrefab, transform.parent).GetComponent <FollowerCombatLog>(); combatLog.transform.SetSiblingIndex(2); }
public override string CompInspectStringExtra() { if (!Active) { return((string)null); } // Show we learned about explosives if (properties.woolDef == CE_ThingDefOf.FSX) { PlayerKnowledgeDatabase.KnowledgeDemonstrated(CE_ConceptDefOf.CE_ObtainingFSX, KnowledgeAmount.FrameDisplayed); } return(growthLabel + ": " + Fullness.ToStringPercent()); }
public override string CompInspectStringExtra() { string addTemperature = ""; if (!IsTemperatureGood()) { addTemperature = string.Concat(new string[] { "\n", "OutOfIdealTemperatureRangeNotGrowing".Translate(), " ( ", Props.activeTempRange.min.ToStringTemperature("F0"), "~", Props.activeTempRange.max.ToStringTemperature("F0"), " )" }); } string addCanHarvest = ""; if (ActiveAndFull) { addCanHarvest = string.Concat(new string[] { "\n", "ReadyToHarvest".Translate(), }); } return(string.Concat(new string[] { "BeeAndHoney_AvailableFlowersInRange".Translate(), ": ", foundThingsInt == null ? 0.ToString() : foundThingsInt.Count.ToString(), " / ", Props == null ? "999" : Props.thingsCountMin.ToString(), "\n", "BeeAndHoney_HoneycombsGrowing".Translate(), ": ", Fullness < 0.1 ? "< 10%" : Fullness.ToStringPercent(), addTemperature, addCanHarvest })); }