Added a Bow, related to #64

This commit is contained in:
eichhornchen
2021-01-08 18:06:26 +01:00
parent bde33e9232
commit f6210a6356
7 changed files with 105 additions and 6 deletions

View File

@ -4,7 +4,7 @@
from random import randint
from typing import Dict, Optional, Tuple
from .items import Item
from .items import Item, Bow
from ..interfaces import FightingEntity, InventoryHolder
@ -38,6 +38,9 @@ class Player(InventoryHolder, FightingEntity):
self.max_xp = max_xp
self.xp_buff = xp_buff
self.inventory = self.translate_inventory(inventory or [])
b = Bow()
b.held_by=self
self.inventory.append(b)
self.paths = dict()
self.hazel = hazel
self.equipped_main = self.dict_to_item(equipped_main) \