mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 18:11:47 +00:00
Added parent smoothing target
This commit is contained in:
@@ -262,7 +262,8 @@
|
||||
var/area/target_area = get_area(target_turf)
|
||||
var/area/source_area = get_area(src)
|
||||
if((source_area.area_limited_icon_smoothing || target_area.area_limited_icon_smoothing) && !istype(source_area, target_area.type) && !istype(target_area, source_area.type))
|
||||
return NO_ADJ_FOUND
|
||||
if(!source_area.area_smoothing_parent || !istype(target_area, source_area.area_smoothing_parent))
|
||||
return NO_ADJ_FOUND
|
||||
|
||||
if(isnull(canSmoothWith)) //special case in which it will only smooth with itself
|
||||
if(isturf(src))
|
||||
|
||||
@@ -62,6 +62,8 @@
|
||||
|
||||
///Boolean to limit the areas (subtypes included) that atoms in this area can smooth with. Used for shuttles.
|
||||
var/area_limited_icon_smoothing = FALSE
|
||||
///Parent area can smooth with when using limited area smoothing
|
||||
var/area/area_smoothing_parent
|
||||
|
||||
var/list/power_usage
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
/area/shuttle/syndicate
|
||||
name = "Syndicate Infiltrator"
|
||||
ambientsounds = HIGHSEC
|
||||
area_smoothing_parent=/area/shuttle/syndicate
|
||||
|
||||
/area/shuttle/syndicate/bridge
|
||||
name = "Syndicate Infiltrator Control"
|
||||
@@ -64,6 +65,7 @@
|
||||
/area/shuttle/abandoned
|
||||
name = "Abandoned Ship"
|
||||
requires_power = TRUE
|
||||
area_smoothing_parent=/area/shuttle/abandoned
|
||||
|
||||
/area/shuttle/abandoned/bridge
|
||||
name = "Abandoned Ship Bridge"
|
||||
|
||||
Reference in New Issue
Block a user