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

修复经验增加错误问题

WGL 3 сар өмнө
parent
commit
1bbb66a952

+ 21 - 1
ActionTowerDefense/Assets/Resources/Prefab/MySoldier/Demonic_Arrow.prefab

@@ -122,6 +122,7 @@ MonoBehaviour:
     blowUp:
     blowUp:
       directionType: 0
       directionType: 0
       dir: {x: 0, y: 0, z: 0}
       dir: {x: 0, y: 0, z: 0}
+      dirRandom: {x: 0, y: 0, z: 0}
       force: 0
       force: 0
       time: 0
       time: 0
       haveLandingDamage: 0
       haveLandingDamage: 0
@@ -130,6 +131,7 @@ MonoBehaviour:
     shotDown:
     shotDown:
       directionType: 0
       directionType: 0
       dir: {x: 0, y: 0, z: 0}
       dir: {x: 0, y: 0, z: 0}
+      dirRandom: {x: 0, y: 0, z: 0}
       force: 0
       force: 0
       time: 0
       time: 0
       haveLandingDamage: 0
       haveLandingDamage: 0
@@ -157,6 +159,11 @@ MonoBehaviour:
   isFly: 0
   isFly: 0
   decelerationRatioX: 2
   decelerationRatioX: 2
   decelerationRatioY: 15
   decelerationRatioY: 15
+  startFlyAngle: 15
+  flyingRotateSpeedRange: {x: 15, y: 45}
+  compressionDegree: 0.8
+  compressionSpeed: {x: 0.2, y: 0.4}
+  jumpVel: 5
   haveVulnerable: 0
   haveVulnerable: 0
   vulnerableTime: 0
   vulnerableTime: 0
   stackingWoudsTime: 0
   stackingWoudsTime: 0
@@ -199,6 +206,7 @@ MonoBehaviour:
     blowUp:
     blowUp:
       directionType: 0
       directionType: 0
       dir: {x: 0, y: 0, z: 0}
       dir: {x: 0, y: 0, z: 0}
+      dirRandom: {x: 0, y: 0, z: 0}
       force: 0
       force: 0
       time: 0
       time: 0
       haveLandingDamage: 0
       haveLandingDamage: 0
@@ -207,6 +215,7 @@ MonoBehaviour:
     shotDown:
     shotDown:
       directionType: 0
       directionType: 0
       dir: {x: 0, y: 0, z: 0}
       dir: {x: 0, y: 0, z: 0}
+      dirRandom: {x: 0, y: 0, z: 0}
       force: 0
       force: 0
       time: 0
       time: 0
       haveLandingDamage: 0
       haveLandingDamage: 0
@@ -756,6 +765,7 @@ MonoBehaviour:
     blowUp:
     blowUp:
       directionType: 0
       directionType: 0
       dir: {x: 0, y: 0, z: 0}
       dir: {x: 0, y: 0, z: 0}
+      dirRandom: {x: 0, y: 0, z: 0}
       force: 0
       force: 0
       time: 0
       time: 0
       haveLandingDamage: 0
       haveLandingDamage: 0
@@ -764,6 +774,7 @@ MonoBehaviour:
     shotDown:
     shotDown:
       directionType: 0
       directionType: 0
       dir: {x: 0, y: 0, z: 0}
       dir: {x: 0, y: 0, z: 0}
+      dirRandom: {x: 0, y: 0, z: 0}
       force: 0
       force: 0
       time: 0
       time: 0
       haveLandingDamage: 0
       haveLandingDamage: 0
@@ -1271,6 +1282,7 @@ MonoBehaviour:
   hp: 0
   hp: 0
   canFly: 1
   canFly: 1
   nowCanFly: 0
   nowCanFly: 0
+  canNotShotDown: 1
   canNotAddForce: 0
   canNotAddForce: 0
   canNotChangeHurt: 0
   canNotChangeHurt: 0
   isDie: 0
   isDie: 0
@@ -1331,7 +1343,7 @@ MonoBehaviour:
   heavyDamage: 0
   heavyDamage: 0
   killer: {fileID: 0}
   killer: {fileID: 0}
   searchState: 0
   searchState: 0
