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
+3 -3
View File
@@ -24,7 +24,7 @@
// If the computer is attacked by an item it will reference this to decide which peripheral(s) are affected.
var/list/attackby_types = list()
proc/allow_attackby(var/obj/item/I as obj,var/mob/user as mob)
proc/allow_attackby(var/obj/item/I as obj,var/mob/user as mob, params)
for(var/typekey in attackby_types)
if(istype(I,typekey))
@@ -60,7 +60,7 @@
return
..()
attackby(obj/I as obj,mob/user as mob)
attackby(obj/I as obj,mob/user as mob, params)
if(computer && !computer.stat)
if(istype(I, /obj/item/device/aicard))
I:transfer_ai("AIFIXER","AICARD",src,user)
@@ -94,7 +94,7 @@
usr << "You are unable to insert \the card, as the reader slot is occupied"
return 0
attackby(var/obj/item/I as obj, var/mob/user as mob)
attackby(var/obj/item/I as obj, var/mob/user as mob, params)
if(istype(I,/obj/item/weapon/card))
insert(I)
return