mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
Supposed to help compilation times. Who knows. Signed-off-by: Mloc-Argent <colmohici@gmail.com>
23 lines
685 B
Plaintext
23 lines
685 B
Plaintext
/obj/structure/filingcabinet
|
|
name = "Filing Cabinet"
|
|
desc = "A large cabinet with drawers."
|
|
icon = 'icons/obj/bureaucracy.dmi'
|
|
icon_state = "filingcabinet"
|
|
density = 1
|
|
anchored = 1
|
|
|
|
/obj/structure/filingcabinet/attackby(obj/item/weapon/paper/P,mob/M)
|
|
if(istype(P))
|
|
M << "You put the [P] in the [src]."
|
|
M.drop_item()
|
|
P.loc = src
|
|
else
|
|
M << "You can't put a [P] in the [src]!"
|
|
|
|
/obj/structure/filingcabinet/attack_hand(mob/user)
|
|
if(src.contents.len <= 0)
|
|
user << "The [src] is empty."
|
|
return
|
|
var/obj/item/weapon/paper/P = input(user,"Choose a sheet to take out.","[src]", "Cancel") as null|obj in src.contents
|
|
if(!isnull(P) && in_range(src,user))
|
|
P.loc = user.loc |