-  soldierType: 1
+  soldierType: 0
   player: {fileID: 0}
   player: {fileID: 0}
   playerID: 0
   playerID: 0
   id: 0
   id: 0
@@ -1436,6 +1448,7 @@ MonoBehaviour:
     blowUp:
     blowUp:
       directionType: 0
       directionType: 0
       dir: {x: 0, y: 0, z: 0}
       dir: {x: 0, y: 0, z: 0}
+      dirRandom: {x: 0, y: 0, z: 0}
       force: 0
       force: 0
       time: 0
       time: 0
       haveLandingDamage: 0
       haveLandingDamage: 0
@@ -1444,6 +1457,7 @@ MonoBehaviour:
     shotDown:
     shotDown:
       directionType: 0
       directionType: 0
       dir: {x: 0, y: 0, z: 0}
       dir: {x: 0, y: 0, z: 0}
+      dirRandom: {x: 0, y: 0, z: 0}
       force: 0
       force: 0
       time: 0
       time: 0
       haveLandingDamage: 0
       haveLandingDamage: 0
@@ -1498,6 +1512,7 @@ MonoBehaviour:
       blowUp:
       blowUp:
         directionType: 0
         directionType: 0
         dir: {x: 0, y: 0, z: 0}
         dir: {x: 0, y: 0, z: 0}
+        dirRandom: {x: 0, y: 0, z: 0}
         force: 0
         force: 0
         time: 0
         time: 0
         haveLandingDamage: 0
         haveLandingDamage: 0
@@ -1506,6 +1521,7 @@ MonoBehaviour:
       shotDown:
       shotDown:
         directionType: 0
         directionType: 0
         dir: {x: 0, y: 0, z: 0}
         dir: {x: 0, y: 0, z: 0}
+        dirRandom: {x: 0, y: 0, z: 0}
         force: 0
         force: 0
         time: 0
         time: 0
         haveLandingDamage: 0
         haveLandingDamage: 0
@@ -1564,6 +1580,7 @@ MonoBehaviour:
       blowUp:
       blowUp:
         directionType: 0
         directionType: 0
         dir: {x: 0, y: 0, z: 0}
         dir: {x: 0, y: 0, z: 0}
+        dirRandom: {x: 0, y: 0, z: 0}
         force: 0
         force: 0
         time: 0
         time: 0
         haveLandingDamage: 0
         haveLandingDamage: 0
@@ -1572,6 +1589,7 @@ MonoBehaviour:
       shotDown:
       shotDown:
         directionType: 0
         directionType: 0
         dir: {x: 0, y: 0, z: 0}
         dir: {x: 0, y: 0, z: 0}
+        dirRandom: {x: 0, y: 0, z: 0}
         force: 0
         force: 0
         time: 0
         time: 0
         haveLandingDamage: 0
         haveLandingDamage: 0
@@ -1629,6 +1647,7 @@ MonoBehaviour:
       blowUp:
       blowUp:
         directionType: 0
         directionType: 0
         dir: {x: 0, y: 0, z: 0}
         dir: {x: 0, y: 0, z: 0}
+        dirRandom: {x: 0, y: 0, z: 0}
         force: 0
         force: 0
         time: 0
         time: 0
         haveLandingDamage: 0
         haveLandingDamage: 0
@@ -1637,6 +1656,7 @@ MonoBehaviour:
       shotDown:
       shotDown:
         directionType: 0
         directionType: 0
         dir: {x: 0, y: 0, z: 0}
         dir: {x: 0, y: 0, z: 0}
+        dirRandom: {x: 0, y: 0, z: 0}
         force: 0
         force: 0
         time: 0
         time: 0
         haveLandingDamage: 0
         haveLandingDamage: 0

+ 2 - 3
ActionTowerDefense/Assets/Resources/Prefab/MySoldier/Demonic_Giant.prefab

@@ -668,6 +668,7 @@ MonoBehaviour:
   hp: 0
   hp: 0
   canFly: 0
   canFly: 0
   nowCanFly: 0
   nowCanFly: 0
