mirror of
https://github.com/solero/houdini.git
synced 2024-11-21 21:17:21 +00:00
Handle fire ninja rank up with golden code cards
This commit is contained in:
parent
1191e33bbc
commit
a3bf192ec0
@ -11,6 +11,7 @@ from houdini.data.redemption import PenguinRedemptionCode, RedemptionAwardCard,
|
|||||||
RedemptionAwardLocation, RedemptionAwardPuffle, RedemptionAwardPuffleItem, RedemptionCode
|
RedemptionAwardLocation, RedemptionAwardPuffle, RedemptionAwardPuffleItem, RedemptionCode
|
||||||
from houdini.handlers import XTPacket
|
from houdini.handlers import XTPacket
|
||||||
from houdini.handlers.games.ninja.card import ninja_rank_up
|
from houdini.handlers.games.ninja.card import ninja_rank_up
|
||||||
|
from houdini.handlers.games.ninja.fire import fire_ninja_rank_up
|
||||||
|
|
||||||
|
|
||||||
TreasureUnlockCount = 3
|
TreasureUnlockCount = 3
|
||||||
@ -203,6 +204,10 @@ async def handle_golden_choice(p, redemption_code: str, choice: int):
|
|||||||
await ninja_rank_up(p)
|
await ninja_rank_up(p)
|
||||||
cards = cards[:4]
|
cards = cards[:4]
|
||||||
await p.send_xt('rsgc', ','.join(card_ids[:4]) + '|' + str(p.ninja_rank))
|
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:
|
else:
|
||||||
cards = cards[:4] + cards[-2:]
|
cards = cards[:4] + cards[-2:]
|
||||||
await p.send_xt('rsgc', ','.join(card_ids[:4]) + '|' + ','.join(card_ids[-2:]))
|
await p.send_xt('rsgc', ','.join(card_ids[:4]) + '|' + ','.join(card_ids[-2:]))
|
||||||
|
Loading…
Reference in New Issue
Block a user