Exemplo n.º 1
0
        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            ModPlayerFists mpf  = player.GetModPlayer <ModPlayerFists>();
            int            diff = (localCounter - mpf.ComboCounter) / 2;

            if (diff > 0 && mpf.comboTimer > 0)
            {
                PlayerFX.HealPlayer(player, diff, true);
            }
            localCounter = mpf.ComboCounter;
        }
Exemplo n.º 2
0
        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            ModPlayerFists mpf = player.GetModPlayer <ModPlayerFists>();

            mpf.parryLifesteal += 0.1f;

            if (player.dashDelay > 2)
            {
                player.dashDelay -= 2;
            }

            if (Math.Abs(player.velocity.X) > 4.5f)
            {
                player.lifeRegenCount += 8;
            }                               // healing per 2 seconds
            else if (Math.Abs(player.velocity.X) > 3f)
            {
                player.lifeRegenCount += 6;
            }                               // healing per 2 seconds
            else if (Math.Abs(player.velocity.X) > 1.5f)
            {
                player.lifeRegenCount += 4;
            }                               // healing per 2 seconds

            int diff = (localCounter - mpf.ComboCounter);

            if (diff > 0 && mpf.comboTimer > 0)
            {
                PlayerFX.HealPlayer(player, diff + 2, true);
            }
            localCounter = mpf.ComboCounter;

            if (!hideVisual)
            {
                Lighting.AddLight(player.Center, 1f, 0.2f, 0f);
            }
        }