Browse Source

漏传了

HY-LSZNWIN10\Administrator 1 month ago
parent
commit
7d862fd0b7

+ 4 - 3
ActionTowerDefense/Assets/Scripts/Characters/PlayerController.cs

@@ -1604,18 +1604,19 @@ public class PlayerController : MoveCharacter
             {
                 AttackInfo attackInfo = attackController.attackMethod_summon[i].attackInfo;
                 attackInfo.damage += (int)(attackInfo.damage * demonicDic[0].Count * GameManager.instance.attackRate);
-                Debug.Log("飞行兵的数量是:" + demonicDic[0].Count + ",增加的伤害为" + (int)(attackInfo.damage * demonicDic[0].Count * GameManager.instance.attackRate));
+                //Debug.Log("飞行兵的数量是:" + demonicDic[0].Count + ",增加的起手式伤害为" + (int)(attackInfo.damage * demonicDic[0].Count * GameManager.instance.attackRate));
             }
             for (int i = 0; i < attackController.attackMethod_march.Length; i++)
             {
                 AttackInfo attackInfo = attackController.attackMethod_march[i].attackInfo;
                 attackInfo.damage += (int)(attackInfo.damage * demonicDic[0].Count * GameManager.instance.attackRate);
+                //Debug.Log("飞行兵的数量是:" + demonicDic[0].Count + ",增加的行军式伤害为" + (int)(attackInfo.damage * demonicDic[0].Count * GameManager.instance.attackRate));
             }        
         }
-        else if (GameManager.instance.isGroundEnable)
+        if (GameManager.instance.isGroundEnable)
         {
             int num = demonicDic[1].Count + demonicDic[2].Count;
-            Debug.Log("地面兵的数量是:" + num + ",增加的血量为" + (int)(demonic.totalHp * num * GameManager.instance.hpRate));
+            //Debug.Log("地面兵的数量是:" + num + ",增加的血量为" + (int)(demonic.totalHp * num * GameManager.instance.hpRate));
             demonic.totalHp += (int)(demonic.totalHp * num * GameManager.instance.hpRate);
             demonic.hp = demonic.totalHp;
             demonic.uiHp.Show(demonic.hp, demonic.totalHp);

+ 1 - 1
ActionTowerDefense/Assets/Scripts/GameManager.cs

@@ -111,7 +111,7 @@ public class GameManager : MonoBehaviour
 
 
     [FoldoutGroup("标签/地")] [LabelText("是否启用")] public bool isGroundEnable = false;
-    [FoldoutGroup("标签/地")] [LabelText("每个兵提供的防御buff比率")] public float hpRate = 0.01f;
+    [FoldoutGroup("标签/地")] [LabelText("每个兵提供的血量buff比率")] public float hpRate = 0.01f;
     //[FoldoutGroup("标签/地")] [LabelText("触发概率")] [PropertyRange(0, 100)] public int groundProbability = 100;
     //[FoldoutGroup("标签/地")] [LabelText("复活时间")] [PropertyRange(0, 100)] public float resurrectionTime = 3;
     //[FoldoutGroup("标签/地")] [LabelText("魂骸血量")] [PropertyRange(0, 100)] public int deadHp = 20;