mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 15:37:36 +01:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user