mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 14:08:44 +01:00
code/global.dm => code/_global_vars/ (#17244)
* 1 * Full conversion * . * . --------- Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -244,7 +244,7 @@
|
||||
closed_turfs |= T
|
||||
valid_turfs |= T
|
||||
|
||||
for(var/dir in alldirs)
|
||||
for(var/dir in GLOB.alldirs)
|
||||
var/turf/neighbor = get_step(T,dir)
|
||||
if(!neighbor || (neighbor in closed_turfs) || (neighbor in open_turfs))
|
||||
continue
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
/proc/spacevine_infestation(var/potency_min=70, var/potency_max=100, var/maturation_min=5, var/maturation_max=15)
|
||||
spawn() //to stop the secrets panel hanging
|
||||
if(vinestart.len) //Pick a turf to spawn at if we can
|
||||
var/turf/simulated/floor/T = pick(vinestart)
|
||||
if(GLOB.vinestart.len) //Pick a turf to spawn at if we can
|
||||
var/turf/simulated/floor/T = pick(GLOB.vinestart)
|
||||
var/datum/seed/seed = SSplants.create_random_seed(1)
|
||||
seed.set_trait(TRAIT_SPREAD,2) // So it will function properly as vines.
|
||||
seed.set_trait(TRAIT_POTENCY,rand(potency_min, potency_max)) // 70-100 potency will help guarantee a wide spread and powerful effects.
|
||||
@@ -206,7 +206,7 @@
|
||||
|
||||
var/direction = 16
|
||||
|
||||
for(var/wallDir in cardinal)
|
||||
for(var/wallDir in GLOB.cardinal)
|
||||
var/turf/newTurf = get_step(T,wallDir)
|
||||
if(newTurf.density)
|
||||
direction |= wallDir
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
/obj/effect/plant/proc/get_cardinal_neighbors()
|
||||
var/list/cardinal_neighbors = list()
|
||||
for(var/check_dir in cardinal)
|
||||
for(var/check_dir in GLOB.cardinal)
|
||||
var/turf/simulated/T = get_step(get_turf(src), check_dir)
|
||||
//VOREStation Edit Start - Vines can go up/down stairs, but don't register that they have done this, so do so infinitely, which is annoying and laggy.
|
||||
if(istype(T) && !isopenturf(check_dir)) //Let's not have them go on open space where you can't really get to them.
|
||||
|
||||
@@ -115,7 +115,7 @@
|
||||
src.visible_message(span_danger("Tendrils lash out from \the [src] and drag \the [victim] in!"))
|
||||
victim.forceMove(src.loc)
|
||||
buckle_mob(victim)
|
||||
victim.set_dir(pick(cardinal))
|
||||
victim.set_dir(pick(GLOB.cardinal))
|
||||
to_chat(victim, span_danger("Tendrils [pick("wind", "tangle", "tighten")] around you!"))
|
||||
victim.Weaken(0.5)
|
||||
seed.do_thorns(victim,src)
|
||||
|
||||
Reference in New Issue
Block a user