Explorar el Código

专属武器弹窗礼包

gitxsm hace 2 meses
padre
commit
edf08b8b39

+ 5 - 0
script/module/hero/HeroExclusiveWeapon.lua

@@ -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
 
 

+ 1 - 0
script/module/topup/GiftLogic.lua

@@ -32,6 +32,7 @@ GIFT_HERO_UPGRADE_STAR_DAILY = 8    -- 英雄升星, 每日只可触发一次, 
 
 GIFT_HEROSEED_UPGRADE_STAR = 9      -- 英雄种子
 GIFT_HEROTIANYUAN_UPGRADE_STAR = 10 -- 英雄天元
+GIFT_HEROWEAPON_UPGRADE_STAR = 11  -- 英雄专属武器
 
 GIFT_TALISMAN_OPEN = 15           -- 开启秘宝玩法
 GIFT_WINNERRELIC_OPEN = 16        -- 开启圣遗物玩法