Fixes irreparable plating (#34472)

This commit is contained in:
ShizCalev
2018-01-18 21:12:46 -05:00
committed by CitadelStationBot
parent c545dc2f79
commit f93ca08aa7
12 changed files with 25 additions and 331 deletions
+11 -4
View File
@@ -19,7 +19,7 @@
to_chat(user, "<span class='notice'>It looks like the dents could be <i>welded</i> smooth.</span>")
return
if(attachment_holes)
to_chat(user, "<span class='notice'>There are few attachment holes for a new <i>tile</i> or reinforcement <i>rods</i>.</span>")
to_chat(user, "<span class='notice'>There are a few attachment holes for a new <i>tile</i> or reinforcement <i>rods</i>.</span>")
else
to_chat(user, "<span class='notice'>You might be able to build ontop of it with some <i>tiles</i>...</span>")
@@ -29,7 +29,10 @@
if (!burnt_states)
burnt_states = list("panelscorched")
. = ..()
icon_plating = icon_state
if(!attachment_holes || (!broken && !burnt))
icon_plating = icon_state
else
icon_plating = initial(icon_state)
/turf/open/floor/plating/update_icon()
if(!..())
@@ -89,8 +92,12 @@
name = "metal foam plating"
desc = "Thin, fragile flooring created with metal foam."
icon_state = "foam_plating"
broken_states = list("foam_plating")
burnt_states = list("foam_plating")
/turf/open/floor/plating/foam/burn_tile()
return //jetfuel can't melt steel foam
/turf/open/floor/plating/foam/break_tile()
return //jetfuel can't break steel foam...
/turf/open/floor/plating/foam/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/stack/tile/plasteel))