Construction Stuff (#9379)

This commit is contained in:
Geeves
2020-07-30 11:33:18 +02:00
committed by GitHub
parent 70bd14e30b
commit e8102248c3
10 changed files with 221 additions and 131 deletions

View File

@@ -0,0 +1,43 @@
/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