Adds a "params" parameter to attackby(), so it keeps track of pixel_x and pixel_y among other things

This commit is contained in:
Markolie
2015-02-22 22:12:11 +01:00
parent aee4626ed9
commit 672305e034
456 changed files with 714 additions and 1182 deletions
+2 -2
View File
@@ -28,7 +28,7 @@
I.loc = src
update_icon()
/obj/structure/bookcase/attackby(obj/O as obj, mob/user as mob)
/obj/structure/bookcase/attackby(obj/O as obj, mob/user as mob, params)
if(istype(O, /obj/item/weapon/book) || istype(O, /obj/item/weapon/spellbook))
user.drop_item()
O.loc = src
@@ -178,7 +178,7 @@
else
user << "This book is completely blank!"
/obj/item/weapon/book/attackby(obj/item/weapon/W as obj, mob/user as mob)
/obj/item/weapon/book/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
if(carved)
if(!store)
if(W.w_class < 3)