From 11caefd9b2e8f6e6618e2dbd6e376989bf0ac48e Mon Sep 17 00:00:00 2001 From: Raven-Industries <76715855+Raven-Industries@users.noreply.github.com> Date: Thu, 8 Jul 2021 06:19:57 -0400 Subject: [PATCH 1/2] Fixes exponents in 2 files (#4761) * Update ghost_role.dm fixed 1 * Update lighting.dm --- code/modules/events/ghost_role.dm | 2 +- code/modules/power/lighting.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/events/ghost_role.dm b/code/modules/events/ghost_role.dm index 06accdbcaed..36047d93386 100644 --- a/code/modules/events/ghost_role.dm +++ b/code/modules/events/ghost_role.dm @@ -25,7 +25,7 @@ if(control && control.occurrences > 0) //Don't refund if it hasn't control.occurrences-- return - var/waittime = 300 * (2^retry) + var/waittime = 300 * (2**retry) message_admins("The event will not spawn a [role_name] until certain \ conditions are met. Waiting [waittime/10]s and then retrying.") addtimer(CALLBACK(src, .proc/try_spawning, 0, ++retry), waittime) diff --git a/code/modules/power/lighting.dm b/code/modules/power/lighting.dm index 1dd06660628..e6cadb8d126 100644 --- a/code/modules/power/lighting.dm +++ b/code/modules/power/lighting.dm @@ -391,7 +391,7 @@ if(rigged) if(status == LIGHT_OK && trigger) explode() - else if( prob( min(60, (switchcount^2)*0.01) ) ) + else if( prob( min(60, (switchcount**2)*0.01) ) ) if(trigger) burn_out() else From 7abc6ca0fff39be12f43a1acb941710381118163 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 8 Jul 2021 10:21:02 +0000 Subject: [PATCH 2/2] Fixes exponents in 2 files