Ejemplo n.º 1
0
        public override bool HandleEvent(AwardingXPEvent E)
        {
            var SeededRandom    = ParentObject.GetSeededRandom("Animancy");
            int SavantChance    = SeededRandom.Next(1, 100);
            var AnimaMultiplier = ParentObject.GetSeededRandom("Animancy");
            int currentXPAward  = E.Amount;

            if (SavantChance <= 10 + this.Level - 1)
            {
                // AddPlayerMessage("Unedited XP Award : " + E.Amount);
                // AddPlayerMessage("Previous EXP : " + ParentObject.Statistics["XP"].Value);

                ProccedAnimaBonus    = true;
                FactorIncreaseHolder = AnimaMultiplier.Next(2, 7);

                E.Amount = currentXPAward * FactorIncreaseHolder;

                // AddPlayerMessage("Edited XP Award : " + E.Amount);
                if (this.Level >= 10 && Stat.Random(1, 100) <= 10)
                {
                    int BaseBonusExpAward = currentXPAward * FactorIncreaseHolder;
                    E.Amount = BaseBonusExpAward;
                    VividChoices.GetRandomElement();
                }
            }

            return(base.HandleEvent(E));
        }