TCX_LongZhu
parent
8b2a116230
commit
185b998231
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue