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:
Qwertytoforty
2024-12-15 16:06:48 -05:00
committed by GitHub
parent 87b91b1685
commit 0caf77d272
16 changed files with 84 additions and 69 deletions
+4 -4
View File
@@ -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)
. = ..()