mirror of
https://github.com/solero/houdini.git
synced 2024-11-21 21:17:21 +00:00
handle_epf_grant_reward
handler
This commit is contained in:
parent
7170102fee
commit
b930f49d30
@ -131,3 +131,13 @@ async def handle_get_com_messages(p):
|
||||
await p.send_xt('epfgm', int(bool(unread_com_message)), com_messages)
|
||||
else:
|
||||
await p.send_xt('epfgm', int(bool(unread_com_message)))
|
||||
|
||||
|
||||
@handlers.handler(XTPacket('f', 'epfgrantreward'))
|
||||
@handlers.cooldown(60)
|
||||
@handlers.player_attribute(agent_status=False)
|
||||
async def handle_epf_grant_reward(p, medals: int):
|
||||
medals = min(45, medals)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user