Skip to content

Commit

Permalink
Prevent chat spam
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy committed Oct 23, 2024
1 parent 39af919 commit a468735
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/datums/elements/climbable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@


/datum/element/climbable/proc/climb_structure(atom/climbed_thing, mob/living/user, params)
if(!can_climb(climbed_thing, user))
if(!can_climb(climbed_thing, user) || DOING_INTERACTION(user, DOAFTER_SOURCE_CLIMBING))
return
climbed_thing.add_fingerprint(user)
user.visible_message(span_warning("[user] starts climbing onto [climbed_thing]."), \
Expand Down Expand Up @@ -154,6 +154,8 @@

///Tries to climb onto the target if the forced movement of the mob allows it
/datum/element/climbable/proc/attempt_sprint_climb(datum/source, mob/bumpee)
if(DOING_INTERACTION(bumpee, DOAFTER_SOURCE_CLIMBING))
return
if(HAS_TRAIT(bumpee, TRAIT_FREERUNNING))
if(do_after(bumpee, climb_time, source, interaction_key = DOAFTER_SOURCE_CLIMBING))
do_climb(source, bumpee)
Expand Down

0 comments on commit a468735

Please sign in to comment.