Esempio n. 1
0
 async def artillery(self, ctx, target: discord.Member = None, shots: int = 1):
     if not Data.get_attribute(ctx.author.id, "artillery", False):
         await ctx.send("Clearly, you don't own any artillery")
         return
     if not target:
         ammo = "Artillery-Ammo"
         await ctx.send(f"Your artillery is ready to fire, you have {Inventory.get_resource(ctx.author.id, ammo)} shots!")
Esempio n. 2
0
 async def status_remove(self, ctx, condition: str, *, target: discord.Member):
     status: list = Data.get_attribute(target.id, "status", [])
     status.remove(condition)
     Data.set_attribute(target.id,"status",status)
     await ctx.send("De-Application successful")
Esempio n. 3
0
 async def status(self, ctx, target: discord.Member):
     status = Data.get_attribute(target.id, "status", [])
     await ctx.send(status)
Esempio n. 4
0
 async def status_apply(self, ctx, condition: str, *, target: discord.Member):
     status = Data.get_attribute(target.id, "status", [])
     status.append(condition)
     Data.set_attribute(target.id, "status", status)
     await ctx.send("Application successful")
Esempio n. 5
0
def get(_id):
    return Data.get_attribute(_id, "inventory", [])