Browse Source

修改bug

DESKTOP-FB72PO8\Administrator 1 day ago
parent
commit
7979c9bd55

+ 1 - 1
Assets/Art/VFX/Materials/UIMat/ui fb kuang glow3 mask uv.mat

@@ -139,7 +139,7 @@ Material:
     - _MainSpeedU: 0
     - _MainSpeedV: 0
     - _MainTexOffsetU: 0
-    - _MainTexOffsetV: -0.23306364
+    - _MainTexOffsetV: -0.3
     - _MainTilingU: 1
     - _MainTilingV: 0.78
     - _MaskSpeedU: 0.5

+ 2 - 2
Assets/Res/Config/GroupConfig.json

@@ -7,11 +7,11 @@
         1002
       ],
       "qiangDu": [
-        60,
+        80,
         40
       ],
       "levelAdd": [
-        -1,
+        0,
         -2
       ]
     },

+ 1 - 1
Assets/Resources/Shader/Shader Graphs_ShengShiShader.mat

@@ -53,7 +53,7 @@ Material:
     - _QueueControl: 0
     - _QueueOffset: 0
     - _depthoff: 1.18
-    - _qiangdu: 53.23
+    - _qiangdu: 400
     m_Colors:
     - _off: {r: 0.01, g: 0.01, b: 0, a: 0}
   m_BuildTextureStacks: []

+ 13 - 13
Assets/Scenes/testCombat.scene

@@ -2189,7 +2189,7 @@ PrefabInstance:
       objectReference: {fileID: 0}
     - target: {fileID: 6090200664286961698, guid: 1076536f8fdf47942aa287592c6a8b19, type: 3}
       propertyPath: enemyLevel
-      value: 150
+      value: 2
       objectReference: {fileID: 0}
     - target: {fileID: 6090200664286961698, guid: 1076536f8fdf47942aa287592c6a8b19, type: 3}
       propertyPath: isZhanZhuang
@@ -2197,7 +2197,7 @@ PrefabInstance:
       objectReference: {fileID: 0}
     - target: {fileID: 6090200664286961698, guid: 1076536f8fdf47942aa287592c6a8b19, type: 3}
       propertyPath: levelBattleId
-      value: 0
+      value: 100001
       objectReference: {fileID: 0}
     - target: {fileID: 6090200664286961698, guid: 1076536f8fdf47942aa287592c6a8b19, type: 3}
       propertyPath: zhanZhuangTime
@@ -2209,15 +2209,15 @@ PrefabInstance:
       objectReference: {fileID: 0}
     - target: {fileID: 6090200664286961698, guid: 1076536f8fdf47942aa287592c6a8b19, type: 3}
       propertyPath: myHeroInfo.Array.data[0].hp
-      value: 10000
+      value: 0
       objectReference: {fileID: 0}
     - target: {fileID: 6090200664286961698, guid: 1076536f8fdf47942aa287592c6a8b19, type: 3}
       propertyPath: myHeroInfo.Array.data[0].mu
-      value: 10
+      value: 0
       objectReference: {fileID: 0}
     - target: {fileID: 6090200664286961698, guid: 1076536f8fdf47942aa287592c6a8b19, type: 3}
       propertyPath: myHeroInfo.Array.data[0].tu
-      value: 5
+      value: 0
       objectReference: {fileID: 0}
     - target: {fileID: 6090200664286961698, guid: 1076536f8fdf47942aa287592c6a8b19, type: 3}
       propertyPath: myHeroInfo.Array.data[0].att
@@ -2229,15 +2229,15 @@ PrefabInstance:
       objectReference: {fileID: 0}
     - target: {fileID: 6090200664286961698, guid: 1076536f8fdf47942aa287592c6a8b19, type: 3}
       propertyPath: myHeroInfo.Array.data[0].huo
-      value: 10
+      value: 0
       objectReference: {fileID: 0}
     - target: {fileID: 6090200664286961698, guid: 1076536f8fdf47942aa287592c6a8b19, type: 3}
       propertyPath: myHeroInfo.Array.data[0].jing
-      value: 5
+      value: 0
       objectReference: {fileID: 0}
     - target: {fileID: 6090200664286961698, guid: 1076536f8fdf47942aa287592c6a8b19, type: 3}
       propertyPath: myHeroInfo.Array.data[0].shui
-      value: 5
+      value: 0
       objectReference: {fileID: 0}
     - target: {fileID: 6090200664286961698, guid: 1076536f8fdf47942aa287592c6a8b19, type: 3}
       propertyPath: enemyHeroInfo.Array.data[0].hp
