From 4a13d67af7c3ad91b4c4a3f246aa7e9b346f0f4a Mon Sep 17 00:00:00 2001 From: Phu Date: Tue, 27 Jun 2023 15:59:32 +0700 Subject: [PATCH] fix oreo guarantee --- xml/event/promotion_mystery_cup_35.xml | 6 +++++- xml/event/promotion_template3.inc | 6 +++++- xml_main/startup.xml | 3 ++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/xml/event/promotion_mystery_cup_35.xml b/xml/event/promotion_mystery_cup_35.xml index e8408804..a7ec65c4 100644 --- a/xml/event/promotion_mystery_cup_35.xml +++ b/xml/event/promotion_mystery_cup_35.xml @@ -8962,6 +8962,7 @@ LIMENADE SODA" Var OreoGuarantee = OreoGuarantee + 1 + DEBUGVAR OreoGuarantee If OreoGuarantee = 4 Then Random2 0 IndexOfRateupOreoMilk ResultRandomIndex Var ProductCodeRandom = ListOfOreoMilk[ResultRandomIndex] @@ -9000,6 +9001,7 @@ LIMENADE SODA" Var OreoGuarantee = OreoGuarantee + 1 +DEBUGVAR OreoGuarantee If OreoGuarantee = 4 Then Random2 0 IndexOfRateupOreoTea ResultRandomIndex Var ProductCodeRandom = ListOfOreoTea[ResultRandomIndex] @@ -9039,6 +9041,7 @@ Var OreoGuarantee = OreoGuarantee + 1 Var OreoGuarantee = OreoGuarantee + 1 +DEBUGVAR OreoGuarantee If OreoGuarantee = 4 Then Random2 0 IndexOfRateupOreoCoffee ResultRandomIndex @@ -9081,6 +9084,7 @@ EndIf Var OreoGuarantee = OreoGuarantee + 1 +DEBUGVAR OreoGuarantee If OreoGuarantee = 4 Then Random2 0 IndexOfRateupOreoAll ResultRandomIndex Var ProductCodeRandom = ListOfOreoAll[ResultRandomIndex] @@ -9141,7 +9145,7 @@ EndIf Var BigButtonEnable = "Invisible" - Var OreoGuarantee = OreoGuarantee + 1 + DEBUGVAR BigButtonEnable DEBUGVAR OreoGuarantee diff --git a/xml/event/promotion_template3.inc b/xml/event/promotion_template3.inc index 466f31a6..81a06940 100644 --- a/xml/event/promotion_template3.inc +++ b/xml/event/promotion_template3.inc @@ -29,6 +29,7 @@ Var OreoGuarantee = OreoGuarantee + 1 + DEBUGVAR OreoGuarantee If OreoGuarantee = 4 Then Random2 0 IndexOfRateupOreoMilk ResultRandomIndex Var ProductCodeRandom = ListOfOreoMilk[ResultRandomIndex] @@ -67,7 +68,8 @@ Var OreoGuarantee = OreoGuarantee + 1 - If OreoGuarantee = 4 Then + DEBUGVAR OreoGuarantee + If OreoGuarantee = 4 Then Random2 0 IndexOfRateupOreoTea ResultRandomIndex Var ProductCodeRandom = ListOfOreoTea[ResultRandomIndex] DEBUGVAR ListOfOreoTea[ResultRandomIndex] @@ -106,6 +108,7 @@ Var OreoGuarantee = OreoGuarantee + 1 Var OreoGuarantee = OreoGuarantee + 1 +DEBUGVAR OreoGuarantee If OreoGuarantee = 4 Then Random2 0 IndexOfRateupOreoCoffee ResultRandomIndex @@ -148,6 +151,7 @@ EndIf Var OreoGuarantee = OreoGuarantee + 1 +DEBUGVAR OreoGuarantee If OreoGuarantee = 4 Then Random2 0 IndexOfRateupOreoAll ResultRandomIndex Var ProductCodeRandom = ListOfOreoAll[ResultRandomIndex] diff --git a/xml_main/startup.xml b/xml_main/startup.xml index 877206e2..2f214772 100644 --- a/xml_main/startup.xml +++ b/xml_main/startup.xml @@ -110,7 +110,8 @@ Var XMLPageVersion = "7.35" Var XMLPageVersionInt = 735 - +;Oreo +Var OreoGuarantee = 0