about summary refs log tree commit diff stats
path: root/Manifold Garden.asl
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-09-04 12:25:32 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2022-09-04 12:25:32 -0400
commit409becf92b395b235393cc0d622d573b1689e40b (patch)
tree8671dc2bb065a4bee08c04ec556fc0273be16083 /Manifold Garden.asl
parentea4800959026f5008a2dc71a18df3c915066122a (diff)
downloadautosplitters-409becf92b395b235393cc0d622d573b1689e40b.tar.gz
autosplitters-409becf92b395b235393cc0d622d573b1689e40b.tar.bz2
autosplitters-409becf92b395b235393cc0d622d573b1689e40b.zip
[Manifold Garden] Ignore gravity changes during Mandala scenes
Gravity changes a couple of times during Purple and Orange mandalas (maybe others as well), and those don't count for MGC so we will ignore them.
Diffstat (limited to 'Manifold Garden.asl')
-rw-r--r--Manifold Garden.asl6
1 files changed, 5 insertions, 1 deletions
diff --git a/Manifold Garden.asl b/Manifold Garden.asl index 517f55b..14f9ed3 100644 --- a/Manifold Garden.asl +++ b/Manifold Garden.asl
@@ -161,6 +161,7 @@ init {
161 vars.Helper["gravity"] = gameMan.Make<int>("playerController", rigidCon["_gravityDirection"]); 161 vars.Helper["gravity"] = gameMan.Make<int>("playerController", rigidCon["_gravityDirection"]);
162 162
163 current.onStartScreen = false; 163 current.onStartScreen = false;
164 current.onMandalaScene = false;
164 165
165 return true; 166 return true;
166 }); 167 });
@@ -201,7 +202,6 @@ update {
201 202
202 current.level = vars.Helper.Scenes.Active.Index; 203 current.level = vars.Helper.Scenes.Active.Index;
203 current.isLoadingGameFromUI = vars.Helper["isLoadingGameFromUI"].Current; 204 current.isLoadingGameFromUI = vars.Helper["isLoadingGameFromUI"].Current;
204 current.gravity = vars.Helper["gravity"].Current;
205 205
206 if (!vars.doneFirstLook) { 206 if (!vars.doneFirstLook) {
207 vars.doneFirstLook = true; 207 vars.doneFirstLook = true;
@@ -225,6 +225,10 @@ update {
225 } else { 225 } else {
226 if (current.level != old.level) { 226 if (current.level != old.level) {
227 current.onStartScreen = vars.startScreens.Contains(vars.Helper.Scenes.Active.Name); 227 current.onStartScreen = vars.startScreens.Contains(vars.Helper.Scenes.Active.Name);
228 current.onMandalaScene = vars.mandalaScenes.Contains(vars.Helper.Scenes.Active.Name);
229 }
230 if (!current.onMandalaScene) {
231 current.gravity = vars.Helper["gravity"].Current;
228 } 232 }
229 if (!vars.studioScreenDone) { 233 if (!vars.studioScreenDone) {
230 vars.studioScreenDone = !current.isLoadingGameFromUI; 234 vars.studioScreenDone = !current.isLoadingGameFromUI;