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:
Lohikar
2017-08-13 23:32:07 +03:00
committed by Erki
parent d1c3a58c87
commit b8bb48ef76
16 changed files with 112 additions and 79 deletions
@@ -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)