mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 12:37:26 +01:00
Set biomass and glowshroom procs to background. Lessee if that helps. It should.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1557 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
var/newicon = 1 //DEBUG
|
||||
|
||||
/obj/rift/New()
|
||||
set background = 1
|
||||
|
||||
..()
|
||||
|
||||
for(var/turf/T in orange(1,src))
|
||||
@@ -39,6 +41,8 @@
|
||||
..()
|
||||
|
||||
/obj/biomass/New()
|
||||
set background = 1
|
||||
|
||||
..()
|
||||
if(!IsValidBiomassLoc(loc,src))
|
||||
del(src)
|
||||
@@ -59,6 +63,7 @@
|
||||
Spread()
|
||||
|
||||
/obj/biomass/proc/Spread(var/direction = dir)
|
||||
set background = 1
|
||||
var/possibleDirsInt = 0
|
||||
|
||||
for(var/newDirection in cardinal)
|
||||
@@ -99,6 +104,7 @@
|
||||
// NewSpread()
|
||||
|
||||
/obj/biomass/proc/NewSpread(maxDistance = 15)
|
||||
set background = 1
|
||||
for(var/turf/T in orange(1,src))
|
||||
if(!IsValidBiomassLoc(T,src))
|
||||
continue
|
||||
@@ -107,6 +113,7 @@
|
||||
starting.maxDistance = maxDistance
|
||||
|
||||
/proc/IsValidBiomassLoc(turf/location,obj/biomass/source = null)
|
||||
set background = 1
|
||||
for(var/obj/biomass/biomass in location)
|
||||
if(biomass != source)
|
||||
return 0
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
spreadChance = 0
|
||||
|
||||
/obj/glowshroom/New()
|
||||
set background = 1
|
||||
..()
|
||||
|
||||
dir = CalcDir()
|
||||
@@ -95,6 +96,7 @@
|
||||
sleep(delay)
|
||||
|
||||
/obj/glowshroom/proc/CalcDir(turf/location = loc)
|
||||
set background = 1
|
||||
var/direction = 16
|
||||
|
||||
for(var/wallDir in cardinal)
|
||||
|
||||
Reference in New Issue
Block a user