mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 02:24:11 +01:00
Replace all BYOND text macros
This commit is contained in:
@@ -157,7 +157,7 @@
|
||||
/obj/structure/closet/attack_animal(mob/living/simple_animal/user as mob)
|
||||
if(user.environment_smash)
|
||||
user.do_attack_animation(src)
|
||||
visible_message("\red [user] destroys the [src]. ")
|
||||
visible_message("<span class='warning'>[user] destroys the [src]. </span>")
|
||||
for(var/atom/movable/A as mob|obj in src)
|
||||
A.forceMove(loc)
|
||||
qdel(src)
|
||||
@@ -194,7 +194,7 @@
|
||||
var/desc = input("Please select a telepad.", "RCS") in L
|
||||
E.pad = L[desc]
|
||||
playsound(E.loc, 'sound/machines/click.ogg', 50, 1)
|
||||
to_chat(user, "\blue Teleporting [src.name]...")
|
||||
to_chat(user, "<span class='notice'>Teleporting [src.name]...</span>")
|
||||
E.teleporting = 1
|
||||
if(!do_after(user, 50, target = src))
|
||||
E.teleporting = 0
|
||||
@@ -216,7 +216,7 @@
|
||||
E.rand_y = rand(50,200)
|
||||
var/L = locate(E.rand_x, E.rand_y, 6)
|
||||
playsound(E.loc, 'sound/machines/click.ogg', 50, 1)
|
||||
to_chat(user, "\blue Teleporting [src.name]...")
|
||||
to_chat(user, "<span class='notice'>Teleporting [src.name]...</span>")
|
||||
E.teleporting = 1
|
||||
if(!do_after(user, 50, target = src))
|
||||
E.teleporting = 0
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
if(isrobot(user) || src.locked)
|
||||
if(istype(O, /obj/item/device/multitool))
|
||||
to_chat(user, "\red Resetting circuitry...")
|
||||
to_chat(user, "<span class='warning'>Resetting circuitry...</span>")
|
||||
playsound(user, 'sound/machines/lockreset.ogg', 50, 1)
|
||||
if(do_after(user, 20, target = src))
|
||||
src.locked = 0
|
||||
@@ -43,7 +43,7 @@
|
||||
user.do_attack_animation(src)
|
||||
playsound(user, 'sound/effects/Glasshit.ogg', 100, 1) //We don't want this playing every time
|
||||
if(W.force < 15)
|
||||
to_chat(user, "\blue The cabinet's protective glass glances off the hit.")
|
||||
to_chat(user, "<span class='notice'>The cabinet's protective glass glances off the hit.</span>")
|
||||
else
|
||||
src.hitstaken++
|
||||
if(src.hitstaken == 4)
|
||||
@@ -56,12 +56,12 @@
|
||||
if(istype(O, /obj/item/weapon/twohanded/fireaxe) && src.localopened)
|
||||
if(!fireaxe)
|
||||
if(O:wielded)
|
||||
to_chat(user, "\red Unwield the axe first.")
|
||||
to_chat(user, "<span class='warning'>Unwield the axe first.</span>")
|
||||
return
|
||||
fireaxe = O
|
||||
user.drop_item(O)
|
||||
src.contents += O
|
||||
to_chat(user, "\blue You place the fire axe back in the [src.name].")
|
||||
to_chat(user, "<span class='notice'>You place the fire axe back in the [src.name].</span>")
|
||||
update_icon()
|
||||
else
|
||||
if(src.smashed)
|
||||
@@ -84,10 +84,10 @@
|
||||
spawn(10) update_icon()
|
||||
return
|
||||
else
|
||||
to_chat(user, "\red Resetting circuitry...")
|
||||
to_chat(user, "<span class='warning'>Resetting circuitry...</span>")
|
||||
sleep(50)
|
||||
src.locked = 1
|
||||
to_chat(user, "\blue You re-enable the locking modules.")
|
||||
to_chat(user, "<span class='notice'>You re-enable the locking modules.</span>")
|
||||
playsound(user, 'sound/machines/lockenable.ogg', 50, 1)
|
||||
if(do_after(user,20, target = src))
|
||||
src.locked = 1
|
||||
@@ -112,13 +112,13 @@
|
||||
hasaxe = 1
|
||||
|
||||
if(src.locked)
|
||||
to_chat(user, "\red The cabinet won't budge!")
|
||||
to_chat(user, "<span class='warning'>The cabinet won't budge!</span>")
|
||||
return
|
||||
if(localopened)
|
||||
if(fireaxe)
|
||||
user.put_in_hands(fireaxe)
|
||||
fireaxe = null
|
||||
to_chat(user, "\blue You take the fire axe from the [name].")
|
||||
to_chat(user, "<span class='notice'>You take the fire axe from the [name].</span>")
|
||||
src.add_fingerprint(user)
|
||||
update_icon()
|
||||
else
|
||||
@@ -145,7 +145,7 @@
|
||||
attack_tk(mob/user as mob)
|
||||
if(localopened && fireaxe)
|
||||
fireaxe.forceMove(loc)
|
||||
to_chat(user, "\blue You telekinetically remove the fire axe.")
|
||||
to_chat(user, "<span class='notice'>You telekinetically remove the fire axe.</span>")
|
||||
fireaxe = null
|
||||
update_icon()
|
||||
return
|
||||
@@ -157,9 +157,9 @@
|
||||
|
||||
if(isrobot(usr) || src.locked || src.smashed)
|
||||
if(src.locked)
|
||||
to_chat(usr, "\red The cabinet won't budge!")
|
||||
to_chat(usr, "<span class='warning'>The cabinet won't budge!</span>")
|
||||
else if(src.smashed)
|
||||
to_chat(usr, "\blue The protective glass is broken!")
|
||||
to_chat(usr, "<span class='notice'>The protective glass is broken!</span>")
|
||||
return
|
||||
|
||||
localopened = !localopened
|
||||
@@ -176,23 +176,23 @@
|
||||
if(fireaxe)
|
||||
usr.put_in_hands(fireaxe)
|
||||
fireaxe = null
|
||||
to_chat(usr, "\blue You take the Fire axe from the [name].")
|
||||
to_chat(usr, "<span class='notice'>You take the Fire axe from the [name].</span>")
|
||||
else
|
||||
to_chat(usr, "\blue The [src.name] is empty.")
|
||||
to_chat(usr, "<span class='notice'>The [src.name] is empty.</span>")
|
||||
else
|
||||
to_chat(usr, "\blue The [src.name] is closed.")
|
||||
to_chat(usr, "<span class='notice'>The [src.name] is closed.</span>")
|
||||
update_icon()
|
||||
|
||||
attack_ai(mob/user as mob)
|
||||
if(src.smashed)
|
||||
to_chat(user, "\red The security of the cabinet is compromised.")
|
||||
to_chat(user, "<span class='warning'>The security of the cabinet is compromised.</span>")
|
||||
return
|
||||
else
|
||||
locked = !locked
|
||||
if(locked)
|
||||
to_chat(user, "\red Cabinet locked.")
|
||||
to_chat(user, "<span class='warning'>Cabinet locked.</span>")
|
||||
else
|
||||
to_chat(user, "\blue Cabinet unlocked.")
|
||||
to_chat(user, "<span class='notice'>Cabinet unlocked.</span>")
|
||||
|
||||
update_icon() //Template: fireaxe[has fireaxe][is opened][hits taken][is smashed]. If you want the opening or closing animations, add "opening" or "closing" right after the numbers
|
||||
var/hasaxe = 0
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
if(W) W.forceMove(loc)
|
||||
else if(istype(W, /obj/item/weapon/card/id))
|
||||
if(src.broken)
|
||||
to_chat(user, "\red It appears to be broken.")
|
||||
to_chat(user, "<span class='warning'>It appears to be broken.</span>")
|
||||
return
|
||||
var/obj/item/weapon/card/id/I = W
|
||||
if(!I || !I.registered_name) return
|
||||
@@ -82,8 +82,8 @@
|
||||
src.registered_name = I.registered_name
|
||||
src.desc = "Owned by [I.registered_name]."
|
||||
else
|
||||
to_chat(user, "\red Access Denied")
|
||||
to_chat(user, "<span class='warning'>Access Denied</span>")
|
||||
else if((istype(W, /obj/item/weapon/card/emag) || istype(W, /obj/item/weapon/melee/energy/blade)) && !broken)
|
||||
emag_act(user)
|
||||
else
|
||||
to_chat(user, "\red Access Denied")
|
||||
to_chat(user, "<span class='warning'>Access Denied</span>")
|
||||
|
||||
@@ -167,7 +167,7 @@
|
||||
locked = 0
|
||||
welded = 0
|
||||
update_icon()
|
||||
to_chat(usr, "\red You successfully break out!")
|
||||
to_chat(usr, "<span class='warning'>You successfully break out!</span>")
|
||||
for(var/mob/O in viewers(L.loc))
|
||||
O.show_message("<span class='danger'>\the [usr] successfully broke out of \the [src]!</span>", 1)
|
||||
if(istype(src.loc, /obj/structure/bigDelivery)) //Do this to prevent contents from being opened into nullspace (read: bluespace)
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
/obj/structure/closet/statue/attackby(obj/item/I as obj, mob/user as mob, params)
|
||||
user.changeNext_move(CLICK_CD_MELEE)
|
||||
health -= I.force
|
||||
visible_message("\red [user] strikes [src] with [I].")
|
||||
visible_message("<span class='warning'>[user] strikes [src] with [I].</span>")
|
||||
check_health()
|
||||
|
||||
/obj/structure/closet/statue/MouseDrop_T()
|
||||
@@ -136,7 +136,7 @@
|
||||
if(user)
|
||||
user.dust()
|
||||
dump_contents()
|
||||
visible_message("\red [src] shatters!. ")
|
||||
visible_message("<span class='warning'>[src] shatters!. </span>")
|
||||
qdel(src)
|
||||
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
var/desc = input("Please select a telepad.", "RCS") in L
|
||||
E.pad = L[desc]
|
||||
playsound(E.loc, 'sound/machines/click.ogg', 50, 1)
|
||||
to_chat(user, "\blue Teleporting [src.name]...")
|
||||
to_chat(user, "<span class='notice'>Teleporting [src.name]...</span>")
|
||||
E.teleporting = 1
|
||||
if(!do_after(user, 50, target = src))
|
||||
E.teleporting = 0
|
||||
@@ -121,7 +121,7 @@
|
||||
E.rand_y = rand(50,200)
|
||||
var/L = locate(E.rand_x, E.rand_y, 6)
|
||||
playsound(E.loc, 'sound/machines/click.ogg', 50, 1)
|
||||
to_chat(user, "\blue Teleporting [src.name]...")
|
||||
to_chat(user, "<span class='notice'>Teleporting [src.name]...</span>")
|
||||
E.teleporting = 1
|
||||
if(!do_after(user, 50, target = src))
|
||||
E.teleporting = 0
|
||||
|
||||
@@ -171,7 +171,7 @@
|
||||
user.visible_message("[user] welds the [glass] plating off the airlock assembly.", "You start to weld the [glass] plating off the airlock assembly.")
|
||||
if(do_after(user, 40, target = src))
|
||||
if(!src || !WT.isOn()) return
|
||||
to_chat(user, "\blue You welded the [glass] plating off!")
|
||||
to_chat(user, "<span class='notice'>You welded the [glass] plating off!</span>")
|
||||
var/M = text2path("/obj/item/stack/sheet/mineral/[glass]")
|
||||
new M(src.loc, 2)
|
||||
glass = 0
|
||||
@@ -179,18 +179,18 @@
|
||||
user.visible_message("[user] welds the glass panel out of the airlock assembly.", "You start to weld the glass panel out of the airlock assembly.")
|
||||
if(do_after(user, 40, target = src))
|
||||
if(!src || !WT.isOn()) return
|
||||
to_chat(user, "\blue You welded the glass panel out!")
|
||||
to_chat(user, "<span class='notice'>You welded the glass panel out!</span>")
|
||||
new /obj/item/stack/sheet/rglass(src.loc)
|
||||
glass = 0
|
||||
else if(!anchored)
|
||||
user.visible_message("[user] dissassembles the airlock assembly.", "You start to dissassemble the airlock assembly.")
|
||||
if(do_after(user, 40, target = src))
|
||||
if(!src || !WT.isOn()) return
|
||||
to_chat(user, "\blue You dissasembled the airlock assembly!")
|
||||
to_chat(user, "<span class='notice'>You dissasembled the airlock assembly!</span>")
|
||||
new /obj/item/stack/sheet/metal(src.loc, 4)
|
||||
qdel(src)
|
||||
else
|
||||
to_chat(user, "\blue You need more welding fuel.")
|
||||
to_chat(user, "<span class='notice'>You need more welding fuel.</span>")
|
||||
return
|
||||
|
||||
else if(istype(W, /obj/item/weapon/wrench) && state == 0)
|
||||
@@ -202,7 +202,7 @@
|
||||
|
||||
if(do_after(user, 40, target = src))
|
||||
if(!src) return
|
||||
to_chat(user, "\blue You [anchored? "un" : ""]secured the airlock assembly!")
|
||||
to_chat(user, "<span class='notice'>You [anchored ? "un" : ""]secured the airlock assembly!</span>")
|
||||
anchored = !anchored
|
||||
|
||||
else if(istype(W, /obj/item/stack/cable_coil) && state == 0 && anchored )
|
||||
@@ -212,7 +212,7 @@
|
||||
if(!src) return
|
||||
coil.use(1)
|
||||
src.state = 1
|
||||
to_chat(user, "\blue You wire the Airlock!")
|
||||
to_chat(user, "<span class='notice'>You wire the Airlock!</span>")
|
||||
|
||||
else if(istype(W, /obj/item/weapon/wirecutters) && state == 1 )
|
||||
playsound(src.loc, 'sound/items/Wirecutter.ogg', 100, 1)
|
||||
@@ -220,7 +220,7 @@
|
||||
|
||||
if(do_after(user, 40, target = src))
|
||||
if(!src) return
|
||||
to_chat(user, "\blue You cut the airlock wires.!")
|
||||
to_chat(user, "<span class='notice'>You cut the airlock wires.!</span>")
|
||||
new/obj/item/stack/cable_coil(src.loc, 1)
|
||||
src.state = 0
|
||||
|
||||
@@ -232,7 +232,7 @@
|
||||
|
||||
if(do_after(user, 40, target = src))
|
||||
if(!src) return
|
||||
to_chat(user, "\blue You installed the airlock electronics!")
|
||||
to_chat(user, "<span class='notice'>You installed the airlock electronics!</span>")
|
||||
src.state = 2
|
||||
src.name = "Near finished Airlock Assembly"
|
||||
src.electronics = W
|
||||
@@ -245,7 +245,7 @@
|
||||
|
||||
if(do_after(user, 40, target = src))
|
||||
if(!src) return
|
||||
to_chat(user, "\blue You removed the airlock electronics!")
|
||||
to_chat(user, "<span class='notice'>You removed the airlock electronics!</span>")
|
||||
src.state = 1
|
||||
src.name = "Wired Airlock Assembly"
|
||||
var/obj/item/weapon/airlock_electronics/ae
|
||||
@@ -264,7 +264,7 @@
|
||||
playsound(src.loc, 'sound/items/Crowbar.ogg', 100, 1)
|
||||
user.visible_message("[user] adds [S.name] to the airlock assembly.", "You start to install [S.name] into the airlock assembly.")
|
||||
if(do_after(user, 40, target = src))
|
||||
to_chat(user, "\blue You installed reinforced glass windows into the airlock assembly!")
|
||||
to_chat(user, "<span class='notice'>You installed reinforced glass windows into the airlock assembly!</span>")
|
||||
S.use(1)
|
||||
glass = 1
|
||||
else if(istype(S, /obj/item/stack/sheet/mineral) && S.sheettype)
|
||||
@@ -273,17 +273,17 @@
|
||||
playsound(src.loc, 'sound/items/Crowbar.ogg', 100, 1)
|
||||
user.visible_message("[user] adds [S.name] to the airlock assembly.", "You start to install [S.name] into the airlock assembly.")
|
||||
if(do_after(user, 40, target = src))
|
||||
to_chat(user, "\blue You installed [M] plating into the airlock assembly!")
|
||||
to_chat(user, "<span class='notice'>You installed [M] plating into the airlock assembly!</span>")
|
||||
S.use(2)
|
||||
glass = "[M]"
|
||||
|
||||
else if(istype(W, /obj/item/weapon/screwdriver) && state == 2 )
|
||||
playsound(src.loc, 'sound/items/Screwdriver.ogg', 100, 1)
|
||||
to_chat(user, "\blue Now finishing the airlock.")
|
||||
to_chat(user, "<span class='notice'>Now finishing the airlock.</span>")
|
||||
|
||||
if(do_after(user, 40, target = src))
|
||||
if(!src) return
|
||||
to_chat(user, "\blue You finish the airlock!")
|
||||
to_chat(user, "<span class='notice'>You finish the airlock!</span>")
|
||||
var/path
|
||||
if(istext(glass))
|
||||
path = text2path("/obj/machinery/door/airlock/[glass]")
|
||||
|
||||
@@ -314,12 +314,12 @@
|
||||
if(istype(I, /obj/item/weapon/hatchet) && !stump)
|
||||
if(indestructable)
|
||||
//this bush marks the edge of the map, you can't destroy it
|
||||
to_chat(user, "\red You flail away at the undergrowth, but it's too thick here.")
|
||||
to_chat(user, "<span class='warning'>You flail away at the undergrowth, but it's too thick here.</span>")
|
||||
else
|
||||
user.visible_message("<span class='danger'>[user] begins clearing away [src].</b>","\red <b>You begin clearing away [src].</span>")
|
||||
user.visible_message("<span class='danger'>[user] begins clearing away [src].</b>","<span class='warning'><b>You begin clearing away [src].</span></span>")
|
||||
spawn(rand(15,30))
|
||||
if(get_dist(user,src) < 2)
|
||||
to_chat(user, "\blue You clear away [src].")
|
||||
to_chat(user, "<span class='notice'>You clear away [src].</span>")
|
||||
var/obj/item/stack/sheet/wood/W = new(src.loc)
|
||||
W.amount = rand(3,15)
|
||||
if(prob(50))
|
||||
|
||||
@@ -33,30 +33,30 @@
|
||||
if(istype(W, /obj/item/weapon/wrench) && state == 0)
|
||||
if(anchored && !istype(src,/obj/structure/girder/displaced))
|
||||
playsound(src.loc, 'sound/items/Ratchet.ogg', 100, 1)
|
||||
to_chat(user, "\blue Now disassembling the girder")
|
||||
to_chat(user, "<span class='notice'>Now disassembling the girder</span>")
|
||||
if(do_after(user,40, target = src))
|
||||
if(!src) return
|
||||
to_chat(user, "\blue You dissasembled the girder!")
|
||||
to_chat(user, "<span class='notice'>You dissasembled the girder!</span>")
|
||||
refundMetal(metalUsed)
|
||||
qdel(src)
|
||||
else if(!anchored)
|
||||
playsound(src.loc, 'sound/items/Ratchet.ogg', 100, 1)
|
||||
to_chat(user, "\blue Now securing the girder")
|
||||
to_chat(user, "<span class='notice'>Now securing the girder</span>")
|
||||
if(do_after(user, 40, target = src))
|
||||
to_chat(user, "\blue You secured the girder!")
|
||||
to_chat(user, "<span class='notice'>You secured the girder!</span>")
|
||||
new/obj/structure/girder( src.loc )
|
||||
qdel(src)
|
||||
|
||||
else if(istype(W, /obj/item/weapon/gun/energy/plasmacutter))
|
||||
to_chat(user, "\blue Now slicing apart the girder")
|
||||
to_chat(user, "<span class='notice'>Now slicing apart the girder</span>")
|
||||
if(do_after(user,30, target = src))
|
||||
if(!src) return
|
||||
to_chat(user, "\blue You slice apart the girder!")
|
||||
to_chat(user, "<span class='notice'>You slice apart the girder!</span>")
|
||||
refundMetal(metalUsed)
|
||||
qdel(src)
|
||||
|
||||
else if(istype(W, /obj/item/weapon/pickaxe/drill/diamonddrill))
|
||||
to_chat(user, "\blue You drill through the girder!")
|
||||
to_chat(user, "<span class='notice'>You drill through the girder!</span>")
|
||||
refundMetal(metalUsed)
|
||||
qdel(src)
|
||||
|
||||
@@ -68,27 +68,27 @@
|
||||
|
||||
else if(istype(W, /obj/item/weapon/screwdriver) && state == 2 && istype(src,/obj/structure/girder/reinforced))
|
||||
playsound(src.loc, 'sound/items/Screwdriver.ogg', 100, 1)
|
||||
to_chat(user, "\blue Now unsecuring support struts")
|
||||
to_chat(user, "<span class='notice'>Now unsecuring support struts</span>")
|
||||
if(do_after(user,40, target = src))
|
||||
if(!src) return
|
||||
to_chat(user, "\blue You unsecured the support struts!")
|
||||
to_chat(user, "<span class='notice'>You unsecured the support struts!</span>")
|
||||
state = 1
|
||||
|
||||
else if(istype(W, /obj/item/weapon/wirecutters) && istype(src,/obj/structure/girder/reinforced) && state == 1)
|
||||
playsound(src.loc, 'sound/items/Wirecutter.ogg', 100, 1)
|
||||
to_chat(user, "\blue Now removing support struts")
|
||||
to_chat(user, "<span class='notice'>Now removing support struts</span>")
|
||||
if(do_after(user,40, target = src))
|
||||
if(!src) return
|
||||
to_chat(user, "\blue You removed the support struts!")
|
||||
to_chat(user, "<span class='notice'>You removed the support struts!</span>")
|
||||
new/obj/structure/girder( src.loc )
|
||||
qdel(src)
|
||||
|
||||
else if(istype(W, /obj/item/weapon/crowbar) && state == 0 && anchored )
|
||||
playsound(src.loc, 'sound/items/Crowbar.ogg', 100, 1)
|
||||
to_chat(user, "\blue Now dislodging the girder")
|
||||
to_chat(user, "<span class='notice'>Now dislodging the girder</span>")
|
||||
if(do_after(user, 40, target = src))
|
||||
if(!src) return
|
||||
to_chat(user, "\blue You dislodged the girder!")
|
||||
to_chat(user, "<span class='notice'>You dislodged the girder!</span>")
|
||||
new/obj/structure/girder/displaced( src.loc )
|
||||
qdel(src)
|
||||
|
||||
@@ -101,16 +101,16 @@
|
||||
if(!anchored)
|
||||
if(S.amount < 2) return
|
||||
S.use(2)
|
||||
to_chat(user, "\blue You create a false wall! Push on it to open or close the passage.")
|
||||
to_chat(user, "<span class='notice'>You create a false wall! Push on it to open or close the passage.</span>")
|
||||
new /obj/structure/falsewall (src.loc)
|
||||
qdel(src)
|
||||
else
|
||||
if(S.amount < 2) return ..()
|
||||
to_chat(user, "\blue Now adding plating...")
|
||||
to_chat(user, "<span class='notice'>Now adding plating...</span>")
|
||||
if(do_after(user,40, target = src))
|
||||
if(!src || !S || S.amount < 2) return
|
||||
S.use(2)
|
||||
to_chat(user, "\blue You added the plating!")
|
||||
to_chat(user, "<span class='notice'>You added the plating!</span>")
|
||||
var/turf/Tsrc = get_turf(src)
|
||||
Tsrc.ChangeTurf(/turf/simulated/wall)
|
||||
for(var/turf/simulated/wall/X in Tsrc.loc)
|
||||
@@ -122,17 +122,17 @@
|
||||
if(!anchored)
|
||||
if(S.amount < 2) return
|
||||
S.use(2)
|
||||
to_chat(user, "\blue You create a false wall! Push on it to open or close the passage.")
|
||||
to_chat(user, "<span class='notice'>You create a false wall! Push on it to open or close the passage.</span>")
|
||||
new /obj/structure/falsewall/reinforced (src.loc)
|
||||
qdel(src)
|
||||
else
|
||||
if(src.icon_state == "reinforced") //I cant believe someone would actually write this line of code...
|
||||
if(S.amount < 1) return ..()
|
||||
to_chat(user, "\blue Now finalising reinforced wall.")
|
||||
to_chat(user, "<span class='notice'>Now finalising reinforced wall.</span>")
|
||||
if(do_after(user, 50, target = src))
|
||||
if(!src || !S || S.amount < 1) return
|
||||
S.use(1)
|
||||
to_chat(user, "\blue Wall fully reinforced!")
|
||||
to_chat(user, "<span class='notice'>Wall fully reinforced!</span>")
|
||||
var/turf/Tsrc = get_turf(src)
|
||||
Tsrc.ChangeTurf(/turf/simulated/wall/r_wall)
|
||||
for(var/turf/simulated/wall/r_wall/X in Tsrc.loc)
|
||||
@@ -141,11 +141,11 @@
|
||||
return
|
||||
else
|
||||
if(S.amount < 1) return ..()
|
||||
to_chat(user, "\blue Now reinforcing girders")
|
||||
to_chat(user, "<span class='notice'>Now reinforcing girders</span>")
|
||||
if(do_after(user,60, target = src))
|
||||
if(!src || !S || S.amount < 1) return
|
||||
S.use(1)
|
||||
to_chat(user, "\blue Girders reinforced!")
|
||||
to_chat(user, "<span class='notice'>Girders reinforced!</span>")
|
||||
new/obj/structure/girder/reinforced( src.loc )
|
||||
qdel(src)
|
||||
return
|
||||
@@ -155,17 +155,17 @@
|
||||
if(!anchored)
|
||||
if(S.amount < 2) return
|
||||
S.use(2)
|
||||
to_chat(user, "\blue You create a false wall! Push on it to open or close the passage.")
|
||||
to_chat(user, "<span class='notice'>You create a false wall! Push on it to open or close the passage.</span>")
|
||||
var/F = text2path("/obj/structure/falsewall/[M]")
|
||||
new F (src.loc)
|
||||
qdel(src)
|
||||
else
|
||||
if(S.amount < 2) return ..()
|
||||
to_chat(user, "\blue Now adding plating...")
|
||||
to_chat(user, "<span class='notice'>Now adding plating...</span>")
|
||||
if(do_after(user,40, target = src))
|
||||
if(!src || !S || S.amount < 2) return
|
||||
S.use(2)
|
||||
to_chat(user, "\blue You added the plating!")
|
||||
to_chat(user, "<span class='notice'>You added the plating!</span>")
|
||||
var/turf/Tsrc = get_turf(src)
|
||||
Tsrc.ChangeTurf(text2path("/turf/simulated/wall/mineral/[M]"))
|
||||
for(var/turf/simulated/wall/mineral/X in Tsrc.loc)
|
||||
@@ -180,7 +180,7 @@
|
||||
if(P.pipe_type in list(0, 1, 5)) //simple pipes, simple bends, and simple manifolds.
|
||||
user.drop_item()
|
||||
P.loc = src.loc
|
||||
to_chat(user, "\blue You fit the pipe into the [src]!")
|
||||
to_chat(user, "<span class='notice'>You fit the pipe into the [src]!</span>")
|
||||
else
|
||||
..()
|
||||
|
||||
@@ -241,19 +241,19 @@
|
||||
/obj/structure/cultgirder/attackby(obj/item/W as obj, mob/user as mob, params)
|
||||
if(istype(W, /obj/item/weapon/wrench))
|
||||
playsound(src.loc, 'sound/items/Ratchet.ogg', 100, 1)
|
||||
to_chat(user, "\blue Now disassembling the girder")
|
||||
to_chat(user, "<span class='notice'>Now disassembling the girder</span>")
|
||||
if(do_after(user,40, target = src))
|
||||
to_chat(user, "\blue You dissasembled the girder!")
|
||||
to_chat(user, "<span class='notice'>You dissasembled the girder!</span>")
|
||||
dismantle()
|
||||
|
||||
else if(istype(W, /obj/item/weapon/gun/energy/plasmacutter))
|
||||
to_chat(user, "\blue Now slicing apart the girder")
|
||||
to_chat(user, "<span class='notice'>Now slicing apart the girder</span>")
|
||||
if(do_after(user,30, target = src))
|
||||
to_chat(user, "\blue You slice apart the girder!")
|
||||
to_chat(user, "<span class='notice'>You slice apart the girder!</span>")
|
||||
dismantle()
|
||||
|
||||
else if(istype(W, /obj/item/weapon/pickaxe/drill/diamonddrill))
|
||||
to_chat(user, "\blue You drill through the girder!")
|
||||
to_chat(user, "<span class='notice'>You drill through the girder!</span>")
|
||||
dismantle()
|
||||
|
||||
/obj/structure/cultgirder/proc/dismantle()
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
/obj/item/inflatable/attack_self(mob/user)
|
||||
playsound(loc, 'sound/items/zip.ogg', 75, 1)
|
||||
to_chat(user, "\blue You inflate [src].")
|
||||
to_chat(user, "<span class='notice'>You inflate [src].</span>")
|
||||
var/obj/structure/inflatable/R = new /obj/structure/inflatable(user.loc)
|
||||
src.transfer_fingerprints_to(R)
|
||||
R.add_fingerprint(user)
|
||||
@@ -150,7 +150,7 @@
|
||||
|
||||
/obj/item/inflatable/door/attack_self(mob/user)
|
||||
playsound(loc, 'sound/items/zip.ogg', 75, 1)
|
||||
to_chat(user, "\blue You inflate [src].")
|
||||
to_chat(user, "<span class='notice'>You inflate [src].</span>")
|
||||
var/obj/structure/inflatable/door/R = new /obj/structure/inflatable/door(user.loc)
|
||||
src.transfer_fingerprints_to(R)
|
||||
R.add_fingerprint(user)
|
||||
|
||||
@@ -69,10 +69,10 @@
|
||||
if(src.destroyed)
|
||||
return
|
||||
else
|
||||
to_chat(usr, text("\blue You kick the lab cage."))
|
||||
to_chat(usr, text("<span class='notice'>You kick the lab cage.</span>"))
|
||||
for(var/mob/O in oviewers())
|
||||
if((O.client && !( O.blinded )))
|
||||
to_chat(O, text("\red [] kicks the lab cage.", usr))
|
||||
to_chat(O, text("<span class='warning'>[] kicks the lab cage.</span>", usr))
|
||||
src.health -= 2
|
||||
healthcheck()
|
||||
return
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
if(istype(C, /obj/item/weapon/weldingtool))
|
||||
var/obj/item/weapon/weldingtool/WT = C
|
||||
if(WT.remove_fuel(0, user))
|
||||
to_chat(user, "\blue Slicing lattice joints ...")
|
||||
to_chat(user, "<span class='notice'>Slicing lattice joints ...</span>")
|
||||
new /obj/item/stack/rods(src.loc)
|
||||
qdel(src)
|
||||
|
||||
|
||||
@@ -27,10 +27,10 @@
|
||||
if(istype(W, /obj/item/weapon/mop))
|
||||
if(src.reagents.total_volume >= 2)
|
||||
src.reagents.trans_to(W, 2)
|
||||
to_chat(user, "\blue You wet the mop")
|
||||
to_chat(user, "<span class='notice'>You wet the mop</span>")
|
||||
playsound(src.loc, 'sound/effects/slosh.ogg', 25, 1)
|
||||
if(src.reagents.total_volume < 1)
|
||||
to_chat(user, "\blue Out of water!")
|
||||
to_chat(user, "<span class='notice'>Out of water!</span>")
|
||||
return
|
||||
|
||||
/obj/structure/mopbucket/ex_act(severity)
|
||||
|
||||
@@ -217,7 +217,7 @@
|
||||
if(user != O)
|
||||
for(var/mob/B in viewers(user, 3))
|
||||
if((B.client && !( B.blinded )))
|
||||
to_chat(B, text("\red [] stuffs [] into []!", user, O, src))
|
||||
to_chat(B, text("<span class='warning'>[] stuffs [] into []!</span>", user, O, src))
|
||||
return
|
||||
|
||||
/obj/structure/m_tray/Destroy()
|
||||
@@ -299,7 +299,7 @@
|
||||
|
||||
/obj/structure/crematorium/attack_hand(mob/user as mob)
|
||||
if(cremating)
|
||||
to_chat(usr, "\red It's locked.")
|
||||
to_chat(usr, "<span class='warning'>It's locked.</span>")
|
||||
return
|
||||
if((connected) && (locked == 0))
|
||||
for(var/atom/movable/A as mob|obj in connected.loc)
|
||||
@@ -460,7 +460,7 @@
|
||||
if(user != O)
|
||||
for(var/mob/B in viewers(user, 3))
|
||||
if((B.client && !( B.blinded )))
|
||||
to_chat(B, text("\red [] stuffs [] into []!", user, O, src))
|
||||
to_chat(B, text("<span class='warning'>[] stuffs [] into []!</span>", user, O, src))
|
||||
//Foreach goto(99)
|
||||
return
|
||||
|
||||
|
||||
@@ -243,7 +243,7 @@
|
||||
playsound(src.loc, 'sound/weapons/blade1.ogg', 50, 1)
|
||||
playsound(src.loc, "sparks", 50, 1)
|
||||
for(var/mob/O in viewers(user, 4))
|
||||
O.show_message("\blue The [src] was sliced apart by [user]!", 1, "\red You hear [src] coming apart.", 2)
|
||||
O.show_message("<span class='notice'>The [src] was sliced apart by [user]!</span>", 1, "<span class='warning'>You hear [src] coming apart.</span>", 2)
|
||||
destroy()
|
||||
return
|
||||
|
||||
@@ -494,18 +494,18 @@
|
||||
var/obj/item/weapon/weldingtool/WT = W
|
||||
if(WT.remove_fuel(0, user))
|
||||
if(src.status == 2)
|
||||
to_chat(user, "\blue Now weakening the reinforced table")
|
||||
to_chat(user, "<span class='notice'>Now weakening the reinforced table</span>")
|
||||
playsound(src.loc, 'sound/items/Welder.ogg', 50, 1)
|
||||
if(do_after(user, 50, target = src))
|
||||
if(!src || !WT.isOn()) return
|
||||
to_chat(user, "\blue Table weakened")
|
||||
to_chat(user, "<span class='notice'>Table weakened</span>")
|
||||
src.status = 1
|
||||
else
|
||||
to_chat(user, "\blue Now strengthening the reinforced table")
|
||||
to_chat(user, "<span class='notice'>Now strengthening the reinforced table</span>")
|
||||
playsound(src.loc, 'sound/items/Welder.ogg', 50, 1)
|
||||
if(do_after(user, 50, target = src))
|
||||
if(!src || !WT.isOn()) return
|
||||
to_chat(user, "\blue Table strengthened")
|
||||
to_chat(user, "<span class='notice'>Table strengthened</span>")
|
||||
src.status = 2
|
||||
return
|
||||
return
|
||||
|
||||
@@ -133,8 +133,8 @@ var/global/wcCommon = pick(list("#379963", "#0d8395", "#58b5c3", "#49e46e", "#8f
|
||||
else if(user.a_intent == I_HARM)
|
||||
user.changeNext_move(CLICK_CD_MELEE)
|
||||
playsound(get_turf(src), 'sound/effects/glassknock.ogg', 80, 1)
|
||||
user.visible_message("\red [user.name] bangs against the [src.name]!", \
|
||||
"\red You bang against the [src.name]!", \
|
||||
user.visible_message("<span class='warning'>[user.name] bangs against the [src.name]!</span>", \
|
||||
"<span class='warning'>You bang against the [src.name]!</span>", \
|
||||
"You hear a banging sound.")
|
||||
else
|
||||
user.changeNext_move(CLICK_CD_MELEE)
|
||||
|
||||
Reference in New Issue
Block a user