Exemple #1
0
        protected override void OnFirstOccurance()
        {
            FloatingTextComponent.Add("Pierce", Color.Navy);
            var ac = Entity.GetComponent <AttributesComponent>();

            ac.DexModifier *= Attributes.Intensity;
        }
Exemple #2
0
        protected override void OnFirstOccurance()
        {
            FloatingTextComponent.Add("Vigor", Color.Crimson);
            var ac = Entity.GetComponent <AttributesComponent>();

            ac.DexModifier *= 1 + Attributes.Intensity;
        }
Exemple #3
0
        protected override void OnTick()
        {
            var   ac     = Entity.GetComponent <AttributesComponent>();
            float damage = ac.MaxHealth * Attributes.Intensity + Attributes.BaseValue;

            ac.CurrentHealth -= damage;
            FloatingTextComponent.Add(damage, Color.DarkViolet);
        }
Exemple #4
0
        protected override void OnFirstOccurance()
        {
            FloatingTextComponent.Add("Recover", Color.LightCyan);
            var ac = Entity.GetComponent <AttributesComponent>();

            ac.CurrentHealth += Attributes.BaseValue;
            ac.CurrentMana   += Attributes.BaseValue;
        }
Exemple #5
0
        protected override void OnTick()
        {
            var   ac   = Entity.GetComponent <AttributesComponent>();
            float heal = ac.MaxHealth * Attributes.Intensity;

            ac.CurrentHealth += heal;
            FloatingTextComponent.Add(heal, Color.Aqua);
        }
Exemple #6
0
        protected override void OnTick()
        {
            var   ac       = Entity.GetComponent <AttributesComponent>();
            float manaHeal = ac.MaxMana * Attributes.Intensity;

            ac.CurrentMana += manaHeal;
            FloatingTextComponent.Add(manaHeal, Color.DarkBlue);
        }
Exemple #7
0
        protected override void OnFirstOccurance()
        {
            FloatingTextComponent.Add("Healing", Color.Aqua);
            var   ac   = Entity.GetComponent <AttributesComponent>();
            float heal = Attributes.BaseValue;

            ac.CurrentHealth += heal;
            FloatingTextComponent.Add(heal, Color.Aqua);
        }
Exemple #8
0
        protected override void OnFirstOccurance()
        {
            FloatingTextComponent.Add("Mana Heal", Color.DarkBlue);
            var   ac       = Entity.GetComponent <AttributesComponent>();
            float manaheal = Attributes.BaseValue;

            ac.CurrentMana += manaheal;
            FloatingTextComponent.Add(manaheal, Color.DarkBlue);
        }
Exemple #9
0
 /// <summary>
 /// Creates a new instance of StatusEffect.
 /// </summary>
 /// <param name="entity">The entity being affected.</param>
 public StatusEffect(Entity entity, StatusEffectProperties attributes)
 {
     var effect = CorvusGame.Instance.GlobalContent.LoadSprite(SpriteName);
     var animation = effect.Animations.First();
     effect.PlayAnimation(animation.Name);
     this._Sprite = effect;
     this._Entity = entity;
     this._Attributes = attributes;
     FloatingTextComponent = entity.GetComponent<FloatingTextComponent>();
 }
Exemple #10
0
        protected override void OnFirstOccurance()
        {
            FloatingTextComponent.Add("I Work Out!!!", Color.Crimson);

            var ac = Entity.GetComponent <AttributesComponent>();

            ac.StrModifier       *= 1 + Attributes.Intensity;
            ac.DexModifier       *= 1 + Attributes.Intensity;
            ac.KnockbackModifier *= 5f;
        }
Exemple #11
0
        /// <summary>
        /// Creates a new instance of StatusEffect.
        /// </summary>
        /// <param name="entity">The entity being affected.</param>
        public StatusEffect(Entity entity, StatusEffectProperties attributes)
        {
            var effect    = CorvusGame.Instance.GlobalContent.LoadSprite(SpriteName);
            var animation = effect.Animations.First();

            effect.PlayAnimation(animation.Name);
            this._Sprite          = effect;
            this._Entity          = entity;
            this._Attributes      = attributes;
            FloatingTextComponent = entity.GetComponent <FloatingTextComponent>();
        }
Exemple #12
0
        protected override void OnFirstOccurance()
        {
            FloatingTextComponent.Add("Fleet", Color.Crimson);
            var mc = Entity.GetComponent <MovementComponent>();

            mc.WalkSpeedModifier *= 1 + Attributes.Intensity;

            var ac = Entity.GetComponent <AttributesComponent>();

            ac.AttackSpeedModifier *= Attributes.Intensity;
        }
Exemple #13
0
 protected override void OnFirstOccurance()
 {
     FloatingTextComponent.Add("Poison", Color.DarkViolet);
 }