This commit is contained in:
Yohann D'ANELLO 2020-12-11 18:17:08 +01:00
parent e7f24c2371
commit 45f420aaef
2 changed files with 4 additions and 4 deletions

View File

@ -140,8 +140,8 @@ class StoreInventoryDisplay(MenuDisplay):
rep = self.pack[item.name.upper()]
selection = f"[{rep}]" if i == self.menu.position else f" {rep} "
self.addstr(self.pad, 2 + i, 0, selection
+ " " + item.translated_name.capitalize()\
+": "+str(item.price)+" Hazels")
+ " " + item.translated_name.capitalize()
+ ": " + str(item.price) + " Hazels")
@property
def truewidth(self) -> int:

View File

@ -2,7 +2,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
from random import choice, randint
from typing import Optional, Any
from typing import Optional
from .player import Player
from ..interfaces import Entity, FightingEntity, Map, InventoryHolder
@ -19,7 +19,7 @@ class Item(Entity):
def __init__(self, held: bool = False,
held_by: Optional[InventoryHolder] = None,
price: int = 2, *args, **kwargs):
price: int = 2, *args, **kwargs):
super().__init__(*args, **kwargs)
self.held = held
self.held_by = held_by