Skip to content

Commit

Permalink
from define to var
Browse files Browse the repository at this point in the history
  • Loading branch information
larentoun committed Oct 30, 2023
1 parent d33eaef commit fcc18f6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modular_ss220/wire_splicing/wiresplicing.dm
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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)
. = ..()
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -158,4 +158,3 @@

#undef MAX_MESSINESS
#undef WALKING_REDUCE_PROBABILITY
#undef SHOCK_CHANCE_PER_MESSINESS

0 comments on commit fcc18f6

Please sign in to comment.