Make starlight static

This commit is contained in:
Aronai Sieyes
2020-04-15 19:02:21 -04:00
parent 8512c48b3d
commit b87f94d6fc
2 changed files with 4 additions and 4 deletions

View File

@@ -232,7 +232,7 @@ var/list/gamemode_cache = list()
var/dooc_allowed = 1 var/dooc_allowed = 1
var/dsay_allowed = 1 var/dsay_allowed = 1
var/starlight = 0 // Whether space turfs have ambient light or not var/static/starlight = 0 // Whether space turfs have ambient light or not
var/list/ert_species = list(SPECIES_HUMAN) var/list/ert_species = list(SPECIES_HUMAN)

View File

@@ -13,14 +13,12 @@
var/forced_dirs = 0 //Force this one to pretend it's an overedge turf var/forced_dirs = 0 //Force this one to pretend it's an overedge turf
/turf/space/Initialize() /turf/space/Initialize()
. = ..()
if(config.starlight) if(config.starlight)
update_starlight() update_starlight()
//Sprite stuff only beyond here //Sprite stuff only beyond here
if(keep_sprite) if(keep_sprite)
return . return ..()
//We might be an edge //We might be an edge
if(y == world.maxy || forced_dirs & NORTH) if(y == world.maxy || forced_dirs & NORTH)
@@ -38,6 +36,8 @@
else //Dust else //Dust
appearance = SSskybox.dust_cache["[((x + y) ^ ~(x * y) + z) % 25]"] appearance = SSskybox.dust_cache["[((x + y) ^ ~(x * y) + z) % 25]"]
return ..()
/turf/space/proc/toggle_transit(var/direction) /turf/space/proc/toggle_transit(var/direction)
if(edge) //Not a great way to do this yet. Maybe we'll come up with one. We could pre-make sprites... or tile the overlay over it? if(edge) //Not a great way to do this yet. Maybe we'll come up with one. We could pre-make sprites... or tile the overlay over it?
return return