mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 20:47:10 +01:00
Replace all BYOND text macros
This commit is contained in:
@@ -220,8 +220,8 @@
|
||||
user.changeNext_move(CLICK_CD_MELEE)
|
||||
deal_damage(15)
|
||||
playsound(src.loc, 'sound/weapons/slash.ogg', 50, 1, -1)
|
||||
to_chat(user, "\red You slash at \the [src]!")
|
||||
visible_message("\red The [user] slashes at [src.name]'s armor!")
|
||||
to_chat(user, "<span class='warning'>You slash at \the [src]!</span>")
|
||||
visible_message("<span class='warning'>The [user] slashes at [src.name]'s armor!</span>")
|
||||
return
|
||||
|
||||
/obj/spacepod/proc/deal_damage(var/damage)
|
||||
@@ -318,7 +318,7 @@
|
||||
return
|
||||
if(istype(W, /obj/item/weapon/stock_parts/cell))
|
||||
if(!hatch_open)
|
||||
to_chat(user, "\red The maintenance hatch is closed!")
|
||||
to_chat(user, "<span class='warning'>The maintenance hatch is closed!</span>")
|
||||
return
|
||||
if(battery)
|
||||
to_chat(user, "<span class='notice'>The pod already has a battery.</span>")
|
||||
@@ -329,7 +329,7 @@
|
||||
return
|
||||
if(istype(W, /obj/item/device/spacepod_equipment))
|
||||
if(!hatch_open)
|
||||
to_chat(user, "\red The maintenance hatch is closed!")
|
||||
to_chat(user, "<span class='warning'>The maintenance hatch is closed!</span>")
|
||||
return
|
||||
if(!equipment_system)
|
||||
to_chat(user, "<span class='warning'>The pod has no equipment datum, yell at the coders</span>")
|
||||
@@ -361,19 +361,19 @@
|
||||
|
||||
if(istype(W, /obj/item/weapon/weldingtool))
|
||||
if(!hatch_open)
|
||||
to_chat(user, "\red You must open the maintenance hatch before attempting repairs.")
|
||||
to_chat(user, "<span class='warning'>You must open the maintenance hatch before attempting repairs.</span>")
|
||||
return
|
||||
var/obj/item/weapon/weldingtool/WT = W
|
||||
if(!WT.isOn())
|
||||
to_chat(user, "\red The welder must be on for this task.")
|
||||
to_chat(user, "<span class='warning'>The welder must be on for this task.</span>")
|
||||
return
|
||||
if(health < initial(health))
|
||||
to_chat(user, "\blue You start welding the spacepod...")
|
||||
to_chat(user, "<span class='notice'>You start welding the spacepod...</span>")
|
||||
playsound(loc, 'sound/items/Welder.ogg', 50, 1)
|
||||
if(do_after(user, 20, target = src))
|
||||
if(!src || !WT.remove_fuel(3, user)) return
|
||||
repair_damage(10)
|
||||
to_chat(user, "\blue You mend some [pick("dents","bumps","damage")] with \the [WT]")
|
||||
to_chat(user, "<span class='notice'>You mend some [pick("dents","bumps","damage")] with \the [WT]</span>")
|
||||
return
|
||||
to_chat(user, "<span class='boldnotice'>\The [src] is fully repaired!</span>")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user