mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 23:53:47 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user