Implement missing handle epf_medal_check

Fixes bug where system defender stamps were unattainable. Handler itself is pretty useless.
This commit is contained in:
Ben 2020-06-21 15:48:23 +01:00
parent e5c9a4b57a
commit e61d5fb02c

View File

@ -140,3 +140,14 @@ async def handle_epf_grant_reward(p, medals: int):
await p.update(career_medals=p.career_medals + medals,
agent_medals=p.agent_medals + medals).apply()
await p.send_xt('epfgr', p.career_medals, p.agent_medals)
@handlers.handler(XTPacket('epfsf', ext='z'))
async def handle_epf_medal_check(p, stamp_id: int):
if not p.agent_status:
await p.send_xt('epfsf', 'naa')
if stamp_id not in p.stamps:
await p.send_xt('epfsf', 'nem', stamp_id)
else:
await p.send_xt('epfsf', 'ahm')