mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 21:19:00 +01:00
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:
@@ -11,9 +11,9 @@
|
||||
/obj/item/inflatable/examine(mob/user)
|
||||
. = ..()
|
||||
if(!torn)
|
||||
. += "<span class='notice'><b>Use this item in hand</b> to create an inflatable wall.</span>"
|
||||
. += SPAN_NOTICE("<b>Use this item in hand</b> to create an inflatable wall.")
|
||||
else
|
||||
. += "<span class='warning'>[src] is torn and cannot hold air anymore. It's completely useless now.</span>"
|
||||
. += SPAN_WARNING("[src] is torn and cannot hold air anymore. It's completely useless now.")
|
||||
|
||||
|
||||
/obj/item/inflatable/activate_self(mob/user)
|
||||
@@ -26,11 +26,11 @@
|
||||
/obj/item/inflatable/interact_with_atom(atom/target, mob/living/user, list/modifiers)
|
||||
inflate(user, target)
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
|
||||
/obj/item/inflatable/proc/inflate(mob/user, atom/target)
|
||||
if(torn)
|
||||
add_fingerprint(user)
|
||||
to_chat(user, "<span class='warning'>[src] is torn and cannot be inflated anymore!</span>")
|
||||
to_chat(user, SPAN_WARNING("[src] is torn and cannot be inflated anymore!"))
|
||||
return
|
||||
|
||||
var/turf/T = get_turf(target)
|
||||
@@ -38,21 +38,21 @@
|
||||
return
|
||||
|
||||
if((locate(/obj/structure/inflatable) in T) || (locate(/obj/structure/window/full) in T))
|
||||
to_chat(user, "<span class='warning'>There's no room to deploy [src] here!</span>")
|
||||
to_chat(user, SPAN_WARNING("There's no room to deploy [src] here!"))
|
||||
return
|
||||
|
||||
var/obj/machinery/door/airlock = locate(/obj/machinery/door) in T
|
||||
var/obj/structure/mineral_door/mineral_door = locate(/obj/structure/mineral_door) in T
|
||||
if(mineral_door && mineral_door.density)
|
||||
to_chat(user, "<span class='warning'>You need to open [mineral_door] before you can deploy [src] there!</span>")
|
||||
to_chat(user, SPAN_WARNING("You need to open [mineral_door] before you can deploy [src] there!"))
|
||||
return
|
||||
|
||||
if(airlock && airlock.density && !istype(airlock, /obj/machinery/door/window))
|
||||
to_chat(user, "<span class='warning'>You need to open [airlock] before you can deploy [src] there!</span>")
|
||||
to_chat(user, SPAN_WARNING("You need to open [airlock] before you can deploy [src] there!"))
|
||||
return
|
||||
|
||||
playsound(loc, 'sound/items/zip.ogg', 75, 1)
|
||||
to_chat(user, "<span class='notice'>You inflate [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You inflate [src]."))
|
||||
var/obj/structure/inflatable/R = new structure_type(T)
|
||||
src.transfer_fingerprints_to(R)
|
||||
R.add_fingerprint(user)
|
||||
@@ -77,7 +77,7 @@
|
||||
|
||||
/obj/structure/inflatable/examine(mob/user)
|
||||
. = ..()
|
||||
. += "<span class='notice'><b>Alt-Click</b> to deflate [src].</span>"
|
||||
. += SPAN_NOTICE("<b>Alt-Click</b> to deflate [src].")
|
||||
|
||||
/obj/structure/inflatable/Initialize(mapload, location)
|
||||
. = ..()
|
||||
@@ -231,7 +231,7 @@
|
||||
|
||||
/obj/item/inflatable/cyborg/examine(mob/user)
|
||||
. = ..()
|
||||
. += "<span class='notice'>As a synthetic, you will synthesise these directly from your cell's energy reserves.</span>"
|
||||
. += SPAN_NOTICE("As a synthetic, you will synthesise these directly from your cell's energy reserves.")
|
||||
|
||||
/obj/item/inflatable/cyborg/activate_self(mob/user)
|
||||
if(!do_after(user, delay, FALSE, user))
|
||||
@@ -247,7 +247,7 @@
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
if(!useResource(user))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
return ..()
|
||||
|
||||
@@ -257,7 +257,7 @@
|
||||
|
||||
var/mob/living/silicon/robot/R = user
|
||||
if(R.cell.charge < power_cost)
|
||||
to_chat(user, "<span class='warning'>Not enough power!</span>")
|
||||
to_chat(user, SPAN_WARNING("Not enough power!"))
|
||||
return FALSE
|
||||
|
||||
return R.cell.use(power_cost)
|
||||
|
||||
Reference in New Issue
Block a user