From e61d5fb02ca3acacba208f60477d056c0c0a5516 Mon Sep 17 00:00:00 2001 From: Ben Date: Sun, 21 Jun 2020 15:48:23 +0100 Subject: [PATCH 1/3] Implement missing handle `epf_medal_check` Fixes bug where system defender stamps were unattainable. Handler itself is pretty useless. --- houdini/handlers/play/epf.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/houdini/handlers/play/epf.py b/houdini/handlers/play/epf.py index cadce9e..c74b8fb 100644 --- a/houdini/handlers/play/epf.py +++ b/houdini/handlers/play/epf.py @@ -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') From 5bd4d35aee264e6b1951b35874e2f19095716168 Mon Sep 17 00:00:00 2001 From: Ben Date: Sun, 21 Jun 2020 15:49:46 +0100 Subject: [PATCH 2/3] Fix bug where Puffle hats could not be removed --- houdini/handlers/play/pet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/houdini/handlers/play/pet.py b/houdini/handlers/play/pet.py index 73e2a74..1671dd8 100644 --- a/houdini/handlers/play/pet.py +++ b/houdini/handlers/play/pet.py @@ -651,8 +651,8 @@ async def handle_set_puffle_handler(p): @handlers.handler(XTPacket('p', 'puphi'), client=ClientType.Vanilla) async def handle_puffle_visitor_hat_update(p, puffle: PenguinPuffle, hat_id: int): - if hat_id in p.puffle_items: - await puffle.update(hat=hat_id).apply() + if hat_id in p.puffle_items or hat_id == 0: + await puffle.update(hat=hat_id if hat_id > 0 else None).apply() await p.room.send_xt('puphi', puffle.id, hat_id) From 24c9847230ca7f419a2d2a2332ff541d3bd1bd30 Mon Sep 17 00:00:00 2001 From: Ben Date: Sun, 21 Jun 2020 15:52:26 +0100 Subject: [PATCH 3/3] Increase Puffle killer interval to 30 minutes --- houdini/handlers/play/pet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houdini/handlers/play/pet.py b/houdini/handlers/play/pet.py index 1671dd8..b54485f 100644 --- a/houdini/handlers/play/pet.py +++ b/houdini/handlers/play/pet.py @@ -12,7 +12,7 @@ from houdini.data.pet import PenguinPuffle, PenguinPuffleCollection, PenguinPuff from houdini.data.room import PenguinBackyardRoom, PenguinIglooRoom from houdini.handlers import Priority, XMLPacket, XTPacket -PuffleKillerInterval = 600 +PuffleKillerInterval = 1800 LegacyPuffleIds = [0, 1, 2, 3, 4, 5, 6, 7, 8] BrushCareItemId = 1