mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
migrate all /obj/item from /New() to /Initialize() (#31232)
* migrate all /obj/item from /New() to /Initialize() * move GLOB.chemical_reagents_list creation to /world/New() * review * oops * autodoc a smart var
This commit is contained in:
@@ -1091,9 +1091,9 @@
|
||||
var/mob/living/carbon/human/H = M
|
||||
if(!H.get_int_organ(/obj/item/organ/internal/bone_tumor))
|
||||
if(isslimeperson(H))
|
||||
new /obj/item/organ/internal/bone_tumor/slime_tumor(H)
|
||||
new /obj/item/organ/internal/bone_tumor/slime_tumor(H, H)
|
||||
else
|
||||
new /obj/item/organ/internal/bone_tumor(H)
|
||||
new /obj/item/organ/internal/bone_tumor(H, H)
|
||||
|
||||
return ..()
|
||||
|
||||
|
||||
@@ -43,13 +43,6 @@
|
||||
if(temperature_maximum)
|
||||
temperature_max = temperature_maximum
|
||||
//I dislike having these here but map-objects are initialised before world/New() is called. >_>
|
||||
if(!GLOB.chemical_reagents_list)
|
||||
//Chemical Reagents - Initialises all /datum/reagent into a list indexed by reagent id
|
||||
var/paths = subtypesof(/datum/reagent)
|
||||
GLOB.chemical_reagents_list = list()
|
||||
for(var/path in paths)
|
||||
var/datum/reagent/D = new path()
|
||||
GLOB.chemical_reagents_list[D.id] = D
|
||||
if(!GLOB.chemical_reactions_list)
|
||||
//Chemical Reactions - Initialises all /datum/chemical_reaction into a list
|
||||
// It is filtered into multiple lists within a list.
|
||||
|
||||
Reference in New Issue
Block a user