mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +01:00
Area tweaks (#20391)
Reworked area changes and power define channels No player visible changes (hopefully)
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
//Must be done here, as light data is not fully carried over by ChangeTurf (but overlays are).
|
||||
set_light(MINIMUM_USEFUL_LIGHT_RANGE, exoplanet.lightlevel, exoplanet.lightcolor)
|
||||
if(exoplanet.planetary_area && istype(loc, world.area))
|
||||
ChangeArea(src, exoplanet.planetary_area)
|
||||
change_area(loc, exoplanet.planetary_area)
|
||||
// if away site
|
||||
else if(istype(template, /datum/map_template/ruin/away_site))
|
||||
var/datum/map_template/ruin/away_site/away_site = template
|
||||
@@ -175,7 +175,7 @@
|
||||
if(!istype(E))
|
||||
return
|
||||
if(E.planetary_area && istype(loc, world.area))
|
||||
ChangeArea(src, E.planetary_area)
|
||||
change_area(loc, E.planetary_area)
|
||||
var/new_x = bumped_atom.x
|
||||
var/new_y = bumped_atom.y
|
||||
if(x <= TRANSITIONEDGE)
|
||||
|
||||
@@ -331,7 +331,7 @@
|
||||
|
||||
/datum/exoplanet_theme/proc/on_turf_generation(turf/T, area/use_area)
|
||||
if(use_area && istype(T.loc, world.area))
|
||||
ChangeArea(T, use_area) // Switch our generated turfs from world.area (space) to our chosen exoplanet area
|
||||
T.change_area(T.loc, use_area) // Switch our generated turfs from world.area (space) to our chosen exoplanet area
|
||||
|
||||
if(surface_color && is_type_in_list(T, surface_turfs))
|
||||
T.color = surface_color
|
||||
|
||||
@@ -300,7 +300,7 @@ var/global/area/overmap/map_overmap
|
||||
T = T.ChangeTurf(/turf/unsimulated/map/edge)
|
||||
else
|
||||
T = T.ChangeTurf(/turf/unsimulated/map)
|
||||
ChangeArea(T, A)
|
||||
T.change_area(T.loc, A)
|
||||
|
||||
SSatlas.current_map.sealed_levels |= SSatlas.current_map.overmap_z
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
connect_types = CONNECT_TYPE_REGULAR|CONNECT_TYPE_FUEL
|
||||
|
||||
use_power = POWER_USE_OFF
|
||||
power_channel = EQUIP
|
||||
power_channel = AREA_USAGE_EQUIP
|
||||
idle_power_usage = 21600 //6 Wh per tick for default 2 capacitor. Gives them a reason to turn it off, really to nerf backup battery
|
||||
|
||||
component_types = list(
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
desc = "An advanced ion propulsion device, using energy and a minute amount of gas to generate thrust."
|
||||
icon = 'icons/obj/ship_engine.dmi'
|
||||
icon_state = "nozzle"
|
||||
power_channel = ENVIRON
|
||||
power_channel = AREA_USAGE_ENVIRON
|
||||
idle_power_usage = 19600
|
||||
anchored = TRUE
|
||||
component_types = list(
|
||||
|
||||
Reference in New Issue
Block a user