mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-17 10:05:27 +01:00
refactors most spans
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user