more cleanup

no more oranges, spliced in the vinestart stuff properly
This commit is contained in:
Killian
2022-02-22 03:54:24 +00:00
parent 977c7989c3
commit 34c41fcedf
4 changed files with 16 additions and 12 deletions
@@ -3,15 +3,10 @@
/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
var/list/turf/simulated/floor/turfs = list() //list of all the empty floor turfs in the hallway areas
for(var/areapath in typesof(/area/hallway))
var/area/A = locate(areapath)
for(var/turf/simulated/floor/F in A.contents)
if(!F.check_density())
turfs += F
if(turfs.len) //Pick a turf to spawn at if we can
var/turf/simulated/floor/T = pick(turfs)
//VOREStation Edit Start - override random picking logic with preplaced spawns
if(vinestart.len) //Pick a turf to spawn at if we can
var/turf/simulated/floor/T = pick(vinestart)
//VOREStation Edit End
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.