Beispiel #1
0
        public override void DoPickup(Unit unit)
        {
            if (unit.HitPoints >= unit.MaxHitPoints)
            {
                return;
            }

            //Sound and visual effect
            Program.Instance.SoundManager.GetSFX(Client.Sound.SFX.PotionPickup1).Play(new Client.Sound.PlayArgs {
            });
            unit.AddChild(new Client.Game.Map.Effects.RageSac {
                Translation = Vector3.UnitZ * 1.5f
            });

            unit.Heal(null, (int)(HealPerc * unit.MaxHitPoints));

            Interface.ScrollingCombatText s;
            Game.Instance.Interface.AddChild(s = new Interface.ScrollingCombatText
            {
                Text          = "+" + (int)(100 * HealPerc) + "% " + Locale.Resource.GenLCHP,
                WorldPosition = Translation + Vector3.UnitZ * 1
            });
            s.Font.Color = System.Drawing.Color.Green;

            base.DoPickup(unit);
        }
Beispiel #2
0
        public override void DoPickup(Unit unit)
        {
            ((Units.MainCharacter)unit).AddRageLevelProgress(Rage);

            //Sound and visual effect
            Program.Instance.SoundManager.GetSFX(Client.Sound.SFX.PotionPickup1).Play(new Client.Sound.PlayArgs {
            });
            unit.AddChild(new Client.Game.Map.Effects.HpSac {
                Translation = Vector3.UnitZ * 1.5f
            });

            Interface.ScrollingCombatText s;
            Game.Instance.Interface.AddChild(s = new Interface.ScrollingCombatText
            {
                Text          = "+" + Rage + " " + Locale.Resource.GenLCRage,
                WorldPosition = Translation + Vector3.UnitZ * 1
            });
            s.Font.Color = System.Drawing.Color.Orange;

            base.DoPickup(unit);
        }
        public override void DoPickup(Unit unit)
        {
            ((Units.MainCharacter)unit).AddRageLevelProgress(Rage);

            //Sound and visual effect
            Program.Instance.SoundManager.GetSFX(Client.Sound.SFX.PotionPickup1).Play(new Client.Sound.PlayArgs { });
            unit.AddChild(new Client.Game.Map.Effects.HpSac { Translation = Vector3.UnitZ * 1.5f });

            Interface.ScrollingCombatText s;
            Game.Instance.Interface.AddChild(s = new Interface.ScrollingCombatText
            {
                Text = "+" + Rage + " " + Locale.Resource.GenLCRage,
                WorldPosition = Translation + Vector3.UnitZ * 1
            });
            s.Font.Color = System.Drawing.Color.Orange;

            base.DoPickup(unit);
        }
        public override void DoPickup(Unit unit)
        {
            if (unit.HitPoints >= unit.MaxHitPoints) return;

            //Sound and visual effect
            Program.Instance.SoundManager.GetSFX(Client.Sound.SFX.PotionPickup1).Play(new Client.Sound.PlayArgs { });
            unit.AddChild(new Client.Game.Map.Effects.RageSac { Translation = Vector3.UnitZ * 1.5f });

            unit.Heal(null, (int)(HealPerc * unit.MaxHitPoints));

            Interface.ScrollingCombatText s;
            Game.Instance.Interface.AddChild(s = new Interface.ScrollingCombatText
            {
                Text = "+" + (int)(100 * HealPerc) + "% " + Locale.Resource.GenLCHP,
                WorldPosition = Translation + Vector3.UnitZ * 1
            });
            s.Font.Color = System.Drawing.Color.Green;

            base.DoPickup(unit);
        }