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!")
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")
async def status(self, ctx, target: discord.Member): status = Data.get_attribute(target.id, "status", []) await ctx.send(status)
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")
def get(_id): return Data.get_attribute(_id, "inventory", [])