mirror of
https://github.com/solero/houdini.git
synced 2025-01-11 15:17:00 +00:00
Add EPF inventory method
This commit is contained in:
parent
0b57942558
commit
8d017e5594
@ -79,6 +79,21 @@ class Penguin(Spheniscidae):
|
|||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
async def add_epf_inventory(self, item, notify=True):
|
||||||
|
if not item.epf:
|
||||||
|
return False
|
||||||
|
|
||||||
|
if item.id in self.data.inventory:
|
||||||
|
return False
|
||||||
|
|
||||||
|
await self.data.inventory.set(item.id)
|
||||||
|
await self.data.update(agent_medals=self.data.agent_medals - item.cost).apply()
|
||||||
|
|
||||||
|
if notify:
|
||||||
|
await self.send_xt('epfai', self.data.agent_medals)
|
||||||
|
|
||||||
|
return True
|
||||||
|
|
||||||
async def add_igloo(self, igloo, notify=True):
|
async def add_igloo(self, igloo, notify=True):
|
||||||
if igloo.id in self.data.igloos:
|
if igloo.id in self.data.igloos:
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user