Exemplo n.º 1
0
        //Reduced damage
        public void HitPhysical(int damage)
        {
            int dmg = progression.ClampDamage(false, damage);

            Network.NetworkManager.SendHitmarker(transform.position + Vector3.up, dmg, new Color(1, 0.4f, 0, 1f));
            HitReal(dmg);
        }
Exemplo n.º 2
0
        //Reduced damage
        public void HitPhysical(int damage)
        {
            if (damage < -50000)
            {
                //reduce armor
                int armorreduction = -damage - 50000;

                progression.ArmorReduction += armorreduction;
                return;
            }
            int dmg = progression.ClampDamage(false, damage);

            HitReal(dmg);
        }
Exemplo n.º 3
0
        //Reduced damage
        public void HitPhysical(int damage)
        {
            if (damage < -50000)
            {
                //reduce armor
                int armorreduction = -damage - 50000;

                progression.ArmorReduction += armorreduction;
                return;
            }
            int dmg = progression.ClampDamage(false, damage);

            HitReal(dmg);
            //ModAPI.Console.Write("Hit physical(input:" + damage+", output:"+dmg+")");
        }