From c6a17e8e56fe3309984cdb7ef31e3c6c59d7e5b3 Mon Sep 17 00:00:00 2001 From: rsakeys Date: Tue, 3 Mar 2020 21:40:36 +0000 Subject: [PATCH] Add support for GOLDEN type redemption codes. --- houdini/handlers/redemption/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/houdini/handlers/redemption/__init__.py b/houdini/handlers/redemption/__init__.py index a78074c..e79010e 100644 --- a/houdini/handlers/redemption/__init__.py +++ b/houdini/handlers/redemption/__init__.py @@ -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)) + 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) +