Singletons + refactor of /datum/observ (#15487)

This commit is contained in:
Fluffy
2023-01-05 18:41:40 +01:00
committed by GitHub
parent 95f8207f08
commit 0ddcf0817a
507 changed files with 7603 additions and 7214 deletions

View File

@@ -1,7 +1,7 @@
/datum/submap
var/name
var/pref_name
var/decl/submap_archetype/archetype
var/singleton/submap_archetype/archetype
var/associated_z
/datum/submap/New(var/existing_z)
@@ -12,7 +12,7 @@
SSmapping.submaps -= src
. = ..()
/datum/submap/proc/setup_submap(var/decl/submap_archetype/_archetype)
/datum/submap/proc/setup_submap(var/singleton/submap_archetype/_archetype)
if(!istype(_archetype))
log_game( "Submap error - [name] - null or invalid archetype supplied ([_archetype]).")

View File

@@ -1,15 +1,15 @@
/decl/submap_archetype
/singleton/submap_archetype
var/map
var/descriptor = "generic ship archetype"
/decl/submap_archetype/Destroy()
/singleton/submap_archetype/Destroy()
if(SSmapping.submap_archetypes[descriptor] == src)
SSmapping.submap_archetypes -= descriptor
. = ..()
// Generic ships to populate the list.
/decl/submap_archetype/derelict
/singleton/submap_archetype/derelict
descriptor = "drifting wreck"
/decl/submap_archetype/abandoned_ship
/singleton/submap_archetype/abandoned_ship
descriptor = "abandoned ship"