Added Veryinky's construct/deconstruct doors code. Construction is 4 metal, wrench, wire, multitool, screwdriver. Deconstruction is weld, screwdriver, crowbar, wirecutter, wrench, welder. Add reinforced glass at any construction stage to make it a glass airlock door.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@102 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
musketstgstation@gmail.com
2010-09-16 14:57:40 +00:00
parent e8b5a09a55
commit cb3886d156
4 changed files with 272 additions and 2 deletions
@@ -161,6 +161,7 @@ LATTICE
L["reinforced"] = "reinforced sheet (2 metal)<BR>"
L["computer"] = "computer frame (5 metal)<BR>"
L["construct"] = "construct wall girders (2 metal)"
L["airlock"] = "construct airlock assembly (4 metal)"
for(var/t in L)
counter++
@@ -312,6 +313,18 @@ LATTICE
src.amount -= 2
new /obj/structure/girder(location)
if("airlock")
if (src.amount < 4)
usr << text("\red You haven't got enough metal to construct the airlock assembly!")
return
usr << "\blue Building airlock assembly ..."
var/turf/location = usr.loc
sleep(50)
if ((usr.loc == location))
if (!istype(location, /turf/simulated/floor))
return
src.amount -= 4
new /obj/door_assembly(location)
if (src.amount <= 0)
usr << browse(null, "window=met_sheet")