mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-04 06:23:19 +00:00
Properly defines a few global vars (#7938)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
var/static/list/mapped_autostrips = list()
|
||||
var/static/list/mapped_autostrips_mob = list()
|
||||
GLOBAL_LIST_EMPTY(mapped_autostrips)
|
||||
GLOBAL_LIST_EMPTY(mapped_autostrips_mob)
|
||||
|
||||
/*
|
||||
This should actually be refactored if it ever needs to be used again into just being
|
||||
@@ -74,8 +74,8 @@ But for now, for what it's been used for, it works.
|
||||
|
||||
/obj/effect/step_trigger/autostrip/proc/initMappedLink()
|
||||
. = FALSE
|
||||
target = mapped_autostrips[targetid]
|
||||
Mtarget = mapped_autostrips_mob[targetid]
|
||||
target = GLOB.mapped_autostrips[targetid]
|
||||
Mtarget = GLOB.mapped_autostrips_mob[targetid]
|
||||
if(target)
|
||||
. = TRUE
|
||||
|
||||
@@ -93,11 +93,11 @@ But for now, for what it's been used for, it works.
|
||||
/obj/effect/autostriptarget/Initialize(mapload)
|
||||
. = ..()
|
||||
if(targetid)
|
||||
mapped_autostrips[targetid] = src
|
||||
GLOB.mapped_autostrips[targetid] = src
|
||||
|
||||
/obj/effect/autostriptarget/mob
|
||||
name = "Autostrip target to send mobs to."
|
||||
|
||||
/obj/effect/autostriptarget/mob/Initialize(mapload)
|
||||
if(targetid)
|
||||
mapped_autostrips_mob[targetid] = src
|
||||
GLOB.mapped_autostrips_mob[targetid] = src
|
||||
|
||||
Reference in New Issue
Block a user