mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 23:53:47 +01:00
Attack Chain Migration: /obj/item/card (#27556)
* the work so far * She returns on my TRUE till I ITEM_INTERACT_SUCCESS * do this too (rip good commit name) * Did you know? You can stamp ID cards!
This commit is contained in:
@@ -501,16 +501,16 @@
|
||||
icon_state = "data"
|
||||
var/points = 500
|
||||
|
||||
/obj/item/card/mining_point_card/attackby__legacy__attackchain(obj/item/I, mob/user, params)
|
||||
if(istype(I, /obj/item/card/id))
|
||||
/obj/item/card/mining_point_card/item_interaction(mob/living/user, obj/item/used, list/modifiers)
|
||||
if(istype(used, /obj/item/card/id))
|
||||
if(points)
|
||||
var/obj/item/card/id/C = I
|
||||
var/obj/item/card/id/C = used
|
||||
C.mining_points += points
|
||||
to_chat(user, "<span class='notice'>You transfer [points] points to [C].</span>")
|
||||
points = 0
|
||||
else
|
||||
to_chat(user, "<span class='notice'>There's no points left on [src].</span>")
|
||||
..()
|
||||
return ITEM_INTERACT_SUCCESS
|
||||
|
||||
/obj/item/card/mining_point_card/examine(mob/user)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user