Test inventory

This commit is contained in:
Yohann D'ANELLO
2020-12-04 18:16:46 +01:00
parent 91a4514649
commit 4b9399c687
2 changed files with 77 additions and 2 deletions

View File

@ -92,9 +92,9 @@ class Bomb(Item):
A bomb item intended to deal damage to enemies at long range
"""
damage: int = 5
owner: "Player"
tick: int
exploding: bool
owner: Optional["Player"]
tick: int
def __init__(self, damage: int = 5, exploding: bool = False,
*args, **kwargs):
@ -102,6 +102,7 @@ class Bomb(Item):
self.damage = damage
self.exploding = exploding
self.tick = 4
self.owner = None
def use(self) -> None:
"""