@@ -2245,7 +2245,7 @@ PrefabInstance:
       objectReference: {fileID: 0}
     - target: {fileID: 6090200664286961698, guid: 1076536f8fdf47942aa287592c6a8b19, type: 3}
       propertyPath: myHeroInfo.Array.data[0].level
-      value: 150
+      value: 2
       objectReference: {fileID: 0}
     - target: {fileID: 6090200664286961698, guid: 1076536f8fdf47942aa287592c6a8b19, type: 3}
       propertyPath: enemyHeroInfo.Array.data[0].att
@@ -2277,11 +2277,11 @@ PrefabInstance:
       objectReference: {fileID: 0}
     - target: {fileID: 6090200664286961698, guid: 1076536f8fdf47942aa287592c6a8b19, type: 3}
       propertyPath: myHeroInfo.Array.data[0].skillLevel
-      value: 30
+      value: 1
       objectReference: {fileID: 0}
     - target: {fileID: 6090200664286961698, guid: 1076536f8fdf47942aa287592c6a8b19, type: 3}
       propertyPath: myHeroInfo.Array.data[0].skillStart
-      value: 3
+      value: 1
       objectReference: {fileID: 0}
     - target: {fileID: 6090200664286961698, guid: 1076536f8fdf47942aa287592c6a8b19, type: 3}
       propertyPath: enemyHeroInfo.Array.data[0].skillLevel
@@ -2325,7 +2325,7 @@ PrefabInstance:
       objectReference: {fileID: 0}
     - target: {fileID: 6090200664286961698, guid: 1076536f8fdf47942aa287592c6a8b19, type: 3}
       propertyPath: myHeroInfo.Array.data[0].magicWeaponId.Array.size
-      value: 2
+      value: 0
       objectReference: {fileID: 0}
     - target: {fileID: 6090200664286961698, guid: 1076536f8fdf47942aa287592c6a8b19, type: 3}
       propertyPath: enemyHeroInfo.Array.data[0].magicWeaponId.Array.size
@@ -2353,7 +2353,7 @@ PrefabInstance:
       objectReference: {fileID: 0}
     - target: {fileID: 9214784224709271120, guid: 1076536f8fdf47942aa287592c6a8b19, type: 3}
       propertyPath: m_IsActive
-      value: 0
+      value: 1
       objectReference: {fileID: 0}
     m_RemovedComponents: []
     m_RemovedGameObjects: []

+ 36 - 12
Assets/Scripts/GameLogic/Combat/CombatType/LevelBattleCombatType.cs

@@ -68,8 +68,7 @@ namespace GameLogic.Combat.CombatType
             await cTaskAwaitBuffer.WaitAll();
             CombatController.currActiveCombat.CombatHeroController.SetFollowTarget();
         }
-
-
+ 
         public async CTask LoadCombat(int levelBattleId, System.Action<bool> caombatFinish)
         {
             levelbattleConfig = ConfigComponent.Instance.Get<LevelbattleConfig>(levelBattleId);
@@ -80,20 +79,45 @@ namespace GameLogic.Combat.CombatType
                 GroupConfig groupConfig = ConfigComponent.Instance.Get<GroupConfig>(group);
                 int[] monster = groupConfig.GroupMonster;
                 int[] levels = groupConfig.GroupMonsterLevel;
-                int level = 0;
-                if (levels == null)
-                {
-                    level = PlayerManager.Instance.myHero.level.Value;
-                }
-                else
-                {
-                    level = levels[0];
-                }
+               
+
+            
 
                 for (int j = 0; j < monster.Length; j++)
                 {
+                    
+                     
+                    int level =  PlayerManager.Instance.myHero.level.Value;
+                    if (levels != null)
+                    {
+                        level = levels[j];
+                    }
+
+                    if (groupConfig.levelAdd != null)
+                    {
+                        level += groupConfig.levelAdd[j];
+                    }
+
+                    if (level <=0)
+                    {
+                        level = 1;
+                    }
+
+                    int monsterHeroModel = monster[j];
+                    int qiangdu = 100;
+
+                    if (groupConfig.qiangDu != null)
+                    {
+                        qiangdu = groupConfig.qiangDu[j];
+                    }
+                    
                     HeroInfo heroInfo = new HeroInfo();
-                    heroInfo.InitMonster(monster[j], level);
+                    heroInfo.InitMonster(monsterHeroModel, level);
+                    heroInfo.hp = (EncryptionLong)CombatCalculateTool.Instance.GetVlaueRatioForLong(heroInfo.hp.Value,qiangdu);
+                    heroInfo.attack = (EncryptionLong)CombatCalculateTool.Instance.GetVlaueRatioForLong(heroInfo.attack.Value,qiangdu);
+                    heroInfo.defense = (EncryptionLong)CombatCalculateTool.Instance.GetVlaueRatioForLong(heroInfo.defense.Value,qiangdu);
+                    heroInfo.gongFaStrength = qiangdu - 100;
+                    
                     CreateEnemy(cTaskAwaitBuffer, heroInfo, j);
                 }
             }

