mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 12:08:28 +01:00
refactors most spans
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
R.use(1)
|
||||
can_buckle = TRUE
|
||||
buckle_require_restraints = TRUE
|
||||
to_chat(user, "<span class='notice'>You add a rod to \the [src].</span>")
|
||||
to_chat(user, span_notice("You add a rod to \the [src]."))
|
||||
var/mutable_appearance/rod_underlay = mutable_appearance('icons/obj/structures.dmi', "bonfire_rod")
|
||||
rod_underlay.pixel_y = 16
|
||||
rod_underlay.appearance_flags = RESET_COLOR|PIXEL_SCALE|TILE_BOUND
|
||||
@@ -51,7 +51,7 @@
|
||||
if("Grill")
|
||||
R.use(1)
|
||||
grill = TRUE
|
||||
to_chat(user, "<span class='notice'>You add a grill to \the [src].</span>")
|
||||
to_chat(user, span_notice("You add a grill to \the [src]."))
|
||||
update_icon()
|
||||
else
|
||||
return ..()
|
||||
@@ -83,7 +83,7 @@
|
||||
user.visible_message("[user] dismantles down \the [src].", "You dismantle \the [src].")
|
||||
qdel(src)
|
||||
else
|
||||
to_chat(user, "<span class='warning'>\The [src] is still burning. Extinguish it first if you want to dismantle it.</span>")
|
||||
to_chat(user, span_warning("\The [src] is still burning. Extinguish it first if you want to dismantle it."))
|
||||
|
||||
/obj/structure/bonfire/proc/get_fuel_amount()
|
||||
var/F = 0
|
||||
@@ -101,7 +101,7 @@
|
||||
if(get_fuel_amount())
|
||||
var/atom/movable/AM = pop(contents)
|
||||
AM.forceMove(get_turf(src))
|
||||
to_chat(user, "<span class='notice'>You take \the [AM] out of \the [src] before it has a chance to burn away.</span>")
|
||||
to_chat(user, span_notice("You take \the [AM] out of \the [src] before it has a chance to burn away."))
|
||||
update_icon()
|
||||
|
||||
/obj/structure/bonfire/permanent/remove_fuel(mob/user)
|
||||
@@ -109,23 +109,23 @@
|
||||
|
||||
/obj/structure/bonfire/proc/add_fuel(atom/movable/new_fuel, mob/user)
|
||||
if(get_fuel_amount() >= 10)
|
||||
to_chat(user, "<span class='warning'>\The [src] already has enough fuel!</span>")
|
||||
to_chat(user, span_warning("\The [src] already has enough fuel!"))
|
||||
return FALSE
|
||||
if(istype(new_fuel, /obj/item/stack/material/wood) || istype(new_fuel, /obj/item/stack/material/log) )
|
||||
var/obj/item/stack/F = new_fuel
|
||||
var/obj/item/stack/S = F.split(1)
|
||||
if(S)
|
||||
S.forceMove(src)
|
||||
to_chat(user, "<span class='warning'>You add \the [new_fuel] to \the [src].</span>")
|
||||
to_chat(user, span_warning("You add \the [new_fuel] to \the [src]."))
|
||||
update_icon()
|
||||
return TRUE
|
||||
return FALSE
|
||||
else
|
||||
to_chat(user, "<span class='warning'>\The [src] needs raw wood to burn, \a [new_fuel] won't work.</span>")
|
||||
to_chat(user, span_warning("\The [src] needs raw wood to burn, \a [new_fuel] won't work."))
|
||||
return FALSE
|
||||
|
||||
/obj/structure/bonfire/permanent/add_fuel(mob/user)
|
||||
to_chat(user, "<span class='warning'>\The [src] has plenty of fuel and doesn't need more fuel.</span>")
|
||||
to_chat(user, span_warning("\The [src] has plenty of fuel and doesn't need more fuel."))
|
||||
|
||||
/obj/structure/bonfire/proc/consume_fuel(var/obj/item/stack/consumed_fuel)
|
||||
if(!istype(consumed_fuel))
|
||||
@@ -167,7 +167,7 @@
|
||||
burning = TRUE
|
||||
update_icon()
|
||||
START_PROCESSING(SSobj, src)
|
||||
visible_message("<span class='warning'>\The [src] starts burning!</span>")
|
||||
visible_message(span_warning("\The [src] starts burning!"))
|
||||
|
||||
/obj/structure/bonfire/proc/burn()
|
||||
var/turf/current_location = get_turf(src)
|
||||
@@ -305,24 +305,24 @@
|
||||
if(get_fuel_amount())
|
||||
var/atom/movable/AM = pop(contents)
|
||||
AM.forceMove(get_turf(src))
|
||||
to_chat(user, "<span class='notice'>You take \the [AM] out of \the [src] before it has a chance to burn away.</span>")
|
||||
to_chat(user, span_notice("You take \the [AM] out of \the [src] before it has a chance to burn away."))
|
||||
update_icon()
|
||||
|
||||
/obj/structure/fireplace/proc/add_fuel(atom/movable/new_fuel, mob/user)
|
||||
if(get_fuel_amount() >= 10)
|
||||
to_chat(user, "<span class='warning'>\The [src] already has enough fuel!</span>")
|
||||
to_chat(user, span_warning("\The [src] already has enough fuel!"))
|
||||
return FALSE
|
||||
if(istype(new_fuel, /obj/item/stack/material/wood) || istype(new_fuel, /obj/item/stack/material/log) )
|
||||
var/obj/item/stack/F = new_fuel
|
||||
var/obj/item/stack/S = F.split(1)
|
||||
if(S)
|
||||
S.forceMove(src)
|
||||
to_chat(user, "<span class='warning'>You add \the [new_fuel] to \the [src].</span>")
|
||||
to_chat(user, span_warning("You add \the [new_fuel] to \the [src]."))
|
||||
update_icon()
|
||||
return TRUE
|
||||
return FALSE
|
||||
else
|
||||
to_chat(user, "<span class='warning'>\The [src] needs raw wood to burn, \a [new_fuel] won't work.</span>")
|
||||
to_chat(user, span_warning("\The [src] needs raw wood to burn, \a [new_fuel] won't work."))
|
||||
return FALSE
|
||||
|
||||
/obj/structure/fireplace/proc/consume_fuel(var/obj/item/stack/consumed_fuel)
|
||||
@@ -361,7 +361,7 @@
|
||||
burning = TRUE
|
||||
update_icon()
|
||||
START_PROCESSING(SSobj, src)
|
||||
visible_message("<span class='warning'>\The [src] starts burning!</span>")
|
||||
visible_message(span_warning("\The [src] starts burning!"))
|
||||
|
||||
/obj/structure/fireplace/proc/burn()
|
||||
var/turf/current_location = get_turf(src)
|
||||
|
||||
Reference in New Issue
Block a user