【七界试炼】提交
parent
35e6c617fb
commit
c9305b4247
|
|
@ -11,8 +11,8 @@ local PassiveSkillConfig = ConfigManager.GetConfig(ConfigName.PassiveSkillConfig
|
||||||
local PassiveSkillLogicConfig = ConfigManager.GetConfig(ConfigName.PassiveSkillLogicConfig)
|
local PassiveSkillLogicConfig = ConfigManager.GetConfig(ConfigName.PassiveSkillLogicConfig)
|
||||||
|
|
||||||
function this.Initialize()
|
function this.Initialize()
|
||||||
this.curLevelId = 3004
|
this.curLevelId = 1001
|
||||||
this.curRank = 999
|
this.curRank = 1
|
||||||
this.curScore = 1
|
this.curScore = 1
|
||||||
this.QijieType = 1
|
this.QijieType = 1
|
||||||
this.curProgress = 0
|
this.curProgress = 0
|
||||||
|
|
@ -39,7 +39,7 @@ function this.InitTreasureData()
|
||||||
data.Cost = configInfo.Cost
|
data.Cost = configInfo.Cost
|
||||||
-- data.ConditionValue[1][2] = configInfo.ConditionValue[1][2]
|
-- data.ConditionValue[1][2] = configInfo.ConditionValue[1][2]
|
||||||
data.Desc = configInfo.Desc
|
data.Desc = configInfo.Desc
|
||||||
data.Buff = configInfo.Buff
|
data.Buff = configInfo.Buff[1]
|
||||||
data.state = 2 --0未激活,1已激活,2未购买
|
data.state = 2 --0未激活,1已激活,2未购买
|
||||||
this.treasureList[data.Id] = data
|
this.treasureList[data.Id] = data
|
||||||
end
|
end
|
||||||
|
|
@ -249,12 +249,12 @@ function this.GetTreasureEffect(treasureList)
|
||||||
-- LogGreen("3,tData.AttriType:"..tostring(tData.AttriType))
|
-- LogGreen("3,tData.AttriType:"..tostring(tData.AttriType))
|
||||||
attriList1[tData.AttriType].ValueList = {}
|
attriList1[tData.AttriType].ValueList = {}
|
||||||
end
|
end
|
||||||
-- LogGreen("4,tData.Buff:"..tostring(tData.Buff))
|
-- LogGreen("4,tData.Buff[1]:"..tostring(tData.Buff[1]))
|
||||||
table.insert(attriList1[tData.AttriType].ValueList,tData)
|
table.insert(attriList1[tData.AttriType].ValueList,tData)
|
||||||
end
|
end
|
||||||
for k,v in pairs(attriList1) do
|
for k,v in pairs(attriList1) do
|
||||||
for m,n in pairs(v.ValueList) do
|
for m,n in pairs(v.ValueList) do
|
||||||
local buffData = PassiveSkillLogicConfig[n.Buff]
|
local buffData = PassiveSkillLogicConfig[n.Buff[1]]
|
||||||
if not attriList2[k] then
|
if not attriList2[k] then
|
||||||
attriList2[k] = {}
|
attriList2[k] = {}
|
||||||
end
|
end
|
||||||
|
|
@ -263,12 +263,12 @@ function this.GetTreasureEffect(treasureList)
|
||||||
if not attriList2[k][buffData.Value[1]] then
|
if not attriList2[k][buffData.Value[1]] then
|
||||||
attriList2[k][buffData.Value[1]] = {}
|
attriList2[k][buffData.Value[1]] = {}
|
||||||
end
|
end
|
||||||
-- LogYellow("Desc:"..tostring(PassiveSkillConfig[n.Buff].Desc))
|
-- LogYellow("Desc:"..tostring(PassiveSkillConfig[n.Buff[1]].Desc))
|
||||||
attriList2[k][buffData.Value[1]].Desc = PassiveSkillConfig[n.Buff].Desc
|
attriList2[k][buffData.Value[1]].Desc = PassiveSkillConfig[n.Buff[1]].Desc
|
||||||
if attriList2[k][buffData.Value[1]].Value then
|
if attriList2[k][buffData.Value[1]].Value then
|
||||||
attriList2[k][buffData.Value[1]].Value = attriList2[k][buffData.Value[1]].Value + tonumber(PassiveSkillConfig[n.Buff].DescValue[1])/100
|
attriList2[k][buffData.Value[1]].Value = attriList2[k][buffData.Value[1]].Value + tonumber(PassiveSkillConfig[n.Buff[1]].DescValue[1])/100
|
||||||
else
|
else
|
||||||
attriList2[k][buffData.Value[1]].Value = tonumber(PassiveSkillConfig[n.Buff].DescValue[1])/100
|
attriList2[k][buffData.Value[1]].Value = tonumber(PassiveSkillConfig[n.Buff[1]].DescValue[1])/100
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ end
|
||||||
-- 编队数据匹配
|
-- 编队数据匹配
|
||||||
function QiJieShiLianMonsterInfo:FormationAdapter()
|
function QiJieShiLianMonsterInfo:FormationAdapter()
|
||||||
self.titleText.text = string.format("%s·%s层",self.configData.Chapter,self.configData.Stage)
|
self.titleText.text = string.format("%s·%s层",self.configData.Chapter,self.configData.Stage)
|
||||||
self.power.text = 999999
|
self.power.text = self.configData.Puwer
|
||||||
local bossTeaminfo = monsterGroup[self.configData.MonsterGroup].Contents[1]
|
local bossTeaminfo = monsterGroup[self.configData.MonsterGroup].Contents[1]
|
||||||
for i = 1, #heroListGo do
|
for i = 1, #heroListGo do
|
||||||
if (bossTeaminfo[i]) and bossTeaminfo[i] > 0 then
|
if (bossTeaminfo[i]) and bossTeaminfo[i] > 0 then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue