mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 16:38:22 +01:00
Convert clothing to initialize (#3263)
changes: Converted all clothing types to Initialize. Added some missing destroys to some custom items. Char setup now forcibly initializes the mannequin's contents if SSatoms has not finished yet. /obj/item/clothing/under no longer does in icon_states() in New().
This commit is contained in:
@@ -119,6 +119,17 @@ var/datum/controller/subsystem/atoms/SSatoms
|
||||
|
||||
return QDELETED(A)
|
||||
|
||||
/datum/controller/subsystem/atoms/proc/ForceInitializeContents(atom/A)
|
||||
var/list/mload_args = list(TRUE)
|
||||
var/loaded = 0
|
||||
for (var/thing in A)
|
||||
var/atom/movable/AM = thing
|
||||
if (!AM.initialized)
|
||||
InitAtom(AM, mload_args)
|
||||
++loaded
|
||||
|
||||
log_debug("atoms: force-loaded [loaded] out of [A.contents.len] atoms in [A].")
|
||||
|
||||
/datum/controller/subsystem/atoms/proc/InitLog()
|
||||
. = ""
|
||||
for(var/path in BadInitializeCalls)
|
||||
|
||||
Reference in New Issue
Block a user