refactors most spans

This commit is contained in:
Kashargul
2024-10-02 21:10:31 +02:00
parent 5417c7772c
commit a2c673ab7a
1517 changed files with 12436 additions and 12347 deletions
+5 -5
View File
@@ -15,7 +15,7 @@ SUBSYSTEM_DEF(planets)
var/static/list/needs_temp_update = list()
/datum/controller/subsystem/planets/Initialize(timeofday)
admin_notice("<span class='danger'>Initializing planetary weather.</span>", R_DEBUG)
admin_notice(span_danger("Initializing planetary weather."), R_DEBUG)
createPlanets()
..()
@@ -28,7 +28,7 @@ SUBSYSTEM_DEF(planets)
if(Z > z_to_planet.len)
z_to_planet.len = Z
if(z_to_planet[Z])
admin_notice("<span class='danger'>Z[Z] is shared by more than one planet!</span>", R_DEBUG)
admin_notice(span_danger("Z[Z] is shared by more than one planet!"), R_DEBUG)
continue
z_to_planet[Z] = NP
@@ -40,7 +40,7 @@ SUBSYSTEM_DEF(planets)
var/datum/planet/P = z_to_planet[T.z]
if(!istype(P))
return
if(istype(T, /turf/unsimulated/wall/planetary))
if(istype(T, /turf/unsimulated/wall/planetary))
P.planet_walls += T
else if(istype(T, /turf/simulated) && T.is_outdoors())
P.planet_floors += T
@@ -71,7 +71,7 @@ SUBSYSTEM_DEF(planets)
updateSunlight(P)
if(MC_TICK_CHECK)
return
#ifndef UNIT_TEST // Don't be updating temperatures and such during unit tests
var/list/needs_temp_update = src.needs_temp_update
while(needs_temp_update.len)
@@ -105,7 +105,7 @@ SUBSYSTEM_DEF(planets)
/datum/controller/subsystem/planets/proc/updateSunlight(var/datum/planet/P)
var/new_brightness = P.sun["brightness"]
P.sun_holder.update_brightness(new_brightness, P.planet_floors)
var/new_color = P.sun["color"]
P.sun_holder.update_color(new_color)