Skip to content

Commit

Permalink
Mapping helper fixes (shiptest-ss13#3850)
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

<!-- Describe The Pull Request. Please be sure every change is
documented or this can delay review and even discourage maintainers from
merging your PR! -->

Fixes mapping helpers for seals and notes. They attached their payloads
to the helper instead of the airlock, sending them to the shadow realm.

## Why It's Good For The Game

<!-- 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. -->

Fixes good

## Changelog

:cl:
fix: Sealed and note placer mapping helper
/: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
Gristlebee authored and MrCat15352 committed Dec 27, 2024
1 parent c5fb3b0 commit 8bc4431
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/mapping/mapping_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
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)
airlock.seal = new /obj/item/door_seal(airlock)



Expand Down Expand Up @@ -383,7 +383,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/mapping_helpers/no_lava)
found_airlock.update_appearance()
qdel(src)
if(note_info)
var/obj/item/paper/paper = new /obj/item/paper(src)
var/obj/item/paper/paper = new /obj/item/paper(found_airlock)
if(note_name)
paper.name = note_name
paper.add_raw_text("[note_info]")
Expand Down

0 comments on commit 8bc4431

Please sign in to comment.