Reenables SHOULD_NOT_SLEEP on initialize (#53378)

This commit is contained in:
TiviPlus
2020-09-04 20:44:08 -03:00
committed by GitHub
parent 56e263db44
commit 550e763433
22 changed files with 29 additions and 24 deletions
+1 -1
View File
@@ -94,7 +94,7 @@
trauma = _trauma
owner = trauma.owner
setup_friend()
INVOKE_ASYNC(src, .proc/setup_friend)
join = new
join.Grant(src)
+1 -1
View File
@@ -237,7 +237,7 @@
/obj/item/disk/holodisk/Initialize(mapload)
. = ..()
if(preset_record_text)
build_record()
INVOKE_ASYNC(src, .proc/build_record)
/obj/item/disk/holodisk/Destroy()
QDEL_NULL(record)
+1 -1
View File
@@ -258,7 +258,7 @@
var/datum/team/antag_team = A.get_team()
if(antag_team)
antag_team.add_member(src)
A.on_gain()
INVOKE_ASYNC(A, /datum/antagonist.proc/on_gain)
log_game("[key_name(src)] has gained antag datum [A.name]([A.type])")
return A
+1 -1
View File
@@ -195,7 +195,7 @@
* * [/turf/open/space/Initialize]
*/
/atom/proc/Initialize(mapload, ...)
//SHOULD_NOT_SLEEP(TRUE)
SHOULD_NOT_SLEEP(TRUE)
SHOULD_CALL_PARENT(TRUE)
if(flags_1 & INITIALIZED_1)
stack_trace("Warning: [src]([type]) initialized multiple times!")
+1 -1
View File
@@ -88,7 +88,7 @@
var/list/default_arenas = flist(arena_dir)
for(var/arena_file in default_arenas)
var/simple_name = replacetext(replacetext(arena_file,arena_dir,""),".dmm","")
add_new_arena_template(null,arena_dir + arena_file,simple_name)
INVOKE_ASYNC(src, .proc/add_new_arena_template, null, arena_dir + arena_file, simple_name)
/obj/machinery/computer/arena/proc/get_landmark_turf(landmark_tag)
for(var/obj/effect/landmark/arena/L in GLOB.landmarks_list)
+1 -1
View File
@@ -23,7 +23,7 @@
. = ..()
SSradio.remove_object(src, air_frequency)
air_connection = SSradio.add_object(src, air_frequency, RADIO_TO_AIRALARM)
open()
INVOKE_ASYNC(src, .proc/open)
/obj/machinery/door/airlock/alarmlock/receive_signal(datum/signal/signal)
..()
+2 -2
View File
@@ -41,13 +41,13 @@
jackpots = rand(1, 4) //false hope
plays = rand(75, 200)
toggle_reel_spin(1) //The reels won't spin unless we activate them
INVOKE_ASYNC(src, .proc/toggle_reel_spin, TRUE)//The reels won't spin unless we activate them
var/list/reel = reels[1]
for(var/i = 0, i < reel.len, i++) //Populate the reels.
randomize_reels()
toggle_reel_spin(0)
INVOKE_ASYNC(src, .proc/toggle_reel_spin, FALSE)
for(cointype in typesof(/obj/item/coin))
var/obj/item/coin/C = new cointype
+1 -1
View File
@@ -141,7 +141,7 @@
/obj/effect/anomaly/grav/high/Initialize(mapload, new_lifespan)
. = ..()
setup_grav_field()
INVOKE_ASYNC(src, .proc/setup_grav_field)
/obj/effect/anomaly/grav/high/proc/setup_grav_field()
grav_field = make_field(/datum/proximity_monitor/advanced/gravity, list("current_range" = 7, "host" = src, "gravity_value" = rand(0,3)))
+1 -1
View File
@@ -70,7 +70,7 @@
if(merge)
for(var/obj/item/stack/S in loc)
if(S.merge_type == merge_type)
merge(S)
INVOKE_ASYNC(src, .proc/merge, S)
var/list/temp_recipes = get_main_recipes()
recipes = temp_recipes.Copy()
if(material_type)
+1 -1
View File
@@ -63,7 +63,7 @@
/obj/effect/mob_spawn/Initialize(mapload)
. = ..()
if(instant || (roundstart && (mapload || (SSticker && SSticker.current_state > GAME_STATE_SETTING_UP))))
create()
INVOKE_ASYNC(src, .proc/create)
else if(ghost_usable)
GLOB.poi_list |= src
LAZYADD(GLOB.mob_spawners[name], src)
-1
View File
@@ -146,7 +146,6 @@
if(active_sound)
while(up)
playsound(src, "[active_sound]", 100, FALSE, 4)
sleep(15)
/obj/item/clothing/head/helmet/justice
name = "helmet of justice"
+2 -2
View File
@@ -16,7 +16,7 @@
if(!F.check_variables() && !override_checks)
QDEL_NULL(F)
if(start_field && (F || override_checks))
F.Initialize()
F.begin_field()
return F
/datum/proximity_monitor/advanced
@@ -82,7 +82,7 @@
if(requires_processing)
START_PROCESSING(SSfields, src)
/datum/proximity_monitor/advanced/proc/Initialize()
/datum/proximity_monitor/advanced/proc/begin_field()
setup_field()
post_setup_field()
+1 -1
View File
@@ -33,7 +33,7 @@
if(G.summoner && locate(/obj/effect/proc_holder/spell/aoe_turf/timestop) in G.summoner.mind.spell_list) //It would only make sense that a person's stand would also be immune.
immune[G] = TRUE
if(start)
timestop()
INVOKE_ASYNC(src, .proc/timestop)
/obj/effect/timestop/Destroy()
qdel(chronofield)
+1 -1
View File
@@ -11,7 +11,7 @@
if(path)
mappath = path
if(mappath)
preload_size(mappath, cache)
INVOKE_ASYNC(src, .proc/preload_size, mappath, cache)
if(rename)
name = rename
@@ -10,7 +10,7 @@
setup_human_dna()
if(dna.species)
set_species(dna.species.type)
INVOKE_ASYNC(src, .proc/set_species, dna.species.type)
//initialise organs
create_internal_organs() //most of it is done in set_species now, this is only for parent call
@@ -1200,7 +1200,7 @@
/mob/living/carbon/human/species/Initialize()
. = ..()
set_species(race)
INVOKE_ASYNC(src, .proc/set_species, race)
/mob/living/carbon/human/species/abductor
race = /datum/species/abductor
+1 -1
View File
@@ -135,7 +135,7 @@
create_eye()
if(client)
apply_pref_name("ai",client)
INVOKE_ASYNC(src, .proc/apply_pref_name,"ai",client)
set_core_display_icon()
@@ -155,7 +155,7 @@
mmi.brainmob.container = mmi
mmi.update_icon()
updatename()
INVOKE_ASYNC(src, .proc/updatename)
playsound(loc, 'sound/voice/liveagain.ogg', 75, TRUE)
aicamera = new/obj/item/camera/siliconcam/robot_camera(src)
@@ -880,7 +880,7 @@
hat_offset = module.hat_offset
magpulse = module.magpulsing
updatename()
INVOKE_ASYNC(src, .proc/updatename)
/mob/living/silicon/robot/proc/place_on_head(obj/item/new_hat)
@@ -80,7 +80,7 @@
/obj/structure/leaper_bubble/Initialize()
. = ..()
float(on = TRUE)
INVOKE_ASYNC(src, /atom/movable.proc/float, TRUE)
QDEL_IN(src, 100)
/obj/structure/leaper_bubble/Destroy()
@@ -220,6 +220,9 @@
/obj/effect/temp_visual/goliath_tentacle/broodmother/patch/Initialize(mapload, new_spawner)
. = ..()
INVOKE_ASYNC(src, .proc/createpatch)
/obj/effect/temp_visual/goliath_tentacle/broodmother/patch/proc/createpatch()
var/tentacle_locs = spiral_range_turfs(1, get_turf(src))
for(var/T in tentacle_locs)
new /obj/effect/temp_visual/goliath_tentacle/broodmother(T, spawner)
@@ -36,6 +36,9 @@
riot = new /datum/action/cooldown/riot
coffer.Grant(src)
riot.Grant(src)
INVOKE_ASYNC(src, .proc/get_player)
/mob/living/simple_animal/hostile/regalrat/proc/get_player()
var/list/mob/dead/observer/candidates = pollGhostCandidates("Do you want to play as the Royal Rat, cheesey be his crown?", ROLE_SENTIENCE, null, FALSE, 100, POLL_IGNORE_SENTIENCE_POTION)
if(LAZYLEN(candidates) && !mind)
var/mob/dead/observer/C = pick(candidates)
@@ -26,7 +26,7 @@
/mob/living/simple_animal/hostile/zombie/Initialize(mapload)
. = ..()
setup_visuals()
INVOKE_ASYNC(src, .proc/setup_visuals)
/mob/living/simple_animal/hostile/zombie/proc/setup_visuals()
var/datum/preferences/dummy_prefs = new
@@ -32,7 +32,7 @@
return
AI = AI_pilot
AI.apply_damage(150, BURN) //Give the AI a bit of damage from the "shock" of being suddenly shut down
AI.death() //The damage is not enough to kill the AI, but to be 'corrupted files' in need of repair.
INVOKE_ASYNC(AI, /mob/living/silicon.proc/death) //The damage is not enough to kill the AI, but to be 'corrupted files' in need of repair.
AI.forceMove(src) //Put the dead AI inside the wreckage for recovery
add_overlay(mutable_appearance('icons/obj/projectiles.dmi', "green_laser")) //Overlay for the recovery beacon
AI.controlled_mech = null