|
|
@@ -14,6 +14,7 @@ local ObjHuman = require("core.ObjHuman")
|
|
|
local Config = require("excel.weapon").weapon
|
|
|
local HeroExcel = require("excel.hero").hero
|
|
|
|
|
|
+local GiftLogic
|
|
|
|
|
|
local COND_STAR = 12 -- 获得超武需要的星级
|
|
|
local STAGELV = 20 -- 每20级获得一个特殊效果
|
|
|
@@ -328,6 +329,10 @@ function UpgradeWeapon(human, heroID, heroIndex)
|
|
|
HeroLogic.sendHeroBagDynamic(human, heroID, heroIndex)
|
|
|
ObjHuman.sendAttr(human, RoleDefine.ZHANDOULI)
|
|
|
HeroLogic.refreshDot(human, heroGrid.uuid)
|
|
|
+
|
|
|
+ -- 弹窗礼包
|
|
|
+ GiftLogic = GiftLogic or require("topup.GiftLogic")
|
|
|
+ GiftLogic.trigger(human, GiftLogic.GIFT_HEROWEAPON_UPGRADE_STAR, {currentVal = nextWeaponLv}, GiftLogic.GIFT_SEC_TYPE1)
|
|
|
end
|
|
|
|
|
|
|