Esempio n. 1
0
        public override string AttackEffects(RpgPlayer wielder, Entity target)
        {
            bool active = false;

            if (Program.Random.OneIn(10))
            {
                var buff = Program.Random.Choose(new[] { nameof(Buffs.CritBuff), nameof(Buffs.Fury) });
                if (!wielder.HasBuff(buff))
                {
                    active = true;
                    wielder.AddBuff(buff.GetBuff().MakeNew(2));
                }
            }

            return(active ? $"{wielder} activated the secret of the sword!" : "");
        }