mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 05:51:56 +01:00
fixes stuff, i guess.
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
|
||||
//If this hits 0 then they decide to up and leave.
|
||||
/datum/trader/proc/tick()
|
||||
addtimer(CALLBACK(src, .proc/do_after_tick), 0)
|
||||
addtimer(CALLBACK(src, .proc/do_after_tick), 1)
|
||||
return 1
|
||||
|
||||
/datum/trader/proc/do_after_tick()
|
||||
|
||||
@@ -171,7 +171,7 @@
|
||||
update_icon()
|
||||
updateUsrDialog()
|
||||
|
||||
addtimer(CALLBACK(src, .proc/do_reels), 0)
|
||||
addtimer(CALLBACK(src, .proc/do_reels), 1)
|
||||
|
||||
addtimer(CALLBACK(src, .proc/finish_spin, user, the_name), SPIN_TIME - (REEL_DEACTIVATE_DELAY * reels.len)) //WARNING: no sanity checking for user since it's not needed and would complicate things (machine should still spin even if user is gone), be wary of this if you're changing this code.
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
reagents.my_atom = src
|
||||
soundloop = new(list(src), FALSE)
|
||||
if (mapload)
|
||||
addtimer(CALLBACK(src, .proc/setup_recipes), 0)
|
||||
addtimer(CALLBACK(src, .proc/setup_recipes), 1)
|
||||
else
|
||||
setup_recipes()
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ var/list/obj/machinery/newscaster/allCasters = list() //Global list that will co
|
||||
src.ispowered = 1
|
||||
src.update_icon()
|
||||
else
|
||||
addtimer(CALLBACK(src, .proc/post_power_loss), rand(0, 15))
|
||||
addtimer(CALLBACK(src, .proc/post_power_loss), rand(1, 15))
|
||||
|
||||
/obj/machinery/newscaster/proc/post_power_loss()
|
||||
ispowered = 0
|
||||
|
||||
@@ -289,7 +289,7 @@
|
||||
if(powered())
|
||||
queue_icon_update()
|
||||
else
|
||||
addtimer(CALLBACK(src, .proc/lose_power), rand(0, 15))
|
||||
addtimer(CALLBACK(src, .proc/lose_power), rand(1, 15))
|
||||
|
||||
/obj/machinery/porta_turret/proc/lose_power()
|
||||
stat |= NOPOWER
|
||||
|
||||
@@ -633,7 +633,7 @@
|
||||
orient2hud(null, mapload)
|
||||
|
||||
if (defer_shrinkwrap) // Caller wants to defer shrinkwrapping until after the current callstack; probably putting something in.
|
||||
addtimer(CALLBACK(src, .proc/shrinkwrap), 0)
|
||||
addtimer(CALLBACK(src, .proc/shrinkwrap), 1)
|
||||
else
|
||||
shrinkwrap()
|
||||
|
||||
|
||||
@@ -416,12 +416,12 @@
|
||||
|
||||
/obj/item/clothing/gloves/dropped()
|
||||
..()
|
||||
addtimer(CALLBACK(src, .proc/update_wearer), 0)
|
||||
INVOKE_ASYNC(src, .proc/update_wearer)
|
||||
|
||||
/obj/item/clothing/gloves/mob_can_unequip()
|
||||
. = ..()
|
||||
if (.)
|
||||
addtimer(CALLBACK(src, .proc/update_wearer), 0)
|
||||
INVOKE_ASYNC(src, .proc/update_wearer)
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
//Head
|
||||
|
||||
@@ -81,12 +81,12 @@
|
||||
|
||||
/obj/item/clothing/shoes/magboots/dropped()
|
||||
..()
|
||||
addtimer(CALLBACK(src, .proc/update_wearer), 0)
|
||||
INVOKE_ASYNC(src, .proc/update_wearer)
|
||||
|
||||
/obj/item/clothing/shoes/magboots/mob_can_unequip()
|
||||
. = ..()
|
||||
if (.)
|
||||
addtimer(CALLBACK(src, .proc/update_wearer), 0)
|
||||
INVOKE_ASYNC(src, .proc/update_wearer)
|
||||
|
||||
/obj/item/clothing/shoes/magboots/examine(mob/user)
|
||||
..(user)
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
. = ..()
|
||||
name = "[initial(name)] ([spawn_category])"
|
||||
|
||||
addtimer(CALLBACK(src, .proc/populate_shelves), 0)
|
||||
addtimer(CALLBACK(src, .proc/populate_shelves), 1)
|
||||
|
||||
/obj/structure/bookcase/libraryspawn/proc/populate_shelves()
|
||||
if (!establish_db_connection(dbcon))
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
set name = "Tie Hair"
|
||||
set desc = "Style your hair."
|
||||
set category = "IC"
|
||||
|
||||
|
||||
if(!use_check_and_message())
|
||||
to_chat(src, span("warning", "You can't tie your hair when you are incapacitated!"))
|
||||
return
|
||||
@@ -928,7 +928,7 @@ mob/living/carbon/human/proc/change_monitor()
|
||||
|
||||
var/mob/living/carbon/human/G = new(src.loc)
|
||||
G.key = O.brainmob.key
|
||||
addtimer(CALLBACK(G, /mob/living/carbon/human.proc/set_species, O.dna.species), 0)
|
||||
addtimer(CALLBACK(G, /mob/living/carbon/human.proc/set_species, O.dna.species), 1)
|
||||
to_chat(src,"<span class='notice'>You blow life back in \the [O], returning its past owner to life!</span>")
|
||||
qdel(O)
|
||||
last_special = world.time + 200
|
||||
|
||||
@@ -407,7 +407,7 @@ var/global/list/golem_types = list("Coal Golem",
|
||||
for(var/i in 1 to 5)
|
||||
var/obj/item/material/shard/T = new meat_type(H.loc)
|
||||
var/turf/landing = get_step(H, pick(alldirs))
|
||||
addtimer(CALLBACK(T, /atom/movable/.proc/throw_at, landing, 30, 5), 0)
|
||||
addtimer(CALLBACK(T, /atom/movable/.proc/throw_at, landing, 30, 5), 1)
|
||||
qdel(H)
|
||||
|
||||
/datum/species/golem/glass/handle_post_spawn(var/mob/living/carbon/human/H)
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
for(var/i in 1 to 5)
|
||||
var/mob/living/simple_animal/hostile/gift/T = new /mob/living/simple_animal/hostile/gift(get_turf(src))
|
||||
var/turf/landing = get_step(src, pick(alldirs))
|
||||
addtimer(CALLBACK(T, /atom/movable/.proc/throw_at, landing, 30, 5), 0)
|
||||
addtimer(CALLBACK(T, /atom/movable/.proc/throw_at, landing, 30, 5), 1)
|
||||
|
||||
/mob/living/simple_animal/hostile/krampus/proc/send_to_hell(mob/living/M)
|
||||
if(!M)
|
||||
|
||||
@@ -155,11 +155,11 @@
|
||||
..()
|
||||
if(source)
|
||||
to_chat(user, "<span class='notice'>\The [src] snaps back onto \the [source].</span>")
|
||||
addtimer(CALLBACK(source, /obj/item/minigunpack/.proc/remove_gun), 0)
|
||||
addtimer(CALLBACK(source, /obj/item/minigunpack/.proc/remove_gun), 1)
|
||||
source.update_icon()
|
||||
user.update_inv_back()
|
||||
|
||||
/obj/item/gun/projectile/automatic/rifle/minigun/Move()
|
||||
..()
|
||||
if(loc != source.loc)
|
||||
addtimer(CALLBACK(source, /obj/item/minigunpack/.proc/remove_gun), 0)
|
||||
addtimer(CALLBACK(source, /obj/item/minigunpack/.proc/remove_gun), 1)
|
||||
@@ -75,7 +75,7 @@
|
||||
H.name += " [pick(last_names)]"
|
||||
H.real_name = H.name
|
||||
|
||||
addtimer(CALLBACK(H, /mob/living/carbon/human.proc/set_species, randomize), 0)
|
||||
addtimer(CALLBACK(H, /mob/living/carbon/human.proc/set_species, randomize), 1)
|
||||
H.universal_speak = 1
|
||||
var/datum/preferences/A = new() //Randomize appearance for the human
|
||||
A.randomize_appearance_for(H)
|
||||
|
||||
Reference in New Issue
Block a user