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
+3 -3
View File
@@ -26,7 +26,7 @@
/// Generates all the holo minimaps, initializing it all nicely, probably.
/datum/controller/subsystem/holomaps/proc/generateHoloMinimaps()
var/start_time = world.timeofday
// Starting over if we're running midround (it runs real fast, so that's possible)
holoMiniMaps.Cut()
extraMiniMaps.Cut()
@@ -45,7 +45,7 @@
smooshTetherHolomaps(smoosh_list)
holomaps_initialized = TRUE
admin_notice("<span class='notice'>Holomaps initialized in [round(0.1*(world.timeofday-start_time),0.1)] seconds.</span>", R_DEBUG)
admin_notice(span_notice("Holomaps initialized in [round(0.1*(world.timeofday-start_time),0.1)] seconds."), R_DEBUG)
// TODO - Check - They had a delayed init perhaps?
for (var/obj/machinery/station_map/S in station_holomaps)
@@ -133,7 +133,7 @@
z_terrain.Blend(HOLOMAP_HOLOFIER, ICON_MULTIPLY, offset_x, offset_y)
big_map.Blend(z_terrain, ICON_OVERLAY, offset_x, offset_y)
small_map.Blend(z_terrain, ICON_OVERLAY, offset_x, offset_y)
var/icon/z_areas = extraMiniMaps["[HOLOMAP_EXTRA_STATIONMAPAREAS]_[zLevel]"]
big_map.Blend(z_areas, ICON_OVERLAY, offset_x, offset_y)
small_map.Blend(z_areas, ICON_OVERLAY, offset_x, offset_y)
+7 -7
View File
@@ -125,24 +125,24 @@
return
if(!ishuman(user))
to_chat(user, "<span class='warning'>Only humanoids can use this device.</span>")
to_chat(user, span_warning("Only humanoids can use this device."))
return
var/mob/living/carbon/human/H = user
if(!ishuman(loc) || user != loc)
to_chat(H, "<span class='warning'>This device needs to be on your person.</span>")
to_chat(H, span_warning("This device needs to be on your person."))
if(hud_datum?.main_hud)
hide_device()
to_chat(H, "<span class='notice'>You put \the [src] away.</span>")
to_chat(H, span_notice("You put \the [src] away."))
else
show_device(H)
to_chat(H, "<span class='notice'>You hold \the [src] where you can see it.</span>")
to_chat(H, span_notice("You hold \the [src] where you can see it."))
/obj/item/mapping_unit/attack_hand(mob/user)
if(cell && user.get_inactive_hand() == src) // click with empty off hand
to_chat(user,"<span class='notice'>You eject \the [cell] from \the [src].</span>")
to_chat(user,span_notice("You eject \the [cell] from \the [src]."))
user.put_in_hands(cell)
cell = null
if(updating)
@@ -156,7 +156,7 @@
cell.update_icon() //Why doesn't a cell do this already? :|
user.unEquip(cell)
cell.forceMove(src)
to_chat(user,"<span class='notice'>You insert \the [cell] into \the [src].</span>")
to_chat(user,span_notice("You insert \the [cell] into \the [src]."))
/obj/item/mapping_unit/proc/first_run(mob/user)
@@ -203,7 +203,7 @@
if(uses_power)
var/power_to_use = pinging ? power_usage*2 : power_usage
if(cell.use(power_to_use) != power_to_use) // we weren't able to use our full power_usage amount!
visible_message("<span class='warning'>\The [src] flickers before going dull.</span>")
visible_message(span_warning("\The [src] flickers before going dull."))
stop_updates()
return
+4 -4
View File
@@ -70,10 +70,10 @@
/obj/machinery/station_map/attack_hand(var/mob/user)
if(watching_mob && (watching_mob != user))
to_chat(user, "<span class='warning'>Someone else is currently watching the holomap.</span>")
to_chat(user, span_warning("Someone else is currently watching the holomap."))
return
if(user.loc != loc)
to_chat(user, "<span class='warning'>You need to stand in front of \the [src].</span>")
to_chat(user, span_warning("You need to stand in front of \the [src]."))
return
startWatching(user)
@@ -119,9 +119,9 @@
update_use_power(USE_POWER_ACTIVE)
if(bogus)
to_chat(user, "<span class='warning'>The holomap failed to initialize. This area of space cannot be mapped.</span>")
to_chat(user, span_warning("The holomap failed to initialize. This area of space cannot be mapped."))
else
to_chat(user, "<span class='notice'>A hologram of the station appears before your eyes.</span>")
to_chat(user, span_notice("A hologram of the station appears before your eyes."))
/obj/machinery/station_map/attack_ai(var/mob/living/silicon/robot/user)
return // TODO - Implement for AI ~Leshana