From 0de5aac5c3aac9b22d0a0f4b93407116299f35d7 Mon Sep 17 00:00:00 2001 From: NERS1111 <85985080+NERS1111@users.noreply.github.com> Date: Wed, 4 Oct 2023 09:26:15 +0300 Subject: [PATCH] Update Deltarune.asl --- Deltarune.asl | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/Deltarune.asl b/Deltarune.asl index bd0b415..0df7473 100644 --- a/Deltarune.asl +++ b/Deltarune.asl @@ -408,10 +408,20 @@ start return true; } - else if(version != "CH1 SURVEY_PROGRAM" && ((old.namerEvent == 74 && current.namerEvent == 75) || (old.namerEvent110 == 74 && current.namerEvent110 == 75))) + else if(version != "CH1 SURVEY_PROGRAM") { - vars.DebugPrint("START (Start Event for Chapter " + vars.chapter + " detected)"); - return true; + if(version == "CH1-2 v1.08 - v1.10") + { + if((old.namerEvent == 74 && current.namerEvent == 75) || (old.namerEvent110 == 74 && current.namerEvent110 == 75)) vars.tempVar = 1; + } + else if(old.namerEvent == 74 && current.namerEvent == 75) vars.tempVar = 1; + + if(vars.tempVar == 1) + { + vars.DebugPrint("START (Start Event for Chapter " + vars.chapter + " detected)"); + vars.tempVar = 0; + return true; + } } } @@ -429,10 +439,20 @@ reset return true; } - else if(version != "CH1 SURVEY_PROGRAM" && ((old.namerEvent == 74 && current.namerEvent == 75) || (old.namerEvent110 == 74 && current.namerEvent110 == 75))) + else if(version != "CH1 SURVEY_PROGRAM") { - vars.DebugPrint("RESET (Start Event for Chapter " + vars.chapter + " detected)"); - return true; + if(version == "CH1-2 v1.08 - v1.10") + { + if((old.namerEvent == 74 && current.namerEvent == 75) || (old.namerEvent110 == 74 && current.namerEvent110 == 75)) vars.tempVar = 1; + } + else if(old.namerEvent == 74 && current.namerEvent == 75) vars.tempVar = 1; + + if(vars.tempVar == 1) + { + vars.DebugPrint("RESET (Start Event for Chapter " + vars.chapter + " detected)"); + vars.tempVar = 0; + return true; + } } }