mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
Polishes code with lists
This commit is contained in:
@@ -61,7 +61,8 @@
|
||||
state = 0
|
||||
|
||||
if(2)
|
||||
if(istype(I, /obj/item/weapon/book) || istype(I, /obj/item/weapon/spellbook) || istype(I, /obj/item/weapon/storage/book))
|
||||
var/list/allowed_books = list(/obj/item/weapon/book, /obj/item/weapon/spellbook, /obj/item/weapon/storage/book)
|
||||
if(is_type_in_list(I, allowed_books))
|
||||
user.drop_item()
|
||||
I.loc = src
|
||||
update_icon()
|
||||
|
||||
Reference in New Issue
Block a user