fixes #10547, adds progress bars to grilles and windows, also fixes #9748

I guess
This commit is contained in:
barackobama
2015-07-11 19:49:32 +01:00
parent 2694fab4d8
commit f02c32c8ee
+3 -2
View File
@@ -427,7 +427,7 @@ RCD
return 0
user << "<span class='notice'>You start building a grille...</span>"
playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
if(do_after(user, 40))
if(do_after(user, 40, target = A))
if(!useResource(5, user)) return 0
activate()
var/obj/structure/grille/G = new/obj/structure/grille(A)
@@ -439,7 +439,8 @@ RCD
if(checkResource(5, user))
user << "<span class='notice'>You start building a window...</span>"
playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
if(do_after(user, 40))
if(do_after(user, 40, target = A))
if(locate(/obj/structure/window) in A.loc) return 0
if(!useResource(5, user)) return 0
activate()
var/obj/structure/window/WD = new/obj/structure/window/fulltile(A.loc)