mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-20 19:44:46 +01:00
ignore light recalc in shuttles and elevators (#17448)
* ignore light recalc in shuttles and elevators * . * Update turf_changing.dm * Update turf_changing.dm * Update turf_changing.dm * bunch of isturf fixes * fix it * inline safe
This commit is contained in:
@@ -76,31 +76,27 @@
|
||||
/obj/effect/plant/single
|
||||
spread_chance = 0
|
||||
|
||||
/obj/effect/plant/New(var/newloc, var/datum/seed/newseed, var/obj/effect/plant/newparent)
|
||||
/obj/effect/plant/Initialize(mapload, var/datum/seed/newseed, var/obj/effect/plant/newparent)
|
||||
. = ..()
|
||||
//VOREStation Edit Start
|
||||
if(istype(loc, /turf/simulated/open))
|
||||
qdel(src)
|
||||
if(isopenturf(loc))
|
||||
return INITIALIZE_HINT_QDEL
|
||||
//VOREStation Edit End
|
||||
..()
|
||||
|
||||
if(!newparent)
|
||||
parent = src
|
||||
else
|
||||
parent = newparent
|
||||
|
||||
if(!SSplants)
|
||||
sleep(250) // ugly hack, should mean roundstart plants are fine. TODO initialize perhaps?
|
||||
if(!SSplants)
|
||||
to_world(span_danger("Plant controller does not exist and [src] requires it. Aborting."))
|
||||
qdel(src)
|
||||
return
|
||||
return INITIALIZE_HINT_QDEL
|
||||
|
||||
if(!istype(newseed))
|
||||
newseed = SSplants.seeds[DEFAULT_SEED]
|
||||
seed = newseed
|
||||
if(!seed)
|
||||
qdel(src)
|
||||
return
|
||||
return INITIALIZE_HINT_QDEL
|
||||
|
||||
name = seed.display_name
|
||||
max_health = round(seed.get_trait(TRAIT_ENDURANCE)/2)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
for(var/check_dir in 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) && !istype(check_dir, /turf/simulated/open)) //Let's not have them go on open space where you can't really get to them.
|
||||
if(istype(T) && !isopenturf(check_dir)) //Let's not have them go on open space where you can't really get to them.
|
||||
cardinal_neighbors |= T
|
||||
//VOREStation Edit End
|
||||
return cardinal_neighbors
|
||||
@@ -122,7 +122,7 @@
|
||||
//Instead, they are created at their parent and then move to their destination.
|
||||
/obj/effect/plant/proc/spread_to(turf/target_turf)
|
||||
//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(target_turf, /turf/simulated/open))
|
||||
if(isopenturf(target_turf))
|
||||
return
|
||||
//VOREStation Edit End
|
||||
var/obj/effect/plant/child = new(get_turf(src),seed,parent)
|
||||
|
||||
@@ -51,11 +51,9 @@
|
||||
icon_state = "blank"
|
||||
|
||||
/obj/machinery/portable_atmospherics/hydroponics/soil/invisible/Initialize(mapload,var/datum/seed/newseed)
|
||||
//VOREStation Addition Start
|
||||
if(istype(loc, /turf/simulated/open) || istype(loc, /turf/space))
|
||||
return INITIALIZE_HINT_QDEL
|
||||
//VOREStation Addition End
|
||||
. = ..()
|
||||
if(isopenturf(loc))
|
||||
return INITIALIZE_HINT_QDEL
|
||||
seed = newseed
|
||||
dead = 0
|
||||
age = 1
|
||||
|
||||
Reference in New Issue
Block a user