TCX_LongZhu
DESKTOP-MMO982B\User 2026-04-03 18:32:03 +08:00
parent 8b2a116230
commit 185b998231
1 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,6 @@
RatioNumberManager = {} RatioNumberManager = {}
local this = RatioNumberManager local this = RatioNumberManager
local specialConfig = ConfigManager.GetConfig(ConfigName.SpecialConfig)
this.chapterId = 1 this.chapterId = 1
this.levelId = 1 this.levelId = 1
this.chapterInfo = nil this.chapterInfo = nil
@ -76,7 +76,10 @@ function RatioNumberManager.RestartGame()
this.buildIds = this.chapterInfo.BuildID this.buildIds = this.chapterInfo.BuildID
local buildInfo = ConfigManager.GetConfigData(ConfigName.CompareNumBuild,this.buildIds[1]) local buildInfo = ConfigManager.GetConfigData(ConfigName.CompareNumBuild,this.buildIds[1])
local playerInfo = ConfigManager.GetConfigData(ConfigName.CompareNumItem,buildInfo.Formula[1][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.playerPower = this.curPlayerPower
this.PlayerHj=0 this.PlayerHj=0
this.curPlayerHj =0 this.curPlayerHj =0