Adds book cart to library

This commit is contained in:
Schnayy
2020-01-23 23:53:25 -05:00
committed by VirgoBot
parent 2914cbf2ce
commit 8ebe8c8772
4 changed files with 40 additions and 2 deletions
+27
View File
@@ -96,7 +96,34 @@
else
icon_state = "book-5"
/*
Book Cart
*/
/obj/structure/bookcase/bookcart
name = "book cart"
icon = 'icons/obj/library.dmi'
icon_state = "bookcart-0"
anchored = 0
opacity = 0
/obj/structure/bookcase/bookcart/attackby(obj/item/O as obj, mob/user as mob)
if(istype(O, /obj/item/weapon/book))
user.drop_item()
O.loc = src
update_icon()
else
return
/obj/structure/bookcase/bookcart/update_icon()
if(contents.len < 5)
icon_state = "bookcart-[contents.len]"
else
icon_state = "bookcart-5"
/*
Book Cart End
*/
/obj/structure/bookcase/manuals/medical
name = "Medical Manuals bookcase"