mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 16:12:19 +00:00
46 lines
1.5 KiB
Plaintext
46 lines
1.5 KiB
Plaintext
/obj/effect/overlay/burnt_wall
|
|
name = "burnt wall"
|
|
desc = "A wall that had a hole burnt into it. Nasty."
|
|
icon = 'icons/turf/flooring/plating.dmi'
|
|
icon_state = "wall_thermite"
|
|
var/material/material
|
|
var/material/reinf_material
|
|
|
|
/obj/effect/overlay/burnt_wall/Initialize(mapload, var/new_name, var/material/new_mat, var/material/new_reinf_mat)
|
|
. = ..()
|
|
name = "burnt [new_name]"
|
|
material = new_mat
|
|
if(new_reinf_mat)
|
|
reinf_material = new_reinf_mat
|
|
color = material.icon_colour
|
|
if(material.opacity < 0.5)
|
|
alpha = 125
|
|
|
|
/obj/effect/overlay/burnt_wall/attackby(obj/item/I, mob/user)
|
|
if(I.iswelder())
|
|
var/obj/item/weldingtool/WT = I
|
|
if(!WT.isOn())
|
|
return
|
|
if(WT.remove_fuel(0,user))
|
|
user.visible_message("<b>[user]</b> starts slicing \the [src] apart.", SPAN_NOTICE("You start slicing \the [src] apart."))
|
|
playsound(src, 'sound/items/welder.ogg', 100, 1)
|
|
var/slice_time = reinf_material ? 100 : 30
|
|
if(do_after(user, slice_time, TRUE))
|
|
user.visible_message("<b>[user]</b> slices \the [src] apart.", SPAN_NOTICE("You slice \the [src] apart."))
|
|
material.place_sheet(get_turf(src))
|
|
if(reinf_material)
|
|
reinf_material.place_sheet(get_turf(src))
|
|
qdel(src)
|
|
return
|
|
..()
|
|
|
|
/obj/effect/overlay/thermite
|
|
name = "burning thermite"
|
|
desc = "It's flaming ball of thermite!"
|
|
icon = 'icons/effects/fire.dmi'
|
|
icon_state = "2"
|
|
anchored = TRUE
|
|
layer = 5
|
|
|
|
/obj/effect/overlay/burnt_wall/steel/Initialize(mapload)
|
|
. = ..(mapload, "wall", MATERIAL_STEEL) |