Convert most spans to defines (#31080)

* spanish?

* aaaagain

* keep maptext

* Update robot_items.dm

* Update span_defines.dm

* compiles

* Update silicon_mob.dm

* compile
This commit is contained in:
kyunkyunkyun
2025-12-13 23:55:48 +00:00
committed by GitHub
parent e5f0a6fffb
commit b0463d3c83
1624 changed files with 15737 additions and 15581 deletions
@@ -12,22 +12,22 @@
var/turf/T = get_turf(user)
var/area/A = get_area(T)
if(A.get_apc())
to_chat(user, "<span class='warning'>This area already has an APC!</span>")
to_chat(user, SPAN_WARNING("This area already has an APC!"))
return //only one APC per area
if(!A.requires_power)
to_chat(user, "<span class='warning'>You cannot place [src] in this area!</span>")
to_chat(user, SPAN_WARNING("You cannot place [src] in this area!"))
return //can't place apcs in areas with no power requirement
for(var/obj/machinery/power/terminal/E in T)
if(E.master)
to_chat(user, "<span class='warning'>There is another network terminal here!</span>")
to_chat(user, SPAN_WARNING("There is another network terminal here!"))
return
else
var/obj/item/stack/cable_coil/C = new /obj/item/stack/cable_coil(T)
C.amount = 10
to_chat(user, "<span class='notice'>You cut the cables and disassemble the unused power terminal.</span>")
to_chat(user, SPAN_NOTICE("You cut the cables and disassemble the unused power terminal."))
qdel(E)
return TRUE
@@ -29,11 +29,11 @@
var/turf/build_turf = get_turf(user)
if((mount_requirements & MOUNTED_FRAME_SIMFLOOR) && !isfloorturf(build_turf))
to_chat(user, "<span class='warning'>[src] cannot be placed on this spot.</span>")
to_chat(user, SPAN_WARNING("[src] cannot be placed on this spot."))
return FALSE
if(mount_requirements & MOUNTED_FRAME_NOSPACE)
var/area/my_area = get_area(build_turf)
if(!istype(my_area) || !my_area.requires_power || isspacearea(my_area))
to_chat(user, "<span class='warning'>[src] cannot be placed in this area.</span>")
to_chat(user, SPAN_WARNING("[src] cannot be placed in this area."))
return FALSE
return TRUE
@@ -20,11 +20,11 @@
if(!allow_floor_mounting)
if(!(get_dir(on_wall, user) in GLOB.cardinal))
to_chat(user, "<span class='warning'>You need to be standing next to [on_wall] to place [src].</span>")
to_chat(user, SPAN_WARNING("You need to be standing next to [on_wall] to place [src]."))
return FALSE
if(gotwallitem(get_turf(user), get_dir(user, on_wall)))
to_chat(user, "<span class='warning'>There's already an item on this wall!</span>")
to_chat(user, SPAN_WARNING("There's already an item on this wall!"))
return FALSE
return TRUE