添加战力
parent
7647b0057e
commit
da218cfc3c
|
|
@ -516,9 +516,8 @@ Hero_Prop_Func = {
|
|||
|
||||
[Hero_Prop_Type.TailsManSou] = function(_heroData)
|
||||
local propList, conPropList, teamPropList, conTeamPropList, dePropList
|
||||
local SingleProVal = TailsManSoulManager.GetTailsmanPassivePower()
|
||||
if SingleProVal and #SingleProVal > 0 then --talismanConFig.OpenSkillRules and #talismanConFig.OpenSkillRules > 0 then
|
||||
--单体加成 --单体等级限制加成 --团体加成 --减乘
|
||||
local SingleProVal = TailsManSoulManager.GetTailsmanPassivePower1(_heroData)
|
||||
if SingleProVal and #SingleProVal > 0 then
|
||||
propList, conPropList, teamPropList, conTeamPropList, dePropList = PassiveListToPropList(SingleProVal)
|
||||
end
|
||||
return propList, conPropList, teamPropList, conTeamPropList, dePropList
|
||||
|
|
|
|||
|
|
@ -6084,12 +6084,16 @@ function NetManager.FaBaoSoulUpLvRequest(id,lv, func)
|
|||
data.level = lv
|
||||
local msg = data:SerializeToString()
|
||||
Network:SendMessageWithCallBack(MessageTypeProto_pb.FA_BAO_SOUL_UPLV_REQUEST, MessageTypeProto_pb.FA_BAO_SOUL_UPLV_RESPONSE, msg, function(buffer)
|
||||
NetManager.RequestUserForceChange(FormationTypeDef.FORMATION_NORMAL)
|
||||
TailsManSoulManager.SetTailsmanLvById(id,lv)
|
||||
CheckRedPointStatus(RedPointType.tailsmanSoul_gold)
|
||||
CheckRedPointStatus(RedPointType.tailsmanSoul_red)
|
||||
CheckRedPointStatus(RedPointType.tailsmanSoul_whiteGold)
|
||||
HeroPropManager.SetFuncPropDirty(Func_Prop_Type.TailsManSou)
|
||||
NetManager.RequestUserForceChange(FormationTypeDef.FORMATION_NORMAL)
|
||||
local herodata = HeroManager.GetAllHeroList()
|
||||
for k,v in pairs(herodata) do
|
||||
HeroPropManager.SetDirtyByType(v.dynamicId, Hero_Prop_Type.TailsManSou)
|
||||
end
|
||||
if func then
|
||||
func(msg)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ local trumpBook = ConfigManager.GetConfig(ConfigName.TrumpBook)
|
|||
local Trump = ConfigManager.GetConfig(ConfigName.Trump)
|
||||
local TrumpLevelupPool = ConfigManager.GetConfig(ConfigName.TrumpLevelupPool)
|
||||
local passiveSkillConfig = ConfigManager.GetConfig(ConfigName.XiuXianSkillConfig)
|
||||
local heroConfig = ConfigManager.GetConfig(ConfigName.HeroConfig)
|
||||
this.TailsmanList = {}
|
||||
function this.Initialize()
|
||||
end
|
||||
|
|
@ -63,6 +64,10 @@ function this.SetTailsmanLv(data)
|
|||
this.SetTailsmanLvById(data[i].id,data[i].level)
|
||||
end
|
||||
HeroPropManager.SetFuncPropDirty(Func_Prop_Type.TailsManSou)
|
||||
local herodata = HeroManager.GetAllHeroList()
|
||||
for k,v in pairs(herodata) do
|
||||
HeroPropManager.SetDirtyByType(v.dynamicId, Hero_Prop_Type.TailsManSou)
|
||||
end
|
||||
end
|
||||
|
||||
--根据法宝id 获取设置等级
|
||||
|
|
@ -100,7 +105,7 @@ function this.GetTailsmanPassivePower()
|
|||
local data = {}
|
||||
for i = 1,#datas do
|
||||
for j = 1,#datas[i].skillConfig do
|
||||
if datas[i].lv <= datas[i].skillConfig[j][1] then
|
||||
if datas[i].lv >= datas[i].skillConfig[j][1] then
|
||||
table.insert(data,datas[i].skillConfig[j][2])
|
||||
end
|
||||
end
|
||||
|
|
@ -108,6 +113,27 @@ function this.GetTailsmanPassivePower()
|
|||
return data
|
||||
end
|
||||
|
||||
function this.GetTailsmanPassivePower1(_heroData)
|
||||
local idList = {}
|
||||
local SingleProVal = this.GetTailsmanPassivePower()
|
||||
if SingleProVal and #SingleProVal > 0 then --talismanConFig.OpenSkillRules and #talismanConFig.OpenSkillRules > 0 then
|
||||
for i = 1,#SingleProVal do
|
||||
if passiveSkillConfig[SingleProVal[i]] then
|
||||
local config = passiveSkillConfig[SingleProVal[i]]
|
||||
if config.FitList[1] == 0 or
|
||||
(config.FitList[1] == 1 and heroConfig[_heroData.tId].PropertyName == config.FitList[2]) or
|
||||
(config.FitList[1] == 2 and heroConfig[_heroData.tId].Profession == config.FitList[2]) then
|
||||
for i = 1,#config.SkillId do
|
||||
table.insert(idList,config.SkillId[i])
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
return idList
|
||||
end
|
||||
|
||||
|
||||
function this.CheckRedData(red)
|
||||
local list = {}
|
||||
if red == RedPointType.tailsmanSoul_gold then
|
||||
|
|
|
|||
Loading…
Reference in New Issue