mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 07:38:05 +01:00
spesslight
This commit is contained in:
@@ -137,6 +137,8 @@
|
||||
var/default_laws = 0 //Controls what laws the AI spawns with.
|
||||
var/silicon_max_law_amount = 12
|
||||
|
||||
var/starlight = 0
|
||||
|
||||
/datum/configuration/New()
|
||||
var/list/L = typesof(/datum/game_mode) - /datum/game_mode
|
||||
for(var/T in L)
|
||||
@@ -420,6 +422,8 @@
|
||||
config.mutant_races = 1
|
||||
if("mutant_colors")
|
||||
config.mutant_colors = 1
|
||||
if("starlight")
|
||||
config.starlight = 1
|
||||
else
|
||||
diary << "Unknown setting in configuration: '[name]'"
|
||||
|
||||
|
||||
@@ -18,9 +18,11 @@
|
||||
update_starlight()
|
||||
|
||||
/turf/space/proc/update_starlight()
|
||||
for(var/turf/T in range(src,1))
|
||||
if(!config.starlight)
|
||||
return
|
||||
for(var/turf/T in orange(src,1))
|
||||
if(istype(T,/turf/simulated))
|
||||
src.SetLuminosity(2)
|
||||
src.SetLuminosity(3)
|
||||
return
|
||||
|
||||
/turf/space/attack_paw(mob/user as mob)
|
||||
|
||||
@@ -146,6 +146,9 @@
|
||||
if(W.lighting_lumcount) //unless we're being illuminated, don't bother (may be buggy, hard to test)
|
||||
W.UpdateAffectingLights()
|
||||
|
||||
for(var/turf/space/S in range(W,1))
|
||||
S.update_starlight()
|
||||
|
||||
W.levelupdate()
|
||||
W.CalculateAdjacentTurfs()
|
||||
return W
|
||||
|
||||
Reference in New Issue
Block a user