From 56f2431085ba706c50a03a1779f806645f84740e Mon Sep 17 00:00:00 2001
From: Lojemiru <33508026+Lojemiru@users.noreply.github.com>
Date: Wed, 28 Jul 2021 22:47:27 -0500
Subject: [PATCH] Fixes #86
---
objects/oBatteryExpl.object.gmx | 4 ++--
objects/oEMP.object.gmx | 2 +-
objects/oEMPNoise.object.gmx | 7 +++++--
objects/oTilesRandomAlpha.object.gmx | 7 ++++++-
4 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/objects/oBatteryExpl.object.gmx b/objects/oBatteryExpl.object.gmx
index 4c4f722..25cd077 100644
--- a/objects/oBatteryExpl.object.gmx
+++ b/objects/oBatteryExpl.object.gmx
@@ -153,7 +153,7 @@ if (fadeout) {
if (spark_fadeout) {
if (spark_alpha > 0) spark_alpha -= 0.02;
}
-alpha2 = !alpha2;
+if (!global.sensitivitymode) alpha2 = !alpha2;
@@ -179,7 +179,7 @@ alpha2 = !alpha2;
if (global.currentsuit <= 1) {
if (!instance_exists(oEMPNoise)) {
instance_create(0, 0, oEMPNoise);
- } else with (oEMPNoise) image_alpha = 1;
+ } else with (oEMPNoise) image_alpha = 1 - (0.5 * global.sensitivitymode);
}
diff --git a/objects/oEMP.object.gmx b/objects/oEMP.object.gmx
index 6580a98..130a281 100644
--- a/objects/oEMP.object.gmx
+++ b/objects/oEMP.object.gmx
@@ -28,7 +28,7 @@
if (global.currentsuit <= 1) {
if (!instance_exists(oEMPNoise)) {
instance_create(0, 0, oEMPNoise);
- } else with (oEMPNoise) image_alpha = 1;
+ } else with (oEMPNoise) image_alpha = 1 - (0.5 * global.sensitivitymode);
}
diff --git a/objects/oEMPNoise.object.gmx b/objects/oEMPNoise.object.gmx
index 21c9d4d..deaa047 100644
--- a/objects/oEMPNoise.object.gmx
+++ b/objects/oEMPNoise.object.gmx
@@ -28,6 +28,7 @@
xoff = 0;
yoff = 0;
alarm[0] = 1;
+image_alpha = 1 - (0.5 * global.sensitivitymode);
@@ -83,8 +84,10 @@ alarm[0] = 5;
1
- xoff = floor(random(128));
-yoff = floor(random(128));
+ if (!global.sensitivitymode) {
+ xoff = irandom(128);
+ yoff = irandom(128);
+}
image_alpha -= 0.1;
if (image_alpha <= 0) instance_destroy();
with (oCharacter) chargebeam = 0;
diff --git a/objects/oTilesRandomAlpha.object.gmx b/objects/oTilesRandomAlpha.object.gmx
index c50f0b2..2c50935 100644
--- a/objects/oTilesRandomAlpha.object.gmx
+++ b/objects/oTilesRandomAlpha.object.gmx
@@ -49,7 +49,12 @@ layer = 99;
1
- falpha = random(1);
+ if (global.sensitivitymode) {
+ falpha = 0.5;
+}
+else {
+ falpha = random(1);
+}
event_user(0);