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
+8 -8
View File
@@ -76,7 +76,7 @@
if(!istype(W)) return
if (can_puncture(W))
visible_message("<span class='danger'>[user] pierces [src] with [W]!</span>")
visible_message(span_danger("[user] pierces [src] with [W]!"))
puncture()
if(W.damtype == BRUTE || W.damtype == BURN)
hit(W.force)
@@ -95,7 +95,7 @@
/obj/item/inflatable/proc/inflate(var/mob/user,var/location)
playsound(location, '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 deploy_path(location)
src.transfer_fingerprints_to(R)
R.add_fingerprint(user)
@@ -103,7 +103,7 @@
/obj/structure/inflatable/proc/deflate()
playsound(src, 'sound/machines/hiss.ogg', 75, 1)
//to_chat(user, "<span class='notice'>You slowly deflate the inflatable wall.</span>")
//to_chat(user, span_notice("You slowly deflate the inflatable wall."))
visible_message("[src] slowly deflates.")
spawn(50)
var/obj/item/inflatable/R = new /obj/item/inflatable(loc)
@@ -132,16 +132,16 @@
health -= damage
user.do_attack_animation(src)
if(health <= 0)
user.visible_message("<span class='danger'>[user] [attack_verb] open the [src]!</span>")
user.visible_message(span_danger("[user] [attack_verb] open the [src]!"))
spawn(1) puncture()
else
user.visible_message("<span class='danger'>[user] [attack_verb] at [src]!</span>")
user.visible_message(span_danger("[user] [attack_verb] at [src]!"))
return 1
/obj/structure/inflatable/take_damage(var/damage)
health -= damage
if(health <= 0)
visible_message("<span class='danger'>The [src] deflates!</span>")
visible_message(span_danger("The [src] deflates!"))
spawn(1) puncture()
return 1
@@ -248,7 +248,7 @@
icon_state = "folded_wall_torn"
/obj/item/inflatable/torn/attack_self(mob/user)
to_chat(user, "<span class='notice'>The inflatable wall is too torn to be inflated!</span>")
to_chat(user, span_notice("The inflatable wall is too torn to be inflated!"))
add_fingerprint(user)
/obj/item/inflatable/door/torn
@@ -258,7 +258,7 @@
icon_state = "folded_door_torn"
/obj/item/inflatable/door/torn/attack_self(mob/user)
to_chat(user, "<span class='notice'>The inflatable door is too torn to be inflated!</span>")
to_chat(user, span_notice("The inflatable door is too torn to be inflated!"))
add_fingerprint(user)
/obj/item/storage/briefcase/inflatable