示例#1
0
 public void OnPlayerDetect()
 {
     Props.Revealed = true;
     Props.CurrentSeason.Revealed  = true;
     Props.EncounteredTimesOfYear |= WorldClock.SeasonCurrent;
     Plants.SaveProps(Props);
 }
示例#2
0
 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);
     }
 }
示例#3
0
 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();
 }