mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-29 23:16:21 +01:00
Update every initialize() proc to return an initialize hint.
* Yes, all of them. * Also did a few corrections to redundant New() and broken Destroy() along the way * Renamed the turf_initializer.initialize() proc to InitializeTurf to avoid confusion. * Subsumed /area/proc/initialize into /atom/proc/initialize() - Made /area's LateInitialize to get same behavior as before.
This commit is contained in:
@@ -24,9 +24,12 @@
|
||||
var/corpseidaccess = null //This is for access. See access.dm for which jobs give what access. Again, put in quotes. Use "Captain" if you want it to be all access.
|
||||
var/corpseidicon = null //For setting it to be a gold, silver, CentCom etc ID
|
||||
var/species = "Human"
|
||||
delete_me = TRUE
|
||||
|
||||
/obj/effect/landmark/corpse/initialize()
|
||||
..()
|
||||
createCorpse()
|
||||
return INITIALIZE_HINT_QDEL
|
||||
|
||||
/obj/effect/landmark/corpse/proc/createCorpse() //Creates a mob and checks for gear in each slot before attempting to equip it.
|
||||
var/mob/living/carbon/human/M = new /mob/living/carbon/human (src.loc)
|
||||
@@ -76,7 +79,6 @@
|
||||
W.assignment = corpseidjob
|
||||
M.set_id_info(W)
|
||||
M.equip_to_slot_or_del(W, slot_wear_id)
|
||||
qdel(src)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,14 +10,9 @@
|
||||
|
||||
/obj/machinery/gateway/initialize()
|
||||
update_icon()
|
||||
if(dir == 2 || dir == 6 || dir == 10)
|
||||
if(dir == SOUTH)
|
||||
density = 0
|
||||
|
||||
/obj/machinery/gateway/New() // Doesn't initialize in generated maps which is bad.
|
||||
update_icon()
|
||||
if(dir == 2 || dir == 6 || dir == 10)
|
||||
density = 0
|
||||
|
||||
. = ..()
|
||||
|
||||
/obj/machinery/gateway/update_icon()
|
||||
if(active)
|
||||
@@ -43,7 +38,7 @@
|
||||
update_icon()
|
||||
wait = world.time + config.gateway_delay //+ thirty minutes default
|
||||
awaygate = locate(/obj/machinery/gateway/centeraway)
|
||||
|
||||
. = ..()
|
||||
|
||||
/obj/machinery/gateway/centerstation/update_icon()
|
||||
if(active)
|
||||
@@ -172,6 +167,7 @@ obj/machinery/gateway/centerstation/process()
|
||||
/obj/machinery/gateway/centeraway/initialize()
|
||||
update_icon()
|
||||
stationgate = locate(/obj/machinery/gateway/centerstation)
|
||||
. = ..()
|
||||
|
||||
|
||||
/obj/machinery/gateway/centeraway/update_icon()
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
var/loot = "" //a list of possible items to spawn- a string of paths
|
||||
|
||||
/obj/effect/spawner/lootdrop/initialize()
|
||||
..()
|
||||
var/list/things = params2list(loot)
|
||||
|
||||
if(things && things.len)
|
||||
@@ -21,4 +22,4 @@
|
||||
continue
|
||||
|
||||
new loot_path(get_turf(src))
|
||||
qdel(src)
|
||||
return INITIALIZE_HINT_QDEL
|
||||
|
||||
Reference in New Issue
Block a user