Exemple #1
0
        /*
         * BaseWeapon Damage
         * Fire Element Damage  Ice Element Electric
         */
        int GetAllDamage()
        {
            int d = _Damage;

            if (npcEquipment != null)
            {
                d += npcEquipment.GetDamage();
            }
            Log.Sys("Damage is what  " + d + " g " + gameObject);
            return(d);
        }
Exemple #2
0
        /*
         * BaseWeapon Damage
         * Fire Element Damage  Ice Element Electric
         */
        public int GetAllDamage(bool isStaticShoot)
        {
            int d = _Damage;

            if (isStaticShoot)
            {
                d = (int)(_Damage * GameConst.Instance.StaticShootBuffDamageRatio);
            }

            if (npcEquipment != null)
            {
                d += npcEquipment.GetDamage();
            }
            Log.Sys("Damage is what  " + d + " g " + gameObject);
            return(d);
        }