From f9b6c39b4470f71d554ed38fdcbf2837e981c900 Mon Sep 17 00:00:00 2001 From: wangzhenxing <1545929779@qq.com> Date: Fri, 12 Jan 2024 11:41:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E7=A5=9E=E9=AD=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/GodSoul/GodSoulManager.lua | 87 ++++++++++--------- 1 file changed, 44 insertions(+), 43 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/GodSoul/GodSoulManager.lua b/Assets/ManagedResources/~Lua/Modules/GodSoul/GodSoulManager.lua index 5c204ac795..8950e56de2 100644 --- a/Assets/ManagedResources/~Lua/Modules/GodSoul/GodSoulManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/GodSoul/GodSoulManager.lua @@ -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