From 3c776efd1bb6c5dc44e012245fc0a3d218d78269 Mon Sep 17 00:00:00 2001
From: Tails2091 <40816748+Tails2091@users.noreply.github.com>
Date: Fri, 3 Aug 2018 15:39:20 -0400
Subject: [PATCH] Changed Card Icon Update
---
code/game/objects/items/toys.dm | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/code/game/objects/items/toys.dm b/code/game/objects/items/toys.dm
index a5dbce51977..c1b88897bfd 100644
--- a/code/game/objects/items/toys.dm
+++ b/code/game/objects/items/toys.dm
@@ -698,13 +698,15 @@ obj/item/toy/cards/singlecard/attackby(obj/item/I, mob/living/user, params)
user.unEquip(src)
user.visible_message("[user] adds a card to [user.p_their()] hand.", "You add the [cardname] to your hand.")
H.interact(user)
- update_icon()
+ H.update_icon()
qdel(src)
else
to_chat(user, "You can't mix cards from other decks.")
obj/item/toy/cards/cardhand/update_icon()
switch(currenthand.len)
+ if(0 to 1)
+ return
if(2)
icon_state = "[deckstyle]_hand2"
if(3)
@@ -712,8 +714,7 @@ obj/item/toy/cards/cardhand/update_icon()
if(4)
icon_state = "[deckstyle]_hand4"
else
- if(currenthand.len > 4)
- icon_state = "[deckstyle]_hand5"
+ icon_state = "[deckstyle]_hand5"
obj/item/toy/cards/singlecard/attack_self(mob/user)