+ 6 - 1
Assets/Scripts/GameLogic/Combat/CombatType/TestCombatType.cs

@@ -120,6 +120,11 @@ namespace GameLogic.Combat.CombatType
                         level += groupConfig.levelAdd[j];
                     }
 
+                    if (level <= 0)
+                    {
+                        level = 1;
+                    }
+
                     int monsterHeroModel = monster[j];
                     int qiangdu = 100;
 
@@ -130,7 +135,7 @@ namespace GameLogic.Combat.CombatType
 
                     CombatHeroInfo combatHeroInfo = new CombatHeroInfo();
                     combatHeroInfo.InitMonster(monsterHeroModel, level);
-                    // combatHeroInfo.hp = (EncryptionLong)CombatCalculateTool.Instance.GetVlaueRatioForLong(combatHeroInfo.hp.Value,qiangdu);
+                    combatHeroInfo.hp = (EncryptionLong)CombatCalculateTool.Instance.GetVlaueRatioForLong(combatHeroInfo.hp.Value,qiangdu);
                     combatHeroInfo.attack = (EncryptionLong)CombatCalculateTool.Instance.GetVlaueRatioForLong(combatHeroInfo.attack.Value,qiangdu);
                     combatHeroInfo.defense = (EncryptionLong)CombatCalculateTool.Instance.GetVlaueRatioForLong(combatHeroInfo.defense.Value,qiangdu);
                     combatHeroInfo.gongFaStrength = qiangdu - 100;

+ 19 - 8
Assets/Scripts/GameLogic/Combat/Skill/S1101.cs

@@ -1,5 +1,6 @@
 using System.Collections.Generic;
 using CombatLibrary.CombatLibrary.CombatCore.CustomizeTimeLogic.FxLogic;
+using GameLogic.Combat.Buff;
 using GameLogic.Combat.CombatTool;
 using GameLogic.Combat.Hero;
 using UnityEngine;
@@ -22,7 +23,7 @@ namespace GameLogic.Combat.Skill
                     .GetMainHotPoin<CombatHeroHitPoint>();
                 BetterList<ILifetCycleHitPoint> currTarget = new BetterList<ILifetCycleHitPoint>();
                 currTarget.Add(combatHeroHitPoint);
-                string dotName="zdpos" + (i%7 + 1);
+                string dotName = "zdpos" + (i % 7 + 1);
                 SpecialDotInfo specialDotInfo = CombatHeroEntity.GetSpecialDotInfo(dotName);
                 ActivationTimeLineData("1101", currTarget: currTarget,
                     customizePos: new Vector3[] { specialDotInfo.GetWorlPos() }, indexCount: i);
@@ -36,22 +37,32 @@ namespace GameLogic.Combat.Skill
 
         protected override void ProDefaultTimeLineTrigger(string groupName, CombatHeroHitPoint targetEntity,
             ITimelineFxLogic timelineFxLogic,
-            TriggerData triggerData,ISkillFeatures skillFeatures)
+            TriggerData triggerData, ISkillFeatures skillFeatures)
         {
             float harmBl = effectValue[1];
-            // CombatC
-            int c = targetEntity.combatHeroEntity.BuffControl.GetBuffCountForType(2);
-            if (c > 0)
+
+            if (effectValue.Length > 3)
             {
-                harmBl += effectValue[2];
+                int c = targetEntity.combatHeroEntity.BuffControl.GetBuffCountForType(2);
+                if (c > 0)
+                {
+                    harmBl += effectValue[3];
+                }
             }
 
+
             long v = CombatCalculateTool.Instance.GetVlaueRatioForLong(CombatHeroEntity.CurrCombatHeroInfo.attack.Value,
                 harmBl);
 
-            CombatCalculateTool.Instance.Harm(CombatHeroEntity, targetEntity, v, AttType.Skill, triggerData,
-                wuXingType,skillFeatures,
+            HarmReturnInfo harmReturnInfo = CombatCalculateTool.Instance.Harm(CombatHeroEntity, targetEntity, v,
+                AttType.Skill, triggerData,
+                wuXingType, skillFeatures,
                 HarmType.Default);
+            if (harmReturnInfo.isHitHero)
+            {
+                BuffInfo buffInfo = BuffInfo.GetBuffInfo(10111, 1,this);
+                targetEntity.combatHeroEntity.BuffControl.AddBuff(CombatHeroEntity, buffInfo);
+            }
         }
     }
 }

+ 17 - 12
Assets/Scripts/GameLogic/Combat/Skill/S1201.cs

@@ -11,7 +11,7 @@ namespace GameLogic.Combat.Skill
     /// <summary>
     /// 碧落幽冥劲:发出多道寒气冰锥,对敌人照成伤害,每到冰锥对敌人施加1层寒气
     /// </summary>
-    public class S1201: SkillBasic
+    public class S1201 : SkillBasic
     {
         private int currCount;
 
@@ -21,12 +21,14 @@ namespace GameLogic.Combat.Skill
             ballisticsCount = (int)effectValue[0];
             for (int i = 0; i < effectValue[0]; i++)
             {
-                CombatHeroHitPoint combatHeroHitPoint=    CombatHeroEntity.CombatAIBasic.currFocusTarget.GetThis<CombatHeroEntity>()
+                CombatHeroHitPoint combatHeroHitPoint = CombatHeroEntity.CombatAIBasic.currFocusTarget
+                    .GetThis<CombatHeroEntity>()
                     .GetMainHotPoin<CombatHeroHitPoint>();
                 BetterList<ILifetCycleHitPoint> currTarget = new BetterList<ILifetCycleHitPoint>();
                 currTarget.Add(combatHeroHitPoint);
-                SpecialDotInfo specialDotInfo=  CombatHeroEntity.GetSpecialDotInfo("zdpos" + (i + 2));
-                ActivationTimeLineData("1201_fashe",currTarget:currTarget,customizePos:new Vector3[]{specialDotInfo.GetWorlPos()},indexCount:i);
+                SpecialDotInfo specialDotInfo = CombatHeroEntity.GetSpecialDotInfo("zdpos" + (i + 2));
+                ActivationTimeLineData("1201_fashe", currTarget: currTarget,
+                    customizePos: new Vector3[] { specialDotInfo.GetWorlPos() }, indexCount: i);
             }
             // currCount = 0;
         }
@@ -37,21 +39,24 @@ namespace GameLogic.Combat.Skill
         }
 
 
-
         protected override void ProDefaultTimeLineTrigger(string groupName, CombatHeroHitPoint targetEntity,
             ITimelineFxLogic timelineFxLogic,
-            TriggerData triggerData,ISkillFeatures skillFeatures)
+            TriggerData triggerData, ISkillFeatures skillFeatures)
         {
             long v = CombatCalculateTool.Instance.GetVlaueRatioForLong(CombatHeroEntity.CurrCombatHeroInfo.attack.Value,
                 effectValue[1]);
-            CombatCalculateTool.Instance.Harm(CombatHeroEntity, targetEntity, v, AttType.Skill, triggerData,
-                wuXingType,skillFeatures,
+            HarmReturnInfo harmReturnInfo = CombatCalculateTool.Instance.Harm(CombatHeroEntity, targetEntity, v,
+                AttType.Skill, triggerData,
+                wuXingType, skillFeatures,
                 HarmType.Default);
-            int odds = CombatCalculateTool.Instance.GetOdd(0, 100);
-            if (odds <= effectValue[2])
+            if (harmReturnInfo.isHitHero)
             {
-                BuffInfo buffInfo = BuffInfo.GetBuffInfo(10011, 1,this);
-                targetEntity.combatHeroEntity.BuffControl.AddBuff(CombatHeroEntity, buffInfo);
+                int odds = CombatCalculateTool.Instance.GetOdd(0, 100);
+                if (odds <= effectValue[2])
+                {
+                    BuffInfo buffInfo = BuffInfo.GetBuffInfo(10011, 1, this);
+                    targetEntity.combatHeroEntity.BuffControl.AddBuff(CombatHeroEntity, buffInfo);
+                }
             }
         }
     }

+ 9 - 6
Assets/Scripts/GameLogic/Combat/Skill/S1301.cs

@@ -60,15 +60,18 @@ namespace GameLogic.Combat.Skill
         {
             long v = CombatCalculateTool.Instance.GetVlaueRatioForLong(CombatHeroEntity.CurrCombatHeroInfo.attack.Value,
                 effectValue[1]);
-            CombatCalculateTool.Instance.Harm(CombatHeroEntity, targetEntity, v, AttType.Skill, triggerData,
+            HarmReturnInfo harmReturnInfo=   CombatCalculateTool.Instance.Harm(CombatHeroEntity, targetEntity, v, AttType.Skill, triggerData,
                 wuXingType,skillFeatures,
                 HarmType.Default);
-            
-            int odds= Random.Range(0, 100);
-            if (odds < effectValue[2])
+
+            if (harmReturnInfo.isHitHero)
             {
-                BuffInfo buffInfo = BuffInfo.GetBuffInfo(10031, 1,this);
-                targetEntity.combatHeroEntity.BuffControl.AddBuff(CombatHeroEntity, buffInfo);
+                int odds = Random.Range(0, 100);
+                if (odds < effectValue[2])
+                {
+                    BuffInfo buffInfo = BuffInfo.GetBuffInfo(10031, 1, this);
+                    targetEntity.combatHeroEntity.BuffControl.AddBuff(CombatHeroEntity, buffInfo);
+                }
             }
 
         }

+ 14 - 10
Assets/Scripts/GameLogic/Combat/Skill/S1401.cs

@@ -12,7 +12,7 @@ namespace GameLogic.Combat.Skill
     /// </summary>
     public class S1401 : SkillBasic
     {
-        private static int[] zdPosIndex = new int[] { 9, 8, 7, 6, 5, 4, 3, 2, 1 , 9};
+        private static int[] zdPosIndex = new int[] { 9, 8, 7, 6, 5, 4, 3, 2, 1, 9 };
 
         protected override void ProUseSkill()
         {
@@ -28,6 +28,7 @@ namespace GameLogic.Combat.Skill
                 ActivationTimeLineData("lieyanjian_zd", currTarget: currTarget,
                     customizePos: new Vector3[] { specialDotInfo.GetWorlPos() }, indexCount: i);
             }
+
             this.AddTriggerCallBack("lieyanjian_zd", ProDefaultTimeLineTrigger_ZD);
             ActivationTimeLineData("1401");
         }
@@ -39,17 +40,21 @@ namespace GameLogic.Combat.Skill
 
         protected void ProDefaultTimeLineTrigger_ZD(string groupName, CombatHeroHitPoint targetEntity,
             ITimelineFxLogic timelineFxLogic,
-            TriggerData triggerData,ISkillFeatures skillFeatures)
+            TriggerData triggerData, ISkillFeatures skillFeatures)
         {
             long v = CombatCalculateTool.Instance.GetVlaueRatioForLong(CombatHeroEntity.CurrCombatHeroInfo.attack.Value,
                 effectValue[1]);
-            CombatCalculateTool.Instance.Harm(CombatHeroEntity, targetEntity, v, AttType.Skill, triggerData, wuXingType,skillFeatures,
+            HarmReturnInfo harmReturnInfo = CombatCalculateTool.Instance.Harm(CombatHeroEntity, targetEntity, v,
+                AttType.Skill, triggerData, wuXingType, skillFeatures,
                 HarmType.Default);
-            int odds = CombatCalculateTool.Instance.GetOdd(0, 100);
-            if (odds <= effectValue[2])
+            if (harmReturnInfo.isHitHero)
             {
-                BuffInfo buffInfo = BuffInfo.GetBuffInfo(10051, 1,this);
-                targetEntity.combatHeroEntity.BuffControl.AddBuff(CombatHeroEntity, buffInfo);
+                int odds = CombatCalculateTool.Instance.GetOdd(0, 100);
+                if (odds <= effectValue[2])
+                {
+                    BuffInfo buffInfo = BuffInfo.GetBuffInfo(10051, 1, this);
+                    targetEntity.combatHeroEntity.BuffControl.AddBuff(CombatHeroEntity, buffInfo);
+                }
             }
 
             if (SelfSkillConfig.level >= 5) //每个烈焰剑将会对敌人照成爆燃,爆燃额外受到100%伤害
@@ -58,16 +63,15 @@ namespace GameLogic.Combat.Skill
                     CombatHeroEntity.CurrCombatHeroInfo.attack.Value,
                     effectValue[3]);
                 CombatCalculateTool.Instance.Harm(CombatHeroEntity, targetEntity, v2, AttType.Skill, triggerData,
-                    wuXingType,skillFeatures,
+                    wuXingType, skillFeatures,
                     HarmType.Default);
             }
         }
 
         protected override void ProDefaultTimeLineTrigger(string groupName, CombatHeroHitPoint targetEntity,
             ITimelineFxLogic timelineFxLogic,
-            TriggerData triggerData,ISkillFeatures skillFeatures)
+            TriggerData triggerData, ISkillFeatures skillFeatures)
         {
-           
         }
     }
 }

+ 15 - 10
Assets/Scripts/GameLogic/Combat/Skill/S1402.cs

@@ -28,7 +28,7 @@ namespace GameLogic.Combat.Skill
             for (int i = 0; i < effectValue[0]; i++)
             {
                 float x = CombatCalculateTool.Instance.GetOdd(-100, 100);
-                x = (x ) / 200;
+                x = (x) / 200;
                 Vector3 pos = new Vector3(x, 0.7f, -2f);
                 pos = CombatHeroEntity.GameObject.transform.TransformPoint(pos);
                 // SpecialDotInfo specialDotInfo = CombatHeroEntity.GetSpecialDotInfo(pos);
@@ -57,22 +57,27 @@ namespace GameLogic.Combat.Skill
 
             if (harmReturnInfo.isHitHero)
             {
+                if (SelfSkillConfig.level > 3)
+                {
+                    BuffInfo buffInfo = BuffInfo.GetBuffInfo(10051, 1, this); //试驾灼热
+                    targetEntity.combatHeroEntity.BuffControl.AddBuff(CombatHeroEntity, buffInfo);
+                }
+
                 if (SelfSkillConfig.level > 1)
                 {
-                    b_1010 b1010 = targetEntity.combatHeroEntity.BuffControl.GetBuffBasicForType<b_1010>();
+                    b_1005 b1010 = targetEntity.combatHeroEntity.BuffControl.GetBuffBasicForType<b_1005>();
                     if (b1010 != null)
                     {
-                        BuffInfo buffInfo = BuffInfo.GetBuffInfo(10061, effectValue[2], 1,this); //眩晕敌人
-                        targetEntity.combatHeroEntity.BuffControl.AddBuff(CombatHeroEntity, buffInfo);
+                        int odd = CombatCalculateTool.Instance.GetOdd(0, 100);
+                        int currOdd = (int)(b1010.buffCount * effectValue[2]);
+                        if (currOdd <= odd)
+                        {
+                            BuffInfo buffInfo = BuffInfo.GetBuffInfo(10061, effectValue[3], 1, this); //眩晕敌人
+                            targetEntity.combatHeroEntity.BuffControl.AddBuff(CombatHeroEntity, buffInfo);
+                        }
                     }
                 }
 
-                if (SelfSkillConfig.level > 3)
-                {
-                    BuffInfo buffInfo = BuffInfo.GetBuffInfo(10051, 1,this); //试驾灼热
-                    targetEntity.combatHeroEntity.BuffControl.AddBuff(CombatHeroEntity, buffInfo);
-                }
-
                 if (SelfSkillConfig.level > 5)
                 {
                     long v2 = CombatCalculateTool.Instance.GetVlaueRatioForLong(

+ 1 - 1
Assets/Scripts/GameLogic/Player/PlayerManager.cs

@@ -537,7 +537,7 @@ public class PlayerManager : Singleton<PlayerManager>
 
         int qiangDuLevelId = Mathf.CeilToInt(testHeroInfoConfig.level / 5f);
         HeroQiangDuAddConfig heroQiangDuAddConfig = ConfigComponent.Instance.Get<HeroQiangDuAddConfig>(qiangDuLevelId);
-        int index = Mathf.RoundToInt(heroQiangDuAddConfig.qiangDuZhi);
+        int index = Mathf.RoundToInt(heroQiangDuAddConfig.qiangDuZhi)-1;
         myHero.hp = (EncryptionLong)(myHero.hp.Value * (qiangDu[index] / 100f + 1));
         myHero.attack = (EncryptionLong)(myHero.attack.Value * (qiangDu[index] / 100f + 1));
         myHero.defense = (EncryptionLong)(myHero.defense.Value * (qiangDu[index] / 100f + 1));

BIN
Excel2Json/Excel/LevelBattle.xlsx


BIN
Excel2Json/Excel/数据验证.xlsx