TG: Extra functionality for pill containers. They work like ore satchels now; click

a tile full of pills to scoop them up.

Sec officers start with maintenance access now. GASP!

Properly fixed shutters/blast doors not reacting to buttons, while not
destroying my optimization.
Revision: r3377
Author: 	 vageyenaman
This commit is contained in:
Ren Erthilo
2012-05-01 03:05:10 +01:00
parent 93403a15e5
commit 10d4ca7dd6
4 changed files with 34 additions and 6 deletions
+17 -1
View File
@@ -1768,7 +1768,23 @@
icon_state = "pill[rand(1,20)]"
attackby(obj/item/weapon/W as obj, mob/user as mob)
if (istype(W, /obj/item/weapon/storage/pill_bottle))
var/obj/item/weapon/storage/pill_bottle/P = W
if (P.mode == 1)
for (var/obj/item/weapon/reagent_containers/pill/O in locate(src.x,src.y,src.z))
if(P.contents.len < P.storage_slots)
O.loc = P
P.orient2hud(user)
else
user << "\blue The pill bottle is full."
return
user << "\blue You pick up all the pills."
else
if (P.contents.len < P.storage_slots)
loc = P
P.orient2hud(user)
else
user << "\blue The pill bottle is full."
return
attack_self(mob/user as mob)
return