Update snow.py

This commit is contained in:
AllinolCP 2022-03-10 11:11:35 +07:00 committed by GitHub
parent 3a35dc3c85
commit a2999ad485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,12 +6,12 @@ from houdini.handlers.play.stampbook import get_player_stamps_string
@handlers.handler(XTPacket('i#ngi')) @handlers.handler(XTPacket('i#ngi'))
@handlers.cooldown(5) @handlers.cooldown(5)
async def ninja_get_inventory(self, p): async def ninja_get_inventory(p):
p.inventory = await PenguinItemCollection.get_collection(p.id) p.inventory = await PenguinItemCollection.get_collection(p.id)
await p.send_xt('gi', *p.inventory.keys()) await p.send_xt('gi', *p.inventory.keys())
@handlers.handler(XTPacket('st#ngps')) @handlers.handler(XTPacket('st#ngps'))
@handlers.cooldown(5) @handlers.cooldown(5)
async def ninja_get_penguin_stamps(self, p): async def ninja_get_penguin_stamps(p):
p.stamps = await PenguinStampCollection.get_collection(p.id) p.stamps = await PenguinStampCollection.get_collection(p.id)
await p.send_xt('gps', p.id, await get_player_stamps_string(p, p.id)) await p.send_xt('gps', p.id, await get_player_stamps_string(p, p.id))