线上问题: 试炼节点显示立绘与招募得到的不一致 前端修改
parent
fc97424538
commit
24f6333726
|
@ -162,6 +162,7 @@ ConfigName = {
|
||||||
ThemeActivityTaskConfig = "ThemeActivityTaskConfig",
|
ThemeActivityTaskConfig = "ThemeActivityTaskConfig",
|
||||||
ExchangeRate = "ExchangeRate",
|
ExchangeRate = "ExchangeRate",
|
||||||
CustomEventConfig = "CustomEventConfig",
|
CustomEventConfig = "CustomEventConfig",
|
||||||
|
ExpeditionRecruitConfig = "ExpeditionRecruitConfig",
|
||||||
}
|
}
|
||||||
|
|
||||||
require "Framework/GameDataBase"
|
require "Framework/GameDataBase"
|
||||||
|
|
|
@ -61,16 +61,13 @@ function this:FormationAdapter()
|
||||||
this.power.text = monsterData.bossTeaminfo.totalForce
|
this.power.text = monsterData.bossTeaminfo.totalForce
|
||||||
local monsterCongig = {}
|
local monsterCongig = {}
|
||||||
if monsterData.bossTeaminfo.teamInfo and monsterData.bossTeaminfo.teamInfo > 0 then
|
if monsterData.bossTeaminfo.teamInfo and monsterData.bossTeaminfo.teamInfo > 0 then
|
||||||
local monsterGroup = ConfigManager.TryGetConfigData(ConfigName.MonsterGroup,monsterData.bossTeaminfo.teamInfo)
|
LogGreen("monsterData.bossTeaminfo.teamInfo "..monsterData.bossTeaminfo.teamInfo)
|
||||||
if monsterGroup and monsterGroup.Contents and #monsterGroup.Contents > 0 then
|
local monsterGroup = ConfigManager.TryGetConfigDataByKey(ConfigName.ExpeditionRecruitConfig,"HeroId",monsterData.bossTeaminfo.teamInfo)--ConfigManager.TryGetConfigData(ConfigName.MonsterGroup,monsterData.bossTeaminfo.teamInfo)
|
||||||
if monsterGroup.Contents[1] and monsterGroup.Contents[1][1] then
|
if monsterGroup and monsterGroup.getHero then
|
||||||
monsterCongig = ConfigManager.TryGetConfigData(ConfigName.MonsterConfig,monsterGroup.Contents[1][1])
|
monsterCongig = ConfigManager.TryGetConfigData(ConfigName.HeroConfig,monsterGroup.getHero)
|
||||||
end
|
|
||||||
end
|
end
|
||||||
if not monsterCongig then return end
|
if not monsterCongig then return end
|
||||||
local demonId = monsterCongig.MonsterId
|
local heroConfig = monsterCongig
|
||||||
--monsterData.bossTeaminfo.hero[i].remainHp monsterCongig.Level
|
|
||||||
local heroConfig = ConfigManager.GetConfigData(ConfigName.HeroConfig, demonId)
|
|
||||||
this.LiveName = GetResourcePath(heroConfig.Live)
|
this.LiveName = GetResourcePath(heroConfig.Live)
|
||||||
this.LiveGO = poolManager:LoadLive(this.LiveName, this.live2dRoot.transform,
|
this.LiveGO = poolManager:LoadLive(this.LiveName, this.live2dRoot.transform,
|
||||||
Vector3.one * heroConfig.Scale, Vector3.New(heroConfig.Position[1],heroConfig.Position[2],0))
|
Vector3.one * heroConfig.Scale, Vector3.New(heroConfig.Position[1],heroConfig.Position[2],0))
|
||||||
|
|
Loading…
Reference in New Issue