Skip to content

Commit

Permalink
[no gbp] Lazy Templates can be configured to Place on Top, deathmatch…
Browse files Browse the repository at this point in the history
… does this now (tgstation#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  tgstation#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
:cl:
fix: fixes deathmatch baseturfs (you cant crowbar the floor to breach to
space)
/:cl:
  • Loading branch information
mc-oofert authored Mar 4, 2024
1 parent c1fba9e commit 900cf05
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions code/datums/lazy_template.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions code/modules/bitrunning/virtual_domain/virtual_domain.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion code/modules/deathmatch/deathmatch_maps.dm
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 900cf05

Please sign in to comment.