Skip to content

Commit

Permalink
Removes the welder deconstruction hint from resin walls (#5163)
Browse files Browse the repository at this point in the history
# About the pull request

Adds a check to `/turf/closed/wall/get_examine_text()` to remove the
deconstruction hint for anything with the `TURF_ORGANIC` flag (currently
only resin walls).

# Explain why it's good for the game

Given that resin walls/membranes can't actually be deconstructed with
tools, it doesn't make much sense to show that message.

# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

**Before:**

![old](https://github.com/cmss13-devs/cmss13/assets/57483089/d2f1b351-5abd-4cb6-acb9-4d6e44c10a31)

**After:**

![new](https://github.com/cmss13-devs/cmss13/assets/57483089/5b234399-7f84-473e-9c5e-83f3c56eb808)

</details>


# Changelog
:cl:
fix: Fixed resin walls/membranes showing a welder deconstruction hint.
/:cl:
  • Loading branch information
SabreML authored Dec 9, 2023
1 parent 2f58b2b commit d3f6827
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/game/turfs/walls/walls.dm
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@
if (acided_hole)
. += SPAN_WARNING("There's a large hole in the wall that could've been caused by some sort of acid.")

if(flags_turf & TURF_ORGANIC)
return // Skip the part below. 'Organic' walls aren't deconstructable with tools.

switch(d_state)
if(WALL_STATE_WELD)
. += SPAN_INFO("The outer plating is intact. A blowtorch should slice it open.")
Expand Down

0 comments on commit d3f6827

Please sign in to comment.