Add support for GOLDEN type redemption codes.

This commit is contained in:
rsakeys 2020-03-03 21:40:36 +00:00
parent 2aadfba9e8
commit c6a17e8e56

View File

@ -108,4 +108,8 @@ async def handle_code(p, redemption_code: str):
await p.send_xt('rsc', 'INNOCENT', ','.join(map(str, awards)), redeemed, len(innocent_items)) await p.send_xt('rsc', 'INNOCENT', ','.join(map(str, awards)), redeemed, len(innocent_items))
if code.type == 'GOLDEN':
await p.send_xt('rsc', 'GOLDEN', p.ninja_rank, p.fire_ninja_rank, p.water_ninja_rank, 0,
int(p.fire_ninja_rank > 0), int(p.water_ninja_rank > 0), 0)