Jelajahi Sumber

修改100抽

gitxsm 4 bulan lalu
induk
melakukan
11b2ef0457
1 mengubah file dengan 12 tambahan dan 4 penghapusan
  1. 12 4
      script/module/drawCard/DrawCardLogic.lua

+ 12 - 4
script/module/drawCard/DrawCardLogic.lua

@@ -513,9 +513,13 @@ function checkUseItem(human, id, op, config,isAct)
     end
 
 
-    if id == DRAWCARD_ID2 and (op == DRAWCARD_OP_2 or op == DRAWCARD_OP_3) then
+    if id == DRAWCARD_ID2 then
         local vipArg = 100
-        vipArg = VipLogic.getPowerArgs(human, VipLogic.VIP_POWER21)
+        if op == DRAWCARD_OP_2 then
+            vipArg = VipLogic.getPowerArgs(human, VipLogic.VIP_POWER21)
+        elseif op == DRAWCARD_OP_3 then
+            vipArg = VipLogic.getPowerArgs(human, VipLogic.VIP_POWER23)
+        end
         print(" checkUseItem  vipArg   ", vipArg, "  ,   old  :  " ,itemCnt , "  ,  new : ", math.floor(itemCnt * vipArg / 100 ) )
         finalItemCnt = math.floor(itemCnt * vipArg / 100 )
     end 
@@ -576,8 +580,12 @@ function checkUseItem(human, id, op, config,isAct)
         local haveCnt = BagLogic.getItemCnt(human, itemID)
 
         local vipArg = 0
-        if id == DRAWCARD_ID2 and (op == DRAWCARD_OP_2 or op == DRAWCARD_OP_3) then
-            vipArg = VipLogic.getPowerArgs(human, VipLogic.VIP_POWER22)
+        if id == DRAWCARD_ID2 then
+            if op == DRAWCARD_OP_2 then
+                vipArg = VipLogic.getPowerArgs(human, VipLogic.VIP_POWER22)
+            elseif op == DRAWCARD_OP_3 then
+                vipArg = VipLogic.getPowerArgs(human, VipLogic.VIP_POWER24)
+            end
         end
         zuanshi = zuanshi + vipArg
         if haveCnt > 0 then