mirror of
https://github.com/solero/houdini.git
synced 2024-11-22 05:27:23 +00:00
Implement missing handle epf_medal_check
Fixes bug where system defender stamps were unattainable. Handler itself is pretty useless.
This commit is contained in:
parent
e5c9a4b57a
commit
e61d5fb02c
@ -140,3 +140,14 @@ async def handle_epf_grant_reward(p, medals: int):
|
|||||||
await p.update(career_medals=p.career_medals + medals,
|
await p.update(career_medals=p.career_medals + medals,
|
||||||
agent_medals=p.agent_medals + medals).apply()
|
agent_medals=p.agent_medals + medals).apply()
|
||||||
await p.send_xt('epfgr', p.career_medals, p.agent_medals)
|
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')
|
||||||
|
Loading…
Reference in New Issue
Block a user