From fcc18f694266308dca35f2f1473be5f3b3faa735 Mon Sep 17 00:00:00 2001 From: larentoun Date: Mon, 30 Oct 2023 15:00:05 +0300 Subject: [PATCH] from define to var --- modular_ss220/wire_splicing/wiresplicing.dm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modular_ss220/wire_splicing/wiresplicing.dm b/modular_ss220/wire_splicing/wiresplicing.dm index e2322fef7536..12b56654186a 100644 --- a/modular_ss220/wire_splicing/wiresplicing.dm +++ b/modular_ss220/wire_splicing/wiresplicing.dm @@ -1,6 +1,5 @@ #define MAX_MESSINESS 10 #define WALKING_REDUCE_PROBABILITY 50 -#define SHOCK_CHANCE_PER_MESSINESS 10 /obj/effect/spawner/wire_splicing name = "wiring splicing spawner" @@ -30,6 +29,7 @@ flags = CONDUCT layer = WIRE_TERMINAL_LAYER var/messiness = 0 // How bad the splicing was, determines the chance of shock + var/shock_chance_per_messiness = 10 /obj/structure/wire_splicing/Initialize(mapload) . = ..() @@ -102,7 +102,7 @@ /obj/structure/wire_splicing/Crossed(atom/movable/AM, oldloc) . = ..() if(isliving(AM)) - var/chance_to_shock = messiness * SHOCK_CHANCE_PER_MESSINESS + var/chance_to_shock = messiness * shock_chance_per_messiness /* var/turf/T = get_turf(src) if(locate(/obj/structure/catwalk) in T) @@ -158,4 +158,3 @@ #undef MAX_MESSINESS #undef WALKING_REDUCE_PROBABILITY -#undef SHOCK_CHANCE_PER_MESSINESS