fix bug
This commit is contained in:
parent
25ebcf8a91
commit
2740e23e9b
@ -461,6 +461,18 @@ local attr = {
|
||||
["name"]="attr_boss_dmg",
|
||||
["power"]=50,
|
||||
["is_percent"]=1
|
||||
},
|
||||
[83]={
|
||||
["id"]=83,
|
||||
["name"]="attr_normal_hurtp",
|
||||
["power"]=50,
|
||||
["is_percent"]=1
|
||||
},
|
||||
[84]={
|
||||
["id"]=84,
|
||||
["name"]="attr_skill_hurtp",
|
||||
["power"]=50,
|
||||
["is_percent"]=1
|
||||
}
|
||||
}
|
||||
local keys = {
|
||||
@ -546,12 +558,14 @@ local keys = {
|
||||
["dmgdec"]=attr[79],
|
||||
["attr_hpp_all"]=attr[80],
|
||||
["attr_monster_dmg"]=attr[81],
|
||||
["attr_boss_dmg"]=attr[82]
|
||||
["attr_boss_dmg"]=attr[82],
|
||||
["attr_normal_hurtp"]=attr[83],
|
||||
["attr_skill_hurtp"]=attr[84]
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=attr,
|
||||
keys=keys,
|
||||
count=82
|
||||
count=84
|
||||
}
|
||||
return config
|
||||
@ -398,6 +398,26 @@ local attr = {
|
||||
["id"]=80,
|
||||
["desc"]="全体生命+{0}%",
|
||||
["name"]="attr_hpp_all"
|
||||
},
|
||||
[81]={
|
||||
["id"]=81,
|
||||
["desc"]="对普通怪物伤害+{0}%",
|
||||
["name"]="attr_monster_dmg"
|
||||
},
|
||||
[82]={
|
||||
["id"]=82,
|
||||
["desc"]="对首领怪物伤害+{0}%",
|
||||
["name"]="attr_boss_dmg"
|
||||
},
|
||||
[83]={
|
||||
["id"]=83,
|
||||
["desc"]="普攻伤害+{0}%",
|
||||
["name"]="attr_normal_hurtp"
|
||||
},
|
||||
[84]={
|
||||
["id"]=84,
|
||||
["desc"]="技能伤害+{0}%",
|
||||
["name"]="attr_skill_hurtp"
|
||||
}
|
||||
}
|
||||
local keys = {
|
||||
@ -481,12 +501,16 @@ local keys = {
|
||||
["attr_normal_hurt"]=attr[77],
|
||||
["attr_skill_hurt"]=attr[78],
|
||||
["dmgdec"]=attr[79],
|
||||
["attr_hpp_all"]=attr[80]
|
||||
["attr_hpp_all"]=attr[80],
|
||||
["attr_monster_dmg"]=attr[81],
|
||||
["attr_boss_dmg"]=attr[82],
|
||||
["attr_normal_hurtp"]=attr[83],
|
||||
["attr_skill_hurtp"]=attr[84]
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=attr,
|
||||
keys=keys,
|
||||
count=80
|
||||
count=84
|
||||
}
|
||||
return config
|
||||
@ -318,6 +318,22 @@ local attr = {
|
||||
[80]={
|
||||
["id"]=80,
|
||||
["name"]="attr_hpp_all"
|
||||
},
|
||||
[81]={
|
||||
["id"]=81,
|
||||
["name"]="attr_monster_dmg"
|
||||
},
|
||||
[82]={
|
||||
["id"]=82,
|
||||
["name"]="attr_boss_dmg"
|
||||
},
|
||||
[83]={
|
||||
["id"]=83,
|
||||
["name"]="attr_normal_hurtp"
|
||||
},
|
||||
[84]={
|
||||
["id"]=84,
|
||||
["name"]="attr_skill_hurtp"
|
||||
}
|
||||
}
|
||||
local keys = {
|
||||
@ -401,12 +417,16 @@ local keys = {
|
||||
["attr_normal_hurt"]=attr[77],
|
||||
["attr_skill_hurt"]=attr[78],
|
||||
["dmgdec"]=attr[79],
|
||||
["attr_hpp_all"]=attr[80]
|
||||
["attr_hpp_all"]=attr[80],
|
||||
["attr_monster_dmg"]=attr[81],
|
||||
["attr_boss_dmg"]=attr[82],
|
||||
["attr_normal_hurtp"]=attr[83],
|
||||
["attr_skill_hurtp"]=attr[84]
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=attr,
|
||||
keys=keys,
|
||||
count=80
|
||||
count=84
|
||||
}
|
||||
return config
|
||||
@ -374,6 +374,22 @@ local attr = {
|
||||
[80]={
|
||||
["id"]=80,
|
||||
["name"]="attr_hpp_all"
|
||||
},
|
||||
[81]={
|
||||
["id"]=81,
|
||||
["name"]="attr_monster_dmg"
|
||||
},
|
||||
[82]={
|
||||
["id"]=82,
|
||||
["name"]="attr_boss_dmg"
|
||||
},
|
||||
[83]={
|
||||
["id"]=83,
|
||||
["name"]="attr_normal_hurtp"
|
||||
},
|
||||
[84]={
|
||||
["id"]=84,
|
||||
["name"]="attr_skill_hurtp"
|
||||
}
|
||||
}
|
||||
local keys = {
|
||||
@ -457,12 +473,16 @@ local keys = {
|
||||
["attr_normal_hurt"]=attr[77],
|
||||
["attr_skill_hurt"]=attr[78],
|
||||
["dmgdec"]=attr[79],
|
||||
["attr_hpp_all"]=attr[80]
|
||||
["attr_hpp_all"]=attr[80],
|
||||
["attr_monster_dmg"]=attr[81],
|
||||
["attr_boss_dmg"]=attr[82],
|
||||
["attr_normal_hurtp"]=attr[83],
|
||||
["attr_skill_hurtp"]=attr[84]
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=attr,
|
||||
keys=keys,
|
||||
count=80
|
||||
count=84
|
||||
}
|
||||
return config
|
||||
@ -374,6 +374,22 @@ local attr = {
|
||||
[80]={
|
||||
["id"]=80,
|
||||
["name"]="attr_hpp_all"
|
||||
},
|
||||
[81]={
|
||||
["id"]=81,
|
||||
["name"]="attr_monster_dmg"
|
||||
},
|
||||
[82]={
|
||||
["id"]=82,
|
||||
["name"]="attr_boss_dmg"
|
||||
},
|
||||
[83]={
|
||||
["id"]=83,
|
||||
["name"]="attr_normal_hurtp"
|
||||
},
|
||||
[84]={
|
||||
["id"]=84,
|
||||
["name"]="attr_skill_hurtp"
|
||||
}
|
||||
}
|
||||
local keys = {
|
||||
@ -457,12 +473,16 @@ local keys = {
|
||||
["attr_normal_hurt"]=attr[77],
|
||||
["attr_skill_hurt"]=attr[78],
|
||||
["dmgdec"]=attr[79],
|
||||
["attr_hpp_all"]=attr[80]
|
||||
["attr_hpp_all"]=attr[80],
|
||||
["attr_monster_dmg"]=attr[81],
|
||||
["attr_boss_dmg"]=attr[82],
|
||||
["attr_normal_hurtp"]=attr[83],
|
||||
["attr_skill_hurtp"]=attr[84]
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=attr,
|
||||
keys=keys,
|
||||
count=80
|
||||
count=84
|
||||
}
|
||||
return config
|
||||
@ -318,6 +318,22 @@ local attr = {
|
||||
[80]={
|
||||
["id"]=80,
|
||||
["name"]="attr_hpp_all"
|
||||
},
|
||||
[81]={
|
||||
["id"]=81,
|
||||
["name"]="attr_monster_dmg"
|
||||
},
|
||||
[82]={
|
||||
["id"]=82,
|
||||
["name"]="attr_boss_dmg"
|
||||
},
|
||||
[83]={
|
||||
["id"]=83,
|
||||
["name"]="attr_normal_hurtp"
|
||||
},
|
||||
[84]={
|
||||
["id"]=84,
|
||||
["name"]="attr_skill_hurtp"
|
||||
}
|
||||
}
|
||||
local keys = {
|
||||
@ -401,12 +417,16 @@ local keys = {
|
||||
["attr_normal_hurt"]=attr[77],
|
||||
["attr_skill_hurt"]=attr[78],
|
||||
["dmgdec"]=attr[79],
|
||||
["attr_hpp_all"]=attr[80]
|
||||
["attr_hpp_all"]=attr[80],
|
||||
["attr_monster_dmg"]=attr[81],
|
||||
["attr_boss_dmg"]=attr[82],
|
||||
["attr_normal_hurtp"]=attr[83],
|
||||
["attr_skill_hurtp"]=attr[84]
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=attr,
|
||||
keys=keys,
|
||||
count=80
|
||||
count=84
|
||||
}
|
||||
return config
|
||||
@ -374,6 +374,22 @@ local attr = {
|
||||
[80]={
|
||||
["id"]=80,
|
||||
["name"]="attr_hpp_all"
|
||||
},
|
||||
[81]={
|
||||
["id"]=81,
|
||||
["name"]="attr_monster_dmg"
|
||||
},
|
||||
[82]={
|
||||
["id"]=82,
|
||||
["name"]="attr_boss_dmg"
|
||||
},
|
||||
[83]={
|
||||
["id"]=83,
|
||||
["name"]="attr_normal_hurtp"
|
||||
},
|
||||
[84]={
|
||||
["id"]=84,
|
||||
["name"]="attr_skill_hurtp"
|
||||
}
|
||||
}
|
||||
local keys = {
|
||||
@ -457,12 +473,16 @@ local keys = {
|
||||
["attr_normal_hurt"]=attr[77],
|
||||
["attr_skill_hurt"]=attr[78],
|
||||
["dmgdec"]=attr[79],
|
||||
["attr_hpp_all"]=attr[80]
|
||||
["attr_hpp_all"]=attr[80],
|
||||
["attr_monster_dmg"]=attr[81],
|
||||
["attr_boss_dmg"]=attr[82],
|
||||
["attr_normal_hurtp"]=attr[83],
|
||||
["attr_skill_hurtp"]=attr[84]
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=attr,
|
||||
keys=keys,
|
||||
count=80
|
||||
count=84
|
||||
}
|
||||
return config
|
||||
@ -374,6 +374,22 @@ local attr = {
|
||||
[80]={
|
||||
["id"]=80,
|
||||
["name"]="attr_hpp_all"
|
||||
},
|
||||
[81]={
|
||||
["id"]=81,
|
||||
["name"]="attr_monster_dmg"
|
||||
},
|
||||
[82]={
|
||||
["id"]=82,
|
||||
["name"]="attr_boss_dmg"
|
||||
},
|
||||
[83]={
|
||||
["id"]=83,
|
||||
["name"]="attr_normal_hurtp"
|
||||
},
|
||||
[84]={
|
||||
["id"]=84,
|
||||
["name"]="attr_skill_hurtp"
|
||||
}
|
||||
}
|
||||
local keys = {
|
||||
@ -457,12 +473,16 @@ local keys = {
|
||||
["attr_normal_hurt"]=attr[77],
|
||||
["attr_skill_hurt"]=attr[78],
|
||||
["dmgdec"]=attr[79],
|
||||
["attr_hpp_all"]=attr[80]
|
||||
["attr_hpp_all"]=attr[80],
|
||||
["attr_monster_dmg"]=attr[81],
|
||||
["attr_boss_dmg"]=attr[82],
|
||||
["attr_normal_hurtp"]=attr[83],
|
||||
["attr_skill_hurtp"]=attr[84]
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=attr,
|
||||
keys=keys,
|
||||
count=80
|
||||
count=84
|
||||
}
|
||||
return config
|
||||
@ -374,6 +374,22 @@ local attr = {
|
||||
[80]={
|
||||
["id"]=80,
|
||||
["name"]="attr_hpp_all"
|
||||
},
|
||||
[81]={
|
||||
["id"]=81,
|
||||
["name"]="attr_monster_dmg"
|
||||
},
|
||||
[82]={
|
||||
["id"]=82,
|
||||
["name"]="attr_boss_dmg"
|
||||
},
|
||||
[83]={
|
||||
["id"]=83,
|
||||
["name"]="attr_normal_hurtp"
|
||||
},
|
||||
[84]={
|
||||
["id"]=84,
|
||||
["name"]="attr_skill_hurtp"
|
||||
}
|
||||
}
|
||||
local keys = {
|
||||
@ -457,12 +473,16 @@ local keys = {
|
||||
["attr_normal_hurt"]=attr[77],
|
||||
["attr_skill_hurt"]=attr[78],
|
||||
["dmgdec"]=attr[79],
|
||||
["attr_hpp_all"]=attr[80]
|
||||
["attr_hpp_all"]=attr[80],
|
||||
["attr_monster_dmg"]=attr[81],
|
||||
["attr_boss_dmg"]=attr[82],
|
||||
["attr_normal_hurtp"]=attr[83],
|
||||
["attr_skill_hurtp"]=attr[84]
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=attr,
|
||||
keys=keys,
|
||||
count=80
|
||||
count=84
|
||||
}
|
||||
return config
|
||||
@ -374,6 +374,22 @@ local attr = {
|
||||
[80]={
|
||||
["id"]=80,
|
||||
["name"]="attr_hpp_all"
|
||||
},
|
||||
[81]={
|
||||
["id"]=81,
|
||||
["name"]="attr_monster_dmg"
|
||||
},
|
||||
[82]={
|
||||
["id"]=82,
|
||||
["name"]="attr_boss_dmg"
|
||||
},
|
||||
[83]={
|
||||
["id"]=83,
|
||||
["name"]="attr_normal_hurtp"
|
||||
},
|
||||
[84]={
|
||||
["id"]=84,
|
||||
["name"]="attr_skill_hurtp"
|
||||
}
|
||||
}
|
||||
local keys = {
|
||||
@ -457,12 +473,16 @@ local keys = {
|
||||
["attr_normal_hurt"]=attr[77],
|
||||
["attr_skill_hurt"]=attr[78],
|
||||
["dmgdec"]=attr[79],
|
||||
["attr_hpp_all"]=attr[80]
|
||||
["attr_hpp_all"]=attr[80],
|
||||
["attr_monster_dmg"]=attr[81],
|
||||
["attr_boss_dmg"]=attr[82],
|
||||
["attr_normal_hurtp"]=attr[83],
|
||||
["attr_skill_hurtp"]=attr[84]
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=attr,
|
||||
keys=keys,
|
||||
count=80
|
||||
count=84
|
||||
}
|
||||
return config
|
||||
@ -318,6 +318,22 @@ local attr = {
|
||||
[80]={
|
||||
["id"]=80,
|
||||
["name"]="attr_hpp_all"
|
||||
},
|
||||
[81]={
|
||||
["id"]=81,
|
||||
["name"]="attr_monster_dmg"
|
||||
},
|
||||
[82]={
|
||||
["id"]=82,
|
||||
["name"]="attr_boss_dmg"
|
||||
},
|
||||
[83]={
|
||||
["id"]=83,
|
||||
["name"]="attr_normal_hurtp"
|
||||
},
|
||||
[84]={
|
||||
["id"]=84,
|
||||
["name"]="attr_skill_hurtp"
|
||||
}
|
||||
}
|
||||
local keys = {
|
||||
@ -401,12 +417,16 @@ local keys = {
|
||||
["attr_normal_hurt"]=attr[77],
|
||||
["attr_skill_hurt"]=attr[78],
|
||||
["dmgdec"]=attr[79],
|
||||
["attr_hpp_all"]=attr[80]
|
||||
["attr_hpp_all"]=attr[80],
|
||||
["attr_monster_dmg"]=attr[81],
|
||||
["attr_boss_dmg"]=attr[82],
|
||||
["attr_normal_hurtp"]=attr[83],
|
||||
["attr_skill_hurtp"]=attr[84]
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=attr,
|
||||
keys=keys,
|
||||
count=80
|
||||
count=84
|
||||
}
|
||||
return config
|
||||
@ -374,6 +374,22 @@ local attr = {
|
||||
[80]={
|
||||
["id"]=80,
|
||||
["name"]="attr_hpp_all"
|
||||
},
|
||||
[81]={
|
||||
["id"]=81,
|
||||
["name"]="attr_monster_dmg"
|
||||
},
|
||||
[82]={
|
||||
["id"]=82,
|
||||
["name"]="attr_boss_dmg"
|
||||
},
|
||||
[83]={
|
||||
["id"]=83,
|
||||
["name"]="attr_normal_hurtp"
|
||||
},
|
||||
[84]={
|
||||
["id"]=84,
|
||||
["name"]="attr_skill_hurtp"
|
||||
}
|
||||
}
|
||||
local keys = {
|
||||
@ -457,12 +473,16 @@ local keys = {
|
||||
["attr_normal_hurt"]=attr[77],
|
||||
["attr_skill_hurt"]=attr[78],
|
||||
["dmgdec"]=attr[79],
|
||||
["attr_hpp_all"]=attr[80]
|
||||
["attr_hpp_all"]=attr[80],
|
||||
["attr_monster_dmg"]=attr[81],
|
||||
["attr_boss_dmg"]=attr[82],
|
||||
["attr_normal_hurtp"]=attr[83],
|
||||
["attr_skill_hurtp"]=attr[84]
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=attr,
|
||||
keys=keys,
|
||||
count=80
|
||||
count=84
|
||||
}
|
||||
return config
|
||||
@ -374,6 +374,22 @@ local attr = {
|
||||
[80]={
|
||||
["id"]=80,
|
||||
["name"]="attr_hpp_all"
|
||||
},
|
||||
[81]={
|
||||
["id"]=81,
|
||||
["name"]="attr_monster_dmg"
|
||||
},
|
||||
[82]={
|
||||
["id"]=82,
|
||||
["name"]="attr_boss_dmg"
|
||||
},
|
||||
[83]={
|
||||
["id"]=83,
|
||||
["name"]="attr_normal_hurtp"
|
||||
},
|
||||
[84]={
|
||||
["id"]=84,
|
||||
["name"]="attr_skill_hurtp"
|
||||
}
|
||||
}
|
||||
local keys = {
|
||||
@ -457,12 +473,16 @@ local keys = {
|
||||
["attr_normal_hurt"]=attr[77],
|
||||
["attr_skill_hurt"]=attr[78],
|
||||
["dmgdec"]=attr[79],
|
||||
["attr_hpp_all"]=attr[80]
|
||||
["attr_hpp_all"]=attr[80],
|
||||
["attr_monster_dmg"]=attr[81],
|
||||
["attr_boss_dmg"]=attr[82],
|
||||
["attr_normal_hurtp"]=attr[83],
|
||||
["attr_skill_hurtp"]=attr[84]
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=attr,
|
||||
keys=keys,
|
||||
count=80
|
||||
count=84
|
||||
}
|
||||
return config
|
||||
@ -374,6 +374,22 @@ local attr = {
|
||||
[80]={
|
||||
["id"]=80,
|
||||
["name"]="attr_hpp_all"
|
||||
},
|
||||
[81]={
|
||||
["id"]=81,
|
||||
["name"]="attr_monster_dmg"
|
||||
},
|
||||
[82]={
|
||||
["id"]=82,
|
||||
["name"]="attr_boss_dmg"
|
||||
},
|
||||
[83]={
|
||||
["id"]=83,
|
||||
["name"]="attr_normal_hurtp"
|
||||
},
|
||||
[84]={
|
||||
["id"]=84,
|
||||
["name"]="attr_skill_hurtp"
|
||||
}
|
||||
}
|
||||
local keys = {
|
||||
@ -457,12 +473,16 @@ local keys = {
|
||||
["attr_normal_hurt"]=attr[77],
|
||||
["attr_skill_hurt"]=attr[78],
|
||||
["dmgdec"]=attr[79],
|
||||
["attr_hpp_all"]=attr[80]
|
||||
["attr_hpp_all"]=attr[80],
|
||||
["attr_monster_dmg"]=attr[81],
|
||||
["attr_boss_dmg"]=attr[82],
|
||||
["attr_normal_hurtp"]=attr[83],
|
||||
["attr_skill_hurtp"]=attr[84]
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=attr,
|
||||
keys=keys,
|
||||
count=80
|
||||
count=84
|
||||
}
|
||||
return config
|
||||
@ -1,8 +1,4 @@
|
||||
local SummonManager = class("SummonManager", BaseModule)
|
||||
BIReport.EVENT_NAME_ACT_SUMMON_LOGIN = "client_act_summon_login"
|
||||
BIReport.EVENT_NAME_ACT_SUMMON_UPGRADE = "client_act_summon_upgrade"
|
||||
BIReport.EVENT_NAME_ACT_SUMMON_GEM = "client_act_summon_gem"
|
||||
BIReport.EVENT_NAME_ACT_SUMMON_RECHARGE = "client_act_summon_recharge"
|
||||
|
||||
-- function SummonManager:showPopUI(params)
|
||||
-- UIManager:showUI("app/ui/summon/summon_act_pop", params)
|
||||
@ -69,7 +65,7 @@ function SummonManager:onForceSummonRsp(result)
|
||||
end
|
||||
end
|
||||
EventManager:dispatchEvent(EventManager.CUSTOM_EVENT.FORCE_SUMMON, result, newHero)
|
||||
-- BIReport:postForceSummon(result.reqData.free, result.reqData.times, result.rewards, result.costs)
|
||||
BIReport:postForceSummon(result.reqData.free, result.reqData.times, result.rewards, result.costs)
|
||||
|
||||
-- local params = {
|
||||
-- times = result.reqData.times,
|
||||
@ -258,5 +254,46 @@ function BIReport:postActTask(actId, taskId, rewards)
|
||||
self:report(BIReport.EVENT_NAME_ACT_TASK, args)
|
||||
end
|
||||
|
||||
--@endregion
|
||||
|
||||
--@region 上报
|
||||
BIReport.EVENT_NAME_ACT_SUMMON_LOGIN = "client_act_summon_login"
|
||||
BIReport.EVENT_NAME_ACT_SUMMON_UPGRADE = "client_act_summon_upgrade"
|
||||
BIReport.EVENT_NAME_ACT_SUMMON_GEM = "client_act_summon_gem"
|
||||
BIReport.EVENT_NAME_ACT_SUMMON_RECHARGE = "client_act_summon_recharge"
|
||||
BIReport.EVENT_NAME_ACT_SUMMON = "client_act_summon" -- 念力觉醒
|
||||
BIReport.EVENT_NAME_FORCE = "client_hero_opt" -- 士兵
|
||||
BIReport.ITEM_GET_TYPE.FORCE_SUMMON_SHOP_EXCHANGE = "force_summon_shop_exchange"
|
||||
|
||||
BIReport.SUMMON_OP_TYPE = {
|
||||
REWARD_ROUND = "RewardRound",
|
||||
REWARD_ROUND_TASK = "RewardRoundTask",
|
||||
REWARD_RECHARGE_TASK = "RewardRechargeTask",
|
||||
SUMMON_SHOP = "SummonShop",
|
||||
}
|
||||
|
||||
-- 士兵召唤
|
||||
function BIReport:postForceSummon(isfree, count, rewards, costs, summonId)
|
||||
local args = {
|
||||
opt_type = BIReport.FORCE_OPT_TYPE.SUMMON,
|
||||
free_summon = isfree,
|
||||
count = count,
|
||||
summon_id = summonId,
|
||||
reward_str = rewards and GFunc.getRewardsStr(rewards) or nil,
|
||||
cost_str = costs and GFunc.getRewardsStr(costs) or nil,
|
||||
}
|
||||
self:report(BIReport.EVENT_NAME_FORCE, args)
|
||||
end
|
||||
|
||||
function BIReport:postSummonShopExchange(optType, id, num, rewards)
|
||||
local args = {
|
||||
optType = optType,
|
||||
shop_id = id,
|
||||
exchange_num = num,
|
||||
reward_str = rewards and GFunc.getRewardsStr(rewards) or nil,
|
||||
}
|
||||
self:report(BIReport.EVENT_NAME_ACT_SUMMON, args)
|
||||
end
|
||||
|
||||
--@endregion
|
||||
return SummonManager
|
||||
|
||||
@ -13,7 +13,7 @@ function SideBarSevenDayCell:getIsOpen()
|
||||
end
|
||||
|
||||
function SideBarSevenDayCell:getSpineName()
|
||||
return "ui_main_btn_shop"
|
||||
return "ui_main_btn_act_sevenday"
|
||||
end
|
||||
|
||||
function SideBarSevenDayCell:onClick()
|
||||
|
||||
@ -13,7 +13,7 @@ function SideBarSevenDayCell2:getIsOpen()
|
||||
end
|
||||
|
||||
function SideBarSevenDayCell2:getSpineName()
|
||||
return "ui_main_btn_shop"
|
||||
return "ui_main_btn_act_sevenday"
|
||||
end
|
||||
|
||||
function SideBarSevenDayCell2:onClick()
|
||||
|
||||
@ -101,7 +101,7 @@ function SummonShopCell:setCost()
|
||||
if haveItemNum >= costCount then
|
||||
self.costTx:setText(costCount)
|
||||
else
|
||||
self.costTx:setText("<color=#FF2C2C>"..costCount.."</color>")
|
||||
self.costTx:setText("<color=#FF5D5D>"..costCount.."</color>")
|
||||
end
|
||||
self.costIcon:setSprite(GFunc.getIconRes(costId))
|
||||
GFunc.centerImgAndTx(self.costIcon, self.costTx, -5)
|
||||
|
||||
@ -405,6 +405,17 @@ function SummonMainUI:onSummonRsp(result, newHero)
|
||||
self.uiNode:setActive(true)
|
||||
return
|
||||
end
|
||||
local rewards = {}
|
||||
local qlt = 3
|
||||
for _, v in ipairs(result.rewards) do
|
||||
local itemType = ModuleManager.ItemManager:getItemType(v.item.id)
|
||||
if itemType == GConst.ItemConst.ITEM_TYPE.HERO_FRAGMENT then
|
||||
local id = v.item.id
|
||||
local q = DataManager.HeroData:getHeroQlt(id)
|
||||
qlt = math.max(qlt, q)
|
||||
table.insert(rewards, v)
|
||||
end
|
||||
end
|
||||
if self.aniSeq then
|
||||
self.aniSeq:Kill()
|
||||
self.aniSeq = nil
|
||||
@ -415,19 +426,14 @@ function SummonMainUI:onSummonRsp(result, newHero)
|
||||
self.vfx01s[i]:setActive(false)
|
||||
self.vfx02s[i]:setActive(false)
|
||||
end
|
||||
local qlt = 3
|
||||
for i, v in ipairs(result.rewards) do
|
||||
local id = v.item.id
|
||||
local q = DataManager.HeroData:getHeroQlt(id)
|
||||
qlt = math.max(qlt, q)
|
||||
end
|
||||
|
||||
qlt = qlt - 2
|
||||
self.summonResult = result.rewards
|
||||
self.summonResult = rewards
|
||||
self.aniSeq = self.root:createBindTweenSequence()
|
||||
if self.vfxs[qlt] then
|
||||
self.vfxs[qlt]:setActive(true)
|
||||
end
|
||||
self.aniSeq:AppendInterval(2)
|
||||
self.aniSeq:AppendInterval(1.5)
|
||||
self.aniSeq:AppendCallback(function()
|
||||
self:showHero(1, newHero)
|
||||
end)
|
||||
|
||||
@ -82,7 +82,7 @@ function SummonShopBoxUI:onLoadRootComplete()
|
||||
self.btnClose = uiMap["summon_shop_box_ui.content.btn_close"]
|
||||
self.txTitle = uiMap["summon_shop_box_ui.content.tx_title"]
|
||||
self.infoNode = uiMap["summon_shop_box_ui.content.info_node"]
|
||||
self.rewardCell = uiMap["summon_shop_box_ui.content.info_node.summon_shop_cell"]:addLuaComponent("app/ui/summon/cell/summon_shop_cell")
|
||||
self.rewardCell = uiMap["summon_shop_box_ui.content.info_node.reward_cell"]:addLuaComponent(GConst.TYPEOF_LUA_CLASS.REWARD_CELL)
|
||||
self.txName = uiMap["summon_shop_box_ui.content.info_node.data_node.tx_name"]
|
||||
self.txCount = uiMap["summon_shop_box_ui.content.info_node.data_node.tx_count"]
|
||||
self.dataLayout = uiMap["summon_shop_box_ui.content.info_node.data_node"]:getComponent(GConst.TYPEOF_UNITY_CLASS.BF_HORIZONTAL_OR_VERTICAL_LAYOUT)
|
||||
@ -154,7 +154,7 @@ function SummonShopBoxUI:onLoadRootComplete()
|
||||
end
|
||||
|
||||
function SummonShopBoxUI:onRefresh()
|
||||
self.rewardCell:refresh(self.cfg, true)
|
||||
self.rewardCell:refreshByConfig(self.cfg.hero)
|
||||
self.txCount:setText(I18N:getGlobalText(I18N.GlobalConst.ITEM_DESC_1, self.ownCount))
|
||||
if self.remainingDiscount > 0 and self.discountLimit ~= nil then
|
||||
self.txCount:setText(I18N:getGlobalText(I18N.GlobalConst.SUMMON_DESCR_7, self.remainingDiscount, self.discountLimit))
|
||||
@ -165,8 +165,6 @@ function SummonShopBoxUI:onRefresh()
|
||||
end
|
||||
self.rewardId = GFunc.getRewardId(self.cfg.hero)
|
||||
self.itemType = ModuleManager.ItemManager:getItemType(self.rewardId)
|
||||
|
||||
local cfg = ConfigManager:getConfig("item")[self.rewardId]
|
||||
self.rewards = nil
|
||||
-- if self.itemType == GConst.ItemConst.ITEM_TYPE.BOX_RANDOM then
|
||||
-- -- 随机宝箱
|
||||
@ -190,7 +188,11 @@ function SummonShopBoxUI:onRefresh()
|
||||
-- end
|
||||
if self.itemType == GConst.ItemConst.ITEM_TYPE.HERO_FRAGMENT then
|
||||
local heroCfg = ConfigManager:getConfig("hero")[self.rewardId]
|
||||
local str = string.format("<color=%s>%s</color>", GConst.QUALITY_TYPE[heroCfg.qlt], ModuleManager.ItemManager:getItemName(self.rewardId))
|
||||
local str = GFunc.colorText(GConst.QUALITY_TYPE[heroCfg.qlt], ModuleManager.ItemManager:getItemName(self.rewardId))
|
||||
self.txName:setText(str)
|
||||
else
|
||||
local itemCfg = ConfigManager:getConfig("item")[self.rewardId]
|
||||
local str = GFunc.colorText(GConst.QUALITY_TYPE[itemCfg.qlt], ModuleManager.ItemManager:getItemName(self.rewardId))
|
||||
self.txName:setText(str)
|
||||
end
|
||||
if self.rewards ~= nil then
|
||||
|
||||
@ -8,7 +8,7 @@ function SummonShopUI:getCurrencyParams()
|
||||
local params = {}
|
||||
params.showType = GConst.CURRENCY_TYPE.HORIZONTAL
|
||||
params.itemIds = {
|
||||
GConst.ItemConst.ITEM_ID_GOLD,
|
||||
self.shopItemId,
|
||||
}
|
||||
return params
|
||||
end
|
||||
@ -49,15 +49,6 @@ function SummonShopUI:ctor(param)
|
||||
ModuleManager.SummonManager:reqSummonShopMarkUnlockTip(self.shopType)
|
||||
end
|
||||
|
||||
function SummonShopUI:currencyParams()
|
||||
local params = {}
|
||||
params.showType = GConst.CURRENCY_TYPE.HORIZONTAL
|
||||
params.itemIds = {
|
||||
self.shopItemId,
|
||||
}
|
||||
return params, true
|
||||
end
|
||||
|
||||
function SummonShopUI:onLoadRootComplete()
|
||||
local uiMap = self.root:genAllChildren()
|
||||
self.btnMaskClose = uiMap["summon_shop_ui.btn_mask_close"]
|
||||
@ -172,9 +163,12 @@ function SummonShopUI:_refreshScrollrect()
|
||||
cell:setShowType(GConst.HeroConst.PAGE_TYPE.SHOP, function()
|
||||
local cfg = self.shopList[index]
|
||||
local id = GFunc.getRewardId(cfg.hero)
|
||||
if not DataManager.HeroData:getHeroIsUnlock(cfg.force_id) then
|
||||
GFunc.showToast(I18N:getGlobalText(I18N.GlobalConst.SUMMON_DESCR_5))
|
||||
return
|
||||
local type = ModuleManager.ItemManager:getItemType(id)
|
||||
if type == GConst.ItemConst.ITEM_TYPE.HERO_FRAGMENT then
|
||||
if not DataManager.HeroData:getHeroIsUnlock(cfg.force_id) then
|
||||
GFunc.showToast(I18N:getGlobalText(I18N.GlobalConst.SUMMON_DESCR_5))
|
||||
return
|
||||
end
|
||||
end
|
||||
ModuleManager.SummonManager:showSummonShopBoxUI(self.shopType, self.shopList[index])
|
||||
end)
|
||||
|
||||
@ -98,6 +98,7 @@ function TalentMainUI:onRefresh()
|
||||
else
|
||||
self.descTx:setActive(false)
|
||||
end
|
||||
self.getBtn:setActive(not DataManager.TalentData:isAllMax())
|
||||
end
|
||||
|
||||
function TalentMainUI:onUpgrade()
|
||||
|
||||
@ -263,7 +263,7 @@ function SignWeekData:getSeason()
|
||||
end
|
||||
|
||||
function SignWeekData:getReSignCost()
|
||||
return GFunc.getConstCost("act_bounty_buy_cost", true)
|
||||
return GFunc.getConstCost("act_bounty_buy_cost")
|
||||
end
|
||||
|
||||
-- 解锁高级奖励
|
||||
|
||||
@ -80,15 +80,14 @@ function TalentData:getUpData()
|
||||
end
|
||||
|
||||
function TalentData:isAllMax()
|
||||
for id = 1, #TalentCfg do
|
||||
local cfg = TalentCfg[id]
|
||||
local lv = self:getLevels(id)
|
||||
if lv and lv > 0 and cfg.attr then
|
||||
for _, v in ipairs(cfg.attr) do
|
||||
self.allAttr[v.type] = (self.allAttr[v.type] or 0) + v.num * lv
|
||||
end
|
||||
end
|
||||
end
|
||||
-- for id = 1, #TalentCfg do
|
||||
-- local cfg = TalentCfg[id]
|
||||
-- local lv = self:getLevels(id)
|
||||
-- if not lv or lv < cfg.max_level then
|
||||
-- return false
|
||||
-- end
|
||||
-- end
|
||||
return true
|
||||
end
|
||||
|
||||
--@region 属性
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user