This commit is contained in:
Kelenius
2014-06-19 02:48:37 +04:00
parent a8b7588c12
commit cd4be00d3b
@@ -531,7 +531,7 @@ obj/structure/door_assembly
playsound(src.loc, 'sound/items/Crowbar.ogg', 100, 1)
user.visible_message("[user] adds [G.name] to the airlock assembly.", "You start to install [G.name] into the airlock assembly.")
if(do_after(user, 40))
if(C.get_amount() < 1 || mineral) return
if(G.get_amount() < 1 || mineral) return
user << "<span class='notice'>You've installed reinforced glass windows into the airlock assembly.</span>"
G.use(1)
mineral = "glass"
@@ -554,7 +554,7 @@ obj/structure/door_assembly
playsound(src.loc, 'sound/items/Crowbar.ogg', 100, 1)
user.visible_message("[user] adds [G.name] to the airlock assembly.", "You start to install [G.name] into the airlock assembly.")
if(do_after(user, 40))
if(C.get_amount() < 2 || mineral) return
if(G.get_amount() < 2 || mineral) return
user << "<span class='notice'>You've installed [M] plating into the airlock assembly.</span>"
G.use(2)
mineral = "[M]"