Răsfoiți Sursa

闯关礼金功能修改

gitxsm 1 lună în urmă
părinte
comite
a98b5884dc
2 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 2 2
      script/module/battle/BattleGift.lua
  2. 1 1
      script/module/battle/EliteDefine.lua

+ 2 - 2
script/module/battle/BattleGift.lua

@@ -91,7 +91,7 @@ local function getStageVal(stageType, stageIdx)
     end
     end
 
 
     local stageCfg = conf[stageIdx]
     local stageCfg = conf[stageIdx]
-    if stageCfg and stageCfg.giftVal then
+    if stageCfg and stageCfg.giftStoreVal then
         return stageCfg.giftStoreVal
         return stageCfg.giftStoreVal
     end
     end
 
 
@@ -131,7 +131,7 @@ local function calcStageDailyGeteVal(human)
             break
             break
         end
         end
 
 
-        if v.dailyLimitVal then
+        if v.dailyLimitVal and v.dailyLimitVal > 0 then
             val = val + v.dailyLimitVal
             val = val + v.dailyLimitVal
         end
         end
     end
     end

+ 1 - 1
script/module/battle/EliteDefine.lua

@@ -36,7 +36,7 @@ OPEN_OTHER_TEAM_LEVEL = 601
 
 
 -------------------------闯关礼金--------------------------------------
 -------------------------闯关礼金--------------------------------------
 
 
-BATTLEGIFT_FREE_LIMIT = 10000 -- 闯关礼金每日免费可提取额度
+BATTLEGIFT_FREE_LIMIT = 1000 -- 闯关礼金每日免费可提取额度
 
 
 BATTLEGIFT_BUYID_LIST = {93901,93902}  -- 闯关礼金购买项Id列表
 BATTLEGIFT_BUYID_LIST = {93901,93902}  -- 闯关礼金购买项Id列表