+  canNotShotDown: 1
   canNotAddForce: 0
   canNotAddForce: 0
   canNotChangeHurt: 0
   canNotChangeHurt: 0
   isDie: 0
   isDie: 0
@@ -728,7 +729,7 @@ MonoBehaviour:
   heavyDamage: 0
   heavyDamage: 0
   killer: {fileID: 0}
   killer: {fileID: 0}
   searchState: 0
   searchState: 0
-  soldierType: 2
+  soldierType: 1
   player: {fileID: 0}
   player: {fileID: 0}
   playerID: 0
   playerID: 0
   id: 0
   id: 0
@@ -1312,8 +1313,6 @@ MeshRenderer:
   m_Materials:
   m_Materials:
   - {fileID: 2100000, guid: 466a6130b6c56614caef9c2f5961b3a8, type: 2}
   - {fileID: 2100000, guid: 466a6130b6c56614caef9c2f5961b3a8, type: 2}
   - {fileID: 2100000, guid: dc7a2704fc39fb24997c9f6279033f5c, type: 2}
   - {fileID: 2100000, guid: dc7a2704fc39fb24997c9f6279033f5c, type: 2}
-  - {fileID: 2100000, guid: 466a6130b6c56614caef9c2f5961b3a8, type: 2}
-  - {fileID: 2100000, guid: dc7a2704fc39fb24997c9f6279033f5c, type: 2}
   m_StaticBatchInfo:
   m_StaticBatchInfo:
     firstSubMesh: 0
     firstSubMesh: 0
     subMeshCount: 0
     subMeshCount: 0

+ 2 - 1
ActionTowerDefense/Assets/Resources/Prefab/MySoldier/Demonic_Sword.prefab

@@ -208,6 +208,7 @@ MonoBehaviour:
   hp: 0
   hp: 0
   canFly: 0
   canFly: 0
   nowCanFly: 0
   nowCanFly: 0
+  canNotShotDown: 1
   canNotAddForce: 0
   canNotAddForce: 0
   canNotChangeHurt: 0
   canNotChangeHurt: 0
   isDie: 0
   isDie: 0
@@ -268,7 +269,7 @@ MonoBehaviour:
   heavyDamage: 0
   heavyDamage: 0
   killer: {fileID: 0}
   killer: {fileID: 0}
   searchState: 0
   searchState: 0
-  soldierType: 0
+  soldierType: 2
   player: {fileID: 0}
   player: {fileID: 0}
   playerID: 0
   playerID: 0
   id: 0
   id: 0

+ 10 - 0
ActionTowerDefense/Assets/Scripts/EnemyCreater.cs

@@ -4,6 +4,8 @@ using cfg;
 using System.Threading.Tasks;
 using System.Threading.Tasks;
 using Base.Common;
 using Base.Common;
 using System.Threading;
 using System.Threading;
+using System.IO;
+using OfficeOpenXml;
 
 
 public class EnemyCreater : MonoBehaviour
 public class EnemyCreater : MonoBehaviour
 {
 {
@@ -112,6 +114,14 @@ public class EnemyCreater : MonoBehaviour
         {
         {
             Debug.LogError("¹Ø¿¨µ¼Èë³ö´í");
             Debug.LogError("¹Ø¿¨µ¼Èë³ö´í");
         }
         }
+
+        FileInfo fileInfo = new FileInfo($"Luban/Config/Datas/EnemyCreater/³ö¹Ö±í{nowLevel}.xlsx");
+        using (ExcelPackage package = new ExcelPackage(fileInfo))
+        {
+            List<string> excelWorksheets = ExcelEditor.ReadExcelSheetsInfo(package);
+            float.TryParse(ExcelEditor.GetCellData(package, excelWorksheets[levelSelect.curLevelID], "F5"), out LevelSelect.EXPRatio);
+        }
+
         idRange = new Vector2Int(startId, endId);
         idRange = new Vector2Int(startId, endId);
 
 
         for (int i = startId + 1; i < endId; i++)
         for (int i = startId + 1; i < endId; i++)