Skip to content

Commit

Permalink
Id skin attack chain
Browse files Browse the repository at this point in the history
  • Loading branch information
AyIong committed Dec 17, 2024
1 parent ace4336 commit 0ce3631
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions modular_ss220/objects/code/id_skins/_id_skins_base.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@
/obj/item/card/id/thunderdome
skinable = FALSE

/obj/item/card/id/attackby__legacy__attackchain(obj/item/item, mob/user, params)
/obj/item/card/id/item_interaction(mob/living/user, obj/item/used, list/modifiers)
. = ..()
if(!istype(item, /obj/item/id_skin))
return .

return apply_skin(item, user)
if(istype(used, /obj/item/id_skin))
apply_skin(used, user)
return ITEM_INTERACT_SUCCESS

/obj/item/card/id/examine(mob/user)
. = ..()
Expand Down

0 comments on commit 0ce3631

Please sign in to comment.