Skip to content

Commit

Permalink
Adds 2 Airlock Helpers For Mapping (#3515)
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
as title
<!-- 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
mapping tools
<!-- 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:
code: pre-weld and pre-sealed airlock helpers for maps.
/: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. -->

Co-authored-by: Bjarl <94164348+Bjarl@users.noreply.github.com>
  • Loading branch information
Erikafox and Erikafox authored Oct 18, 2024
1 parent 74d7eca commit 83b37f1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions code/modules/mapping/mapping_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,25 @@
else
airlock.locked = TRUE

/obj/effect/mapping_helpers/airlock/welded
name = "airlock welder"

/obj/effect/mapping_helpers/airlock/welded/payload(obj/machinery/door/airlock/airlock)
if(airlock.welded)
log_mapping("[src] at [AREACOORD(src)] tried to weld [airlock] but it's already locked!")
else
airlock.welded = TRUE

/obj/effect/mapping_helpers/airlock/sealed
name = "airlock sealer"

/obj/effect/mapping_helpers/airlock/sealed/payload(obj/machinery/door/airlock/airlock)
if(airlock.seal)
log_mapping("[src] at [AREACOORD(src)] tried to seal [airlock] but it's already already got a seal? What the hell!")
else
airlock.seal = new /obj/item/door_seal(src)



/obj/effect/mapping_helpers/airlock/unres
name = "airlock unresctricted side helper"
Expand Down

0 comments on commit 83b37f1

Please sign in to comment.