mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Make starlight static
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user