From 185b99823176e518e82f08543aecdab8a4d4c89e Mon Sep 17 00:00:00 2001 From: "DESKTOP-MMO982B\\User" <752966621@qq.com> Date: Fri, 3 Apr 2026 18:32:03 +0800 Subject: [PATCH] 1 --- .../~Lua/Modules/RatioNumber/RatioNumberManager.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/RatioNumber/RatioNumberManager.lua b/Assets/ManagedResources/~Lua/Modules/RatioNumber/RatioNumberManager.lua index abf2373668..3c77259706 100644 --- a/Assets/ManagedResources/~Lua/Modules/RatioNumber/RatioNumberManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/RatioNumber/RatioNumberManager.lua @@ -1,6 +1,6 @@ RatioNumberManager = {} local this = RatioNumberManager - +local specialConfig = ConfigManager.GetConfig(ConfigName.SpecialConfig) this.chapterId = 1 this.levelId = 1 this.chapterInfo = nil @@ -76,7 +76,10 @@ function RatioNumberManager.RestartGame() this.buildIds = this.chapterInfo.BuildID local buildInfo = ConfigManager.GetConfigData(ConfigName.CompareNumBuild,this.buildIds[1]) local playerInfo = ConfigManager.GetConfigData(ConfigName.CompareNumItem,buildInfo.Formula[1][1]) - this.curPlayerPower = playerInfo.CombatEffectiveness + --this.curPlayerPower = playerInfo.CombatEffectiveness + local oldWarPower = FormationManager.GetFormationPower(FormationTypeDef.FORMATION_NORMAL) + local rate = tonumber(specialConfig[194].Value) + this.curPlayerPower = playerInfo.CombatEffectiveness + math.floor(oldWarPower/rate) this.playerPower = this.curPlayerPower this.PlayerHj=0 this.curPlayerHj =0