Эх сурвалжийг харах

宝物伤害加成与行军时效果减弱

WGL 1 сар өмнө
parent
commit
99771288d1

+ 1 - 1
ActionTowerDefense/Assets/Scripts/Characters/PlayerController.cs

@@ -1604,7 +1604,7 @@ public class PlayerController : MoveCharacter
         for (int i = 0; i < attackController.attackMethod_summon.Length; i++)
         {
             AttackInfo attackInfo = attackController.attackMethod_summon[i].attackInfo;
-            attackInfo.damage += gameManager.damage;
+            attackInfo.damage += (int)(gameManager.damage * gameManager.damageRate);
             attackInfo.criticalChance = gameManager.criticalChance;
             attackInfo.lifesteal = gameManager.lifesteal;
         }

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

@@ -145,6 +145,7 @@ public class GameManager : MonoBehaviour
     [FoldoutGroup("Rogue")] public List<List<List<SingleTreasureConfig>>> treasuresList;
     [FoldoutGroup("Rogue")] [DisplayOnly] public List<float> trueRefreshChance;
     [FoldoutGroup("Rogue")] [HideInInspector] public List<float> refreshChance;
+    [FoldoutGroup("Rogue")] [LabelText("行军式加成倍率")] public float damageRate;
     [Header("数值加成")]
     [FoldoutGroup("Rogue")] [LabelText("伤害")] public int damage;
     [FoldoutGroup("Rogue")] [LabelText("暴击率")] public int criticalChance;