Skip to content

Commit

Permalink
Release 2.1.1a (#49)
Browse files Browse the repository at this point in the history
Fix last update
  • Loading branch information
Tenebrosful authored Oct 4, 2023
2 parents 0f62a6f + 3537af1 commit ec7eed2
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions Deltarune.asl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand All @@ -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;
}
}
}

Expand Down

0 comments on commit ec7eed2

Please sign in to comment.