Merge branch 'TCX_LongZhu' of http://192.168.1.21:3000/root/miduo_client into TCX_LongZhu

TCX_LongZhu
zhangjiannan 2026-04-03 21:38:09 +08:00
commit 2b07631f2c
1 changed files with 5 additions and 2 deletions

View File

@ -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