mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
global lists global defined
This commit is contained in:
@@ -36,14 +36,14 @@
|
||||
..()
|
||||
spirits = list()
|
||||
processing_objects.Add(src)
|
||||
poi_list |= src
|
||||
GLOB.poi_list |= src
|
||||
|
||||
/obj/item/melee/ghost_sword/Destroy()
|
||||
for(var/mob/dead/observer/G in spirits)
|
||||
G.invisibility = initial(G.invisibility)
|
||||
spirits.Cut()
|
||||
processing_objects.Remove(src)
|
||||
poi_list -= src
|
||||
GLOB.poi_list -= src
|
||||
. = ..()
|
||||
|
||||
/obj/item/melee/ghost_sword/attack_self(mob/user)
|
||||
@@ -71,7 +71,7 @@
|
||||
var/list/contents = T.GetAllContents()
|
||||
var/mob/dead/observer/current_spirits = list()
|
||||
|
||||
for(var/mob/dead/observer/O in player_list)
|
||||
for(var/mob/dead/observer/O in GLOB.player_list)
|
||||
if(is_type_in_list(O.following, contents))
|
||||
ghost_counter++
|
||||
O.invisibility = 0
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
return
|
||||
|
||||
used = TRUE
|
||||
var/choice = input(user,"Who do you want dead?","Choose Your Victim") as null|anything in player_list
|
||||
var/choice = input(user,"Who do you want dead?","Choose Your Victim") as null|anything in GLOB.player_list
|
||||
|
||||
if(!choice)
|
||||
used = FALSE
|
||||
@@ -72,7 +72,7 @@
|
||||
var/obj/effect/mine/pickup/bloodbath/B = new(L)
|
||||
B.mineEffect(L)
|
||||
|
||||
for(var/mob/living/carbon/human/H in player_list)
|
||||
for(var/mob/living/carbon/human/H in GLOB.player_list)
|
||||
if(H == L)
|
||||
continue
|
||||
to_chat(H, "<span class='userdanger'>You have an overwhelming desire to kill [L]. [L.p_they(TRUE)] [L.p_have()] been marked red! Go kill [L.p_them()]!</span>")
|
||||
|
||||
@@ -56,7 +56,7 @@ var/global/list/rockTurfEdgeCache = list(
|
||||
|
||||
/turf/simulated/mineral/New()
|
||||
..()
|
||||
mineral_turfs += src
|
||||
GLOB.mineral_turfs += src
|
||||
|
||||
if(mineralType && mineralAmt && spread && spreadChance)
|
||||
for(var/dir in cardinal)
|
||||
@@ -79,7 +79,7 @@ var/global/list/rockTurfEdgeCache = list(
|
||||
/hook/startup/proc/add_mineral_edges()
|
||||
var/watch = start_watch()
|
||||
log_startup_progress("Reticulating splines...")
|
||||
for(var/turf/simulated/mineral/M in mineral_turfs)
|
||||
for(var/turf/simulated/mineral/M in GLOB.mineral_turfs)
|
||||
M.add_edges()
|
||||
log_startup_progress(" Splines reticulated in [stop_watch(watch)]s.")
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user