Minor span refactoring (#19177)

Minor span refactoring
This commit is contained in:
Fluffy
2024-05-19 16:37:29 +00:00
committed by GitHub
parent 6387917444
commit 3dc4cce9c2
687 changed files with 4572 additions and 4295 deletions
+3 -3
View File
@@ -63,7 +63,7 @@ GLOBAL_LIST_EMPTY(map_count)
set_map_size()
var/start_time = world.timeofday
if(!do_not_announce) admin_notice("<span class='danger'>Generating [name].</span>", R_DEBUG)
if(!do_not_announce) admin_notice(SPAN_DANGER("Generating [name]."), R_DEBUG)
CHECK_TICK
// Testing needed to see how reliable this is (asynchronous calls, called during worldgen), DM ref is not optimistic
@@ -73,9 +73,9 @@ GLOBAL_LIST_EMPTY(map_count)
for(var/i = 0;i<max_attempts;i++)
if(generate())
if(!do_not_announce) admin_notice("<span class='danger'>[capitalize(name)] generation completed in [round(0.1*(world.timeofday-start_time),0.1)] seconds.</span>", R_DEBUG)
if(!do_not_announce) admin_notice(SPAN_DANGER("[capitalize(name)] generation completed in [round(0.1*(world.timeofday-start_time),0.1)] seconds."), R_DEBUG)
return
if(!do_not_announce) admin_notice("<span class='danger'>[capitalize(name)] failed to generate ([round(0.1*(world.timeofday-start_time),0.1)] seconds): could not produce sane map.</span>", R_DEBUG)
if(!do_not_announce) admin_notice(SPAN_DANGER("[capitalize(name)] failed to generate ([round(0.1*(world.timeofday-start_time),0.1)] seconds): could not produce sane map."), R_DEBUG)
/datum/random_map/proc/get_map_cell(var/x,var/y)
if(!islist(map))