xiyou_sanguo
PC-202302260912\Administrator 2026-03-13 12:17:34 +08:00
parent 89036c67f8
commit f067670d09
1 changed files with 4 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
@ -87,7 +87,9 @@ 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
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