注释神魂

onepiece_demo_arena
wangzhenxing 2024-01-12 11:41:17 +08:00
parent 242daceb46
commit f9b6c39b44
1 changed files with 44 additions and 43 deletions

View File

@ -15,49 +15,50 @@ function this.InitializeTableData()
if not this.GodSoulTableData[v.Id] then
this.GodSoulTableData[v.Id] = {}
end
if not v.Soul then
else
for i = 1,#v.Soul do
if not this.GodSoulTableData[v.Id][v.Soul[i][1]] then
this.GodSoulTableData[v.Id][v.Soul[i][1]] = {}
for j = 1,#v.SoulSkill do
if v.Soul[i][1] == v.SoulSkill[j][1] then
this.GodSoulTableData[v.Id][v.Soul[i][1]].skill = GetSkillConfigDesc(passiveSkillConfig[v.SoulSkill[j][2]])
break
end
end
end
local data = {}
data.index = v.Soul[i][2]
data.num = 1 --v.Soul[i][4]
local config = heroRankupGroup[v.Soul[i][3]]
if config.Issame == 1 then
data.id = v.Id
data.property = 0
data.profession = 0
elseif config.IsId > 0 then
data.id = config.IsId
data.property = 0
data.profession = 0
else
data.id = 0
if config.IsSameClan == 1 then
data.property = v.PropertyName
else
data.property = 0
end
if config.IsSameJob == 1 then
data.profession = v.Profession
else
data.profession = 0
end
end
data.star = config.StarLimit
for j = 1,v.Soul[i][4] do
table.insert(this.GodSoulTableData[v.Id][v.Soul[i][1]],data)
end
end
end
--屏蔽了神魂功能,这段代码先注释掉 2021/01/12
-- if not v.Soul then
-- else
-- for i = 1,#v.Soul do
-- if not this.GodSoulTableData[v.Id][v.Soul[i][1]] then
-- this.GodSoulTableData[v.Id][v.Soul[i][1]] = {}
-- for j = 1,#v.SoulSkill do
-- if v.Soul[i][1] == v.SoulSkill[j][1] then
-- this.GodSoulTableData[v.Id][v.Soul[i][1]].skill = GetSkillConfigDesc(passiveSkillConfig[v.SoulSkill[j][2]])
-- break
-- end
-- end
-- end
-- local data = {}
-- data.index = v.Soul[i][2]
-- data.num = 1 --v.Soul[i][4]
-- local config = heroRankupGroup[v.Soul[i][3]]
-- if config.Issame == 1 then
-- data.id = v.Id
-- data.property = 0
-- data.profession = 0
-- elseif config.IsId > 0 then
-- data.id = config.IsId
-- data.property = 0
-- data.profession = 0
-- else
-- data.id = 0
-- if config.IsSameClan == 1 then
-- data.property = v.PropertyName
-- else
-- data.property = 0
-- end
-- if config.IsSameJob == 1 then
-- data.profession = v.Profession
-- else
-- data.profession = 0
-- end
-- end
-- data.star = config.StarLimit
-- for j = 1,v.Soul[i][4] do
-- table.insert(this.GodSoulTableData[v.Id][v.Soul[i][1]],data)
-- end
-- end
-- end
end
end