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
+6 -6
View File
@@ -60,13 +60,13 @@
atmos_machines += A
atoms |= areas
admin_notice("<span class='danger'>Initializing newly created atom(s) in submap.</span>", R_DEBUG)
admin_notice(span_danger("Initializing newly created atom(s) in submap."), R_DEBUG)
SSatoms.InitializeAtoms(atoms)
admin_notice("<span class='danger'>Initializing atmos pipenets and machinery in submap.</span>", R_DEBUG)
admin_notice(span_danger("Initializing atmos pipenets and machinery in submap."), R_DEBUG)
SSmachines.setup_atmos_machinery(atmos_machines)
admin_notice("<span class='danger'>Rebuilding powernets due to submap creation.</span>", R_DEBUG)
admin_notice(span_danger("Rebuilding powernets due to submap creation."), R_DEBUG)
SSmachines.setup_powernets_for_cables(cables)
// Ensure all machines in loaded areas get notified of power status
@@ -78,7 +78,7 @@
SSshuttles.block_init_queue = prev_shuttle_queue_state
SSshuttles.process_init_queues() // We will flush the queue unless there were other blockers, in which case they will do it.
admin_notice("<span class='danger'>Submap initializations finished.</span>", R_DEBUG)
admin_notice(span_danger("Submap initializations finished."), R_DEBUG)
/datum/map_template/proc/load_new_z(var/centered = FALSE, var/orientation = 0)
var/x = 1
@@ -138,14 +138,14 @@
/datum/map_template/proc/annihilate_bounds(turf/origin, centered = FALSE, orientation = 0)
var/deleted_atoms = 0
admin_notice("<span class='danger'>Annihilating objects in submap loading locatation.</span>", R_DEBUG)
admin_notice(span_danger("Annihilating objects in submap loading locatation."), R_DEBUG)
var/list/turfs_to_clean = get_affected_turfs(origin, centered, orientation)
if(turfs_to_clean.len)
for(var/turf/T in turfs_to_clean)
for(var/atom/movable/AM in T)
++deleted_atoms
qdel(AM)
admin_notice("<span class='danger'>Annihilated [deleted_atoms] objects.</span>", R_DEBUG)
admin_notice(span_danger("Annihilated [deleted_atoms] objects."), R_DEBUG)
//for your ever biggening badminnery kevinz000