Skip to content

Commit

Permalink
bugfix: rcd kill beach defib recursion (ss220-space#4547)
Browse files Browse the repository at this point in the history
  • Loading branch information
ROdenFL authored Mar 5, 2024
1 parent a3ce05c commit 4e9d3ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/game/objects/items/weapons/defib.dm
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,14 @@
to_chat(user, span_warning("You can't use your hands to take out the paddles!"))
return

paddles_on_defib = FALSE
paddles.loc = get_turf(src) // we need this to play animation properly
if(!user.put_in_hands(paddles, ignore_anim = FALSE))
paddles.loc = src
paddles_on_defib = TRUE
to_chat(user, span_warning("You need a free hand to hold the paddles!"))
return

paddles_on_defib = FALSE
paddles.update_icon(UPDATE_ICON_STATE)
update_icon(UPDATE_OVERLAYS)

Expand Down
3 changes: 3 additions & 0 deletions code/game/turfs/simulated/floor/indestructible.dm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
/turf/simulated/floor/indestructible/welder_act(mob/living/user, obj/item/I)
return

/turf/simulated/floor/indestructible/rcd_deconstruct_act(mob/user, obj/item/rcd/our_rcd)
return

/turf/simulated/floor/indestructible/plating
name = "plating"
icon_state = "plating"
Expand Down

0 comments on commit 4e9d3ec

Please sign in to comment.