[MIRROR] [no gbp] Lazy Templates can be configured to Place on Top, deathmatch does this now (#26746)

* [no gbp] Lazy Templates can be configured to Place on Top, deathmatch does this now (#81783)

## About The Pull Request

this is very much a code thing im not sure what i would say this just
adds an extra variable
also should be no sideeffects this is handled by turf reservations

also virtual domains (fixes  #81779)

## Why It's Good For The Game
![2024-03-02
11_28_18-Window](https://github.com/tgstation/tgstation/assets/70376633/85d094d3-c877-418f-bec9-af2f16736352)
this would formerly breach to space
## Changelog
🆑
fix: fixes deathmatch baseturfs (you cant crowbar the floor to breach to
space)
/🆑

* [no gbp] Lazy Templates can be configured to Place on Top, deathmatch does this now

---------

Co-authored-by: jimmyl <70376633+mc-oofert@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-03-04 22:14:43 +01:00
committed by GitHub
parent 01f1301941
commit 5ea84cd3f6
3 changed files with 7 additions and 1 deletions
+3
View File
@@ -13,6 +13,8 @@
var/map_dir = "_maps/templates/lazy_templates"
/// The filename (without extension) of the map to load
var/map_name
/// place_on_top: Whether to use /turf/proc/PlaceOnTop rather than /turf/proc/ChangeTurf
var/place_on_top = FALSE
/datum/lazy_template/New()
reservations = list()
@@ -83,6 +85,7 @@
bottom_left.z,
z_upper = z_idx,
z_lower = z_idx,
place_on_top = place_on_top,
)
for(var/turf/turf as anything in block(bottom_left, top_right))
loaded_turfs += turf
@@ -6,6 +6,7 @@
map_dir = "_maps/virtual_domains"
map_name = "None"
key = "Virtual Domain"
place_on_top = TRUE
/// Cost of this map to load
var/cost = BITRUNNER_COST_NONE
+3 -1
View File
@@ -1,6 +1,8 @@
/datum/lazy_template/deathmatch //deathmatch maps that have any possibility of the walls being destroyed should use indestructible walls, because baseturf moment
var/name
map_dir = "_maps/map_files/Deathmatch"
place_on_top = TRUE
/// Map UI Name
var/name
/// Map Description
var/desc = ""
var/min_players = 2