Skip to content

Commit

Permalink
walking reduces flat chance to get shocked
Browse files Browse the repository at this point in the history
  • Loading branch information
larentoun committed Oct 29, 2023
1 parent a9f6245 commit dba66c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modular_ss220/wire_splicing/wiresplicing.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#define MAX_MESSINESS 10
#define WALKING_REDUCE_PROBABILITY 50

/obj/effect/spawner/wire_splicing
name = "wiring splicing spawner"
Expand Down Expand Up @@ -112,8 +113,8 @@
. = FALSE
if(!in_range(src, user)) //To prevent TK and mech users from getting shocked
return
if(user.m_intent == MOVE_INTENT_WALK) // Walk slowly to step over
return
if(user.m_intent == MOVE_INTENT_WALK) // Walk slowly to try to step over
prb = max(prb - WALKING_REDUCE_PROBABILITY, 0)
if(!prob(prb))
return
var/turf/T = get_turf(src)
Expand Down Expand Up @@ -155,3 +156,4 @@
investigate_log("wire splicing was reinforced to [messiness] by [key_name(usr)] in [AREACOORD(src)]")

#undef MAX_MESSINESS
#undef WALKING_REDUCE_PROBABILITY

0 comments on commit dba66c1

Please sign in to comment.