mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Merge pull request #6499 from VOREStation/upstream-merge-6645
[MIRROR] Adds book cart to library
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user