Skip to content

Commit

Permalink
handrails (#3002)
Browse files Browse the repository at this point in the history
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request
This adds handrails, from Baystation - original PR that added them is
[here](Baystation12/Baystation12#18474). This
doesn't actually add anything to any maps, but adds it as a structure
for mappers to use. I did a little bit of work by adding a crafting
recipe, and simplifying things by making it a chair subtype.
<!-- Describe The Pull Request. Please be sure every change is
documented or this can delay review and even discourage maintainers from
merging your PR! -->

## Why It's Good For The Game
It's like. You can grab onto them. Makes Zero-G ships better, helps with
transits so people don't go awkwardly rushing to chairs or just flop to
the floor.
<!-- Please add a short description of why you think these changes would
benefit the game. If you can't justify it in words, it might not be
worth adding. -->

## Changelog

:cl: fighterslam, comma
add: Handrails, rails on the wall that you can grab/buckle yourself to.
(*Not included in any maps with this PR, but craftable with 4 iron
rods.)
:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->
  • Loading branch information
fighterslam authored Jun 8, 2024
1 parent acbdd45 commit 0449e6d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/game/objects/items/stacks/rods.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ GLOBAL_LIST_INIT(rod_recipes, list ( \
new/datum/stack_recipe("modern railing corner", /obj/structure/railing/modern/corner, 1, time = 10, window_checks = TRUE), \
new/datum/stack_recipe("modern railing end", /obj/structure/railing/modern/end, 3, time = 18, window_checks = TRUE), \
new/datum/stack_recipe("ladder", /obj/structure/ladder/crafted, 15, time = 150, one_per_turf = TRUE, on_floor = FALSE), \
new/datum/stack_recipe("handrail", /obj/structure/chair/handrail, 4, time = 15, one_per_turf = TRUE), \
))

/obj/item/stack/rods
Expand Down
9 changes: 9 additions & 0 deletions code/game/objects/structures/beds_chairs/chair.dm
Original file line number Diff line number Diff line change
Expand Up @@ -355,3 +355,12 @@
custom_materials = list(/datum/material/plastic = 2000)
break_chance = 25
origin_type = /obj/structure/chair/plastic

/obj/structure/chair/handrail
name = "handrail"
icon = 'icons/obj/structures/handrail.dmi'
icon_state = "handrail"
desc = "A safety railing with buckles to secure yourself to when floor isn't stable enough."
item_chair = null
buildstackamount = 4
buildstacktype = /obj/item/stack/rods
Binary file added icons/obj/structures/handrail.dmi
Binary file not shown.

0 comments on commit 0449e6d

Please sign in to comment.