mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 15:08:02 +01:00
Mapping May Event - NAS Trurl Dioramas! (#31961)
* initial commit
* adds a blank diorama and updates the diorama template file
* linter
* linter pt. 2
* tweaks some diorama areas, adds some more dioramas, and moves the diorama location on the Trurl
* adds alfie's "making decisions" diorama
* Revert "adds alfie's "making decisions" diorama"
This reverts commit a208768570.
* thank you linux for making a faux dmm file
* fixes some areas and fixes the position of the diorama area
This commit is contained in:
@@ -136,6 +136,7 @@
|
||||
preloadBridgeTemplates()
|
||||
preloadEventTemplates()
|
||||
preloadLazyTemplates()
|
||||
preloadDiorama()
|
||||
|
||||
/proc/preloadRuinTemplates()
|
||||
// Merge the active lists together
|
||||
@@ -218,3 +219,22 @@
|
||||
var/datum/map_template/lazy/L = new lazy_type()
|
||||
|
||||
GLOB.map_templates[L.name] = L
|
||||
|
||||
/proc/preloadDiorama()
|
||||
var/list/valid_dioramas = list()
|
||||
|
||||
for(var/item in subtypesof(/datum/map_template/diorama))
|
||||
var/datum/map_template/diorama/diorama_type = item
|
||||
if(!initial(diorama_type.mappath))
|
||||
continue
|
||||
var/datum/map_template/diorama/E = new diorama_type()
|
||||
GLOB.map_templates[E.diorama_id] = E
|
||||
valid_dioramas += E
|
||||
|
||||
if(length(valid_dioramas))
|
||||
var/datum/map_template/diorama/chosen = pick(valid_dioramas)
|
||||
var/turf/T = locate(108, 115, 1)
|
||||
if(chosen.fits_in_map_bounds(T))
|
||||
chosen.load(T)
|
||||
for(var/obj/structure/diorama_sign/S in world)
|
||||
S.desc = chosen.description
|
||||
|
||||
Reference in New Issue
Block a user