mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-17 18:13:34 +01:00
Protect arrival shuttle from spacevine (#26567)
This commit is contained in:
committed by
GitHub
parent
a2e509fe84
commit
9e6cf97ebf
@@ -538,6 +538,7 @@
|
||||
var/spread_multiplier = 5
|
||||
var/spread_cap = 30
|
||||
var/mutativeness = 1
|
||||
var/list/protected_areas = list(/area/shuttle/arrival/station)
|
||||
|
||||
/obj/structure/spacevine_controller/New(loc, list/muts, potency, production)
|
||||
color = "#ffffff"
|
||||
@@ -680,7 +681,7 @@
|
||||
spread_success |= SM.on_spread(src, stepturf) // If this returns 1, spreading succeeded
|
||||
if(!locate(/obj/structure/spacevine, stepturf))
|
||||
// snowflake for space turf, but space turf is super common and a big deal
|
||||
if(!isspaceturf(stepturf) && stepturf.Enter(src))
|
||||
if(!isspaceturf(stepturf) && !is_type_in_list(get_area(stepturf), master.protected_areas) && stepturf.Enter(src))
|
||||
if(master)
|
||||
master.spawn_spacevine_piece(stepturf, src)
|
||||
spread_success = TRUE
|
||||
|
||||
Reference in New Issue
Block a user