Handle fire ninja rank up with golden code cards

This commit is contained in:
Ben 2020-06-26 03:29:44 +01:00
parent 1191e33bbc
commit a3bf192ec0

View File

@ -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:]))