public void ChanceToLearn()
 {
     if (Object.IsPlayer() && Stat.Roll("1d20") + Object.StatMod("Intelligence") > 18)
     {
         JournalAPI.RevealRandomSecret();
     }
 }
        public override bool Apply(GameObject Object)
        {
            if (Object.IsPlayer())
            {
                Popup.Show("You gain a moment of insight...");
                JournalAPI.RevealRandomSecret();
                return(true);
            }


            return(false);
        }
 public override bool FireEvent(Event E)
 {
     if (E.ID == "CheckLostChance")
     {
         if (Stat.Roll("1d20") + (Object.StatMod("Intelligence") / 2) > 19)
         {
             Popup.Show("As you travel you glean secrets from the land.");
             JournalAPI.RevealRandomSecret();
         }
     }
     return(base.FireEvent(E));
 }