This commit is contained in:
Iamgoofball
2016-06-03 12:48:32 -07:00
committed by KorPhaeron
parent 7c8603a0a8
commit a3c6571cfd
+11 -11
View File
@@ -95,17 +95,6 @@
i++
/obj/machinery/mineral/ore_redemption/attackby(obj/item/weapon/W, mob/user, params)
if (!powered())
return
if(istype(W,/obj/item/weapon/card/id))
var/obj/item/weapon/card/id/I = user.get_active_hand()
if(istype(I) && !istype(inserted_id))
if(!user.drop_item())
return
I.loc = src
inserted_id = I
interact(user)
return
if(exchange_parts(user, W))
return
@@ -120,6 +109,17 @@
if(default_deconstruction_crowbar(W))
return
if (!powered())
return
if(istype(W,/obj/item/weapon/card/id))
var/obj/item/weapon/card/id/I = user.get_active_hand()
if(istype(I) && !istype(inserted_id))
if(!user.drop_item())
return
I.loc = src
inserted_id = I
interact(user)
return
return ..()
/obj/machinery/mineral/ore_redemption/deconstruction()