From a3bf192ec0dd41c13d4f96263dc66cebec03d304 Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 26 Jun 2020 03:29:44 +0100 Subject: [PATCH] Handle fire ninja rank up with golden code cards --- houdini/handlers/redemption/code.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/houdini/handlers/redemption/code.py b/houdini/handlers/redemption/code.py index 155d925..64323f8 100644 --- a/houdini/handlers/redemption/code.py +++ b/houdini/handlers/redemption/code.py @@ -11,6 +11,7 @@ from houdini.data.redemption import PenguinRedemptionCode, RedemptionAwardCard, RedemptionAwardLocation, RedemptionAwardPuffle, RedemptionAwardPuffleItem, RedemptionCode from houdini.handlers import XTPacket from houdini.handlers.games.ninja.card import ninja_rank_up +from houdini.handlers.games.ninja.fire import fire_ninja_rank_up TreasureUnlockCount = 3 @@ -203,6 +204,10 @@ async def handle_golden_choice(p, redemption_code: str, choice: int): await ninja_rank_up(p) cards = cards[:4] await p.send_xt('rsgc', ','.join(card_ids[:4]) + '|' + str(p.ninja_rank)) + elif choice == FireNinjaRankUpChoice: + await fire_ninja_rank_up(p) + cards = cards[:4] + await p.send_xt('rsgc', ','.join(card_ids[:4]) + '|' + str(p.fire_ninja_rank)) else: cards = cards[:4] + cards[-2:] await p.send_xt('rsgc', ','.join(card_ids[:4]) + '|' + ','.join(card_ids[-2:]))