Stops plating subtypes from stating it has holes for rods & you can now only build ontop of it with tiles. (#31788)

* Stops plating types from stating rod holes

* More immersion. Stops building ontop with rods.
This commit is contained in:
ShizCalev
2017-10-17 13:37:25 -05:00
committed by CitadelStationBot
parent 9691c9130f
commit 272fcc0b5d
4 changed files with 12 additions and 2 deletions
+6 -2
View File
@@ -11,13 +11,17 @@
name = "plating"
icon_state = "plating"
intact = FALSE
var/attachment_holes = TRUE
/turf/open/floor/plating/examine(mob/user)
..()
if(broken || burnt)
to_chat(user, "<span class='notice'>It looks like the dents could be <i>welded</i> smooth.</span>")
return
to_chat(user, "<span class='notice'>There are few attachment holes for a new <i>tile</i> or reinforcement <i>rods</i>.</span>")
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>")
else
to_chat(user, "<span class='notice'>You might be able to build ontop of it with some <i>tiles</i>...</span>")
/turf/open/floor/plating/Initialize()
if (!broken_states)
@@ -36,7 +40,7 @@
/turf/open/floor/plating/attackby(obj/item/C, mob/user, params)
if(..())
return
if(istype(C, /obj/item/stack/rods))
if(istype(C, /obj/item/stack/rods) && attachment_holes)
if(broken || burnt)
to_chat(user, "<span class='warning'>Repair the plating first!</span>")
return