diff --git a/pokete_classes/fight/items/balls.py b/pokete_classes/fight/items/balls.py index e525492f..ded99494 100644 --- a/pokete_classes/fight/items/balls.py +++ b/pokete_classes/fight/items/balls.py @@ -19,7 +19,7 @@ def __init__(self, chance:int, name: str): self.chance = chance self.name = name - def use(self, fightmap: FightMap, obj, enem:Provider) -> RoundContinuation: + def use(self, fightmap: FightMap, obj:Provider, enem:Provider) -> RoundContinuation: """Throws a ball ARGS: obj: The players Poke object diff --git a/pokete_classes/fight/providers.py b/pokete_classes/fight/providers.py index 53325386..6b959800 100644 --- a/pokete_classes/fight/providers.py +++ b/pokete_classes/fight/providers.py @@ -44,6 +44,11 @@ def index_conf(self): i for i, poke in enumerate(self.pokes) if poke.hp > 0 ) + def remove_item(self, name:str): + """Removes and item from the providers inventory + Accept for the player implementation that shouldnt do anything""" + return + @abstractmethod def get_decision( self, ctx: Context, fightmap: "FightMap", diff --git a/pokete_classes/multiplayer/remote_fight/figure_wrapper.py b/pokete_classes/multiplayer/remote_fight/figure_wrapper.py index 1c85e77a..1d31bc6c 100644 --- a/pokete_classes/multiplayer/remote_fight/figure_wrapper.py +++ b/pokete_classes/multiplayer/remote_fight/figure_wrapper.py @@ -28,6 +28,9 @@ def caught_pokes(self): def map(self): return self.figure.map + def remove_item(self, name:str): + self.figure.remove_item(name) + def greet(self, fightmap: FightMap): return super().greet(fightmap)