From 9349b5374ba6d07238e2c1536a610f52af27babe Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 2 Apr 2020 23:04:38 +0100 Subject: [PATCH] Legacy get card data should sum card quantities --- houdini/handlers/play/ninja.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houdini/handlers/play/ninja.py b/houdini/handlers/play/ninja.py index bfddd68..687c02a 100644 --- a/houdini/handlers/play/ninja.py +++ b/houdini/handlers/play/ninja.py @@ -29,5 +29,5 @@ async def handle_get_snow_level(p): @handlers.handler(XTPacket('ni', 'gcd')) async def handle_get_card_data(p): - await p.send_xt('gcd', '|'.join(f'{card.card_id},{card.quantity},{card.member_quantity}' + await p.send_xt('gcd', '|'.join(f'{card.card_id},{card.quantity+card.member_quantity}' for card in p.cards.values()))