From 409becf92b395b235393cc0d622d573b1689e40b Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 4 Sep 2022 12:25:32 -0400 Subject: [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. --- Manifold Garden.asl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Manifold Garden.asl') 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 { vars.Helper["gravity"] = gameMan.Make("playerController", rigidCon["_gravityDirection"]); current.onStartScreen = false; + current.onMandalaScene = false; return true; }); @@ -201,7 +202,6 @@ update { current.level = vars.Helper.Scenes.Active.Index; current.isLoadingGameFromUI = vars.Helper["isLoadingGameFromUI"].Current; - current.gravity = vars.Helper["gravity"].Current; if (!vars.doneFirstLook) { vars.doneFirstLook = true; @@ -225,6 +225,10 @@ update { } else { if (current.level != old.level) { current.onStartScreen = vars.startScreens.Contains(vars.Helper.Scenes.Active.Name); + current.onMandalaScene = vars.mandalaScenes.Contains(vars.Helper.Scenes.Active.Name); + } + if (!current.onMandalaScene) { + current.gravity = vars.Helper["gravity"].Current; } if (!vars.studioScreenDone) { vars.studioScreenDone = !current.isLoadingGameFromUI; -- cgit 1.4.1