Add BOX_ID to game and profile AllPrice05 AllPrice10

This commit is contained in:
wanlop run 2024-02-05 21:48:02 +07:00
parent 5e71999d0d
commit 39c23f18f0
15 changed files with 76 additions and 67 deletions

View file

@ -25,9 +25,12 @@
STRCONTAIN "y20IDCard" XMLProfileFromJson Y20IDCARD_ENABLE
STRCONTAIN "SugarBreak" XMLProfileFromJson SugarBreakEnable
STRCONTAIN "Discount50" XMLProfileFromJson Discount50
STRCONTAIN "ClossMenu" XMLProfileFromJson ClossMenu
STRCONTAIN "AllPrice05" XMLProfile AllPrice05
STRCONTAIN "AllPrice10" XMLProfile AllPrice10
DEBUGVAR EnableLiveness
DEBUGVAR Only18
@ -65,13 +68,35 @@
Var NoSugarStepRight2 = "false"
EndIf
; flag for apply all menu.
Var price_apply = 0
If Discount50 = "true" Then
Var HalfPrice = "true"
Var InvokeDiscountCMD = "true"
DEBUGVAR InvokeDiscountCMD
Var price_apply = 1
__CMD "invoke-discount-50" "-" "-" "-"
Else
Var HalfPrice = "false"
DEBUGVAR Discount50
EndIf
If AllPrice05 = "true" Then
Var price_apply = 2
__CMD "invoke-all-price-5" "-" "-" "-"
EndIf
If AllPrice10 = "true" Then
Var price_apply = 3
__CMD "invoke-all-price-10" "-" "-" "-"
EndIf
If price_apply = 0 Then
Var HalfPrice = "false"
DEBUGVAR Discount50
__CMD "invoke-discount-disable" "-" "-" "-"
__CMD "cancel-override-price" "-" "-" "-"
EndIf