Skip to content

Commit

Permalink
Add a mapping helper for welding airlocks (tgstation#74206)
Browse files Browse the repository at this point in the history
## About The Pull Request
What it says on the tin. Warning: copy-pasted mapper sprites.

## Why It's Good For The Game

Fewer varedits, better maintainability, more obvious in the map editor
what's been applied to a given airlock.


## Changelog

No player facing changes.
  • Loading branch information
Maurukas authored Mar 25, 2023
1 parent 1393a8e commit 3ae7022
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _maps/RandomRuins/SpaceRuins/oldstation.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -8402,9 +8402,9 @@
/area/ruin/space/ancientstation/beta/atmos)
"XD" = (
/obj/machinery/door/airlock/maintenance_hatch{
name = "Custodial Closet";
welded = 1
name = "Custodial Closet"
},
/obj/effect/mapping_helpers/airlock/welded,
/obj/effect/decal/cleanable/dirt,
/obj/machinery/duct,
/turf/open/floor/iron,
Expand Down
9 changes: 9 additions & 0 deletions code/modules/mapping/mapping_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,15 @@
else
airlock.abandoned = TRUE

/obj/effect/mapping_helpers/airlock/welded
name = "airlock welded helper"
icon_state = "airlock_welded"

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

/obj/effect/mapping_helpers/airlock/cutaiwire
name = "airlock cut ai wire helper"
icon_state = "airlock_cutaiwire"
Expand Down
Binary file modified icons/effects/mapping_helpers.dmi
Binary file not shown.
1 change: 1 addition & 0 deletions tools/UpdatePaths/Scripts/74206_airlock_weld_help.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/obj/machinery/door/airlock/@SUBTYPES{welded = 1} : @OLD{@OLD;welded=@SKIP}, /obj/effect/mapping_helpers/airlock/welded

0 comments on commit 3ae7022

Please sign in to comment.