Browse Source

御剑术伤害倍数可调

LAPTOP-OM1V99U2\永远de小亡灵 10 tháng trước cách đây
mục cha
commit
cd345aaf89

+ 2 - 1
ActionTowerDefense/Assets/Resources/Prefab/Player.prefab

@@ -1003,7 +1003,7 @@ MonoBehaviour:
   - 0
   - 0
   - 0
-  conductSkills: 010000000700000008000000
+  conductSkills: 040000000700000008000000
   conductCanRelease: 010101
   conductReadyTip: {fileID: 946637326309089849}
   timeSlowingMultiplier: 0.5
@@ -1021,6 +1021,7 @@ MonoBehaviour:
   offset: {x: 0, y: 7, z: 0}
   wavePowerObj: {fileID: 8625694250200680089, guid: 2ee85ceccd170b94b8ba929f3b58af5f, type: 3}
   flyingSwordsObj: {fileID: 256012001268456902, guid: 28fffa39583087344b7b2620e7284dd5, type: 3}
+  swordsDamage: 100
   angryBulletObj: {fileID: 8625694250200680089, guid: 4a30da3dcf83256468df404f06d44533, type: 3}
   fanFlyingSwords: {fileID: 256012001268456902, guid: 26ed0fb31296bdd4bb45e22ce2b925bc, type: 3}
   isClickBtnJump: 0

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

@@ -186,6 +186,7 @@ public class PlayerController : MoveCharacter
     public GameObject wavePowerObj;
     //御剑术
     public GameObject flyingSwordsObj;
+    [Header("御剑术伤害")] public int swordsDamage;
     //怨气弹
     public GameObject angryBulletObj;
     //扇形飞剑
@@ -881,7 +882,7 @@ public class PlayerController : MoveCharacter
                         SwordsControl swordsControl = obj.GetComponentInChildren<SwordsControl>();
                         swordsControl.owner = this;
                         swordsControl.conductId = cacheConductId;
-                        swordsControl.damage = 100 * demonicDic[1].Count;
+                        swordsControl.damage = swordsDamage * demonicDic[1].Count;
                     }
                     else
                     {