public void OnPlayerDetect() { Props.Revealed = true; Props.CurrentSeason.Revealed = true; Props.EncounteredTimesOfYear |= WorldClock.SeasonCurrent; Plants.SaveProps(Props); }
public void PickPlant(bool addToInventory) { if (!HasBeenPicked && worlditem.Is(WIMode.Frozen)) { //this will handle everything Props.Revealed = true; Props.EncounteredTimesOfYear |= WorldClock.SeasonCurrent; Plants.SaveProps(Props); Plants.Pick(this, addToInventory); } }
public void OnEat() { Props.Revealed = true; Props.EncounteredTimesOfYear |= WorldClock.SeasonCurrent; Props.NumTimesEncountered++; if (worlditem.Get <FoodStuff> ().Props.Name == "Raw") { Props.RawPropsRevealed = true; } else { Props.CookedPropsRevealed = true; } Plants.SaveProps(Props); worlditem.RemoveFromGame(); }