コード例 #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);
        }
コード例 #2
0
ファイル: NpcAttribute.cs プロジェクト: Xnovae/MobaClient
        /*
         * 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);
        }