mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 11:36:24 +01:00
[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  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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user