The player now has two hands and a slot for a helmet and a chestplate. Accordingly, new classes of items have been added.
This commit is contained in:
@ -47,20 +47,28 @@ class StatsDisplay(Display):
|
||||
printed_items.append(item)
|
||||
self.addstr(self.pad, 9, 0, inventory_str)
|
||||
|
||||
if self.player.equipped_item:
|
||||
if self.player.equipped_main:
|
||||
self.addstr(self.pad, 10, 0,
|
||||
_("Equipped item:") + " "
|
||||
f"{self.pack[self.player.equipped_item.name.upper()]}")
|
||||
if self.player.equipped_armor:
|
||||
_("Equipped main:") + " "
|
||||
f"{self.pack[self.player.equipped_main.name.upper()]}")
|
||||
if self.player.equipped_secondary:
|
||||
self.addstr(self.pad, 11, 0,
|
||||
_("Equipped armor:") + " "
|
||||
_("Equipped secondary:") + " "
|
||||
f"{self.pack[self.player.equipped_secondary.name.upper()]}")
|
||||
if self.player.equipped_armor:
|
||||
self.addstr(self.pad, 12, 0,
|
||||
_("Equipped chestplate:") + " "
|
||||
f"{self.pack[self.player.equipped_armor.name.upper()]}")
|
||||
if self.player.equipped_helmet:
|
||||
self.addstr(self.pad, 13, 0,
|
||||
_("Equipped helmet:") + " "
|
||||
f"{self.pack[self.player.equipped_helmet.name.upper()]}")
|
||||
|
||||
self.addstr(self.pad, 12, 0, f"{self.pack.HAZELNUT} "
|
||||
self.addstr(self.pad, 14, 0, f"{self.pack.HAZELNUT} "
|
||||
f"x{self.player.hazel}")
|
||||
|
||||
if self.player.dead:
|
||||
self.addstr(self.pad, 14, 0, _("YOU ARE DEAD"), curses.COLOR_RED,
|
||||
self.addstr(self.pad, 15, 0, _("YOU ARE DEAD"), curses.COLOR_RED,
|
||||
bold=True, blink=True, standout=True)
|
||||
|
||||
def display(self) -> None:
|
||||
|
@ -31,6 +31,9 @@ class TexturePack:
|
||||
TIGER: str
|
||||
WALL: str
|
||||
EAGLE: str
|
||||
SHIELD: str
|
||||
CHESTPLATE: str
|
||||
HELMET: str
|
||||
|
||||
ASCII_PACK: "TexturePack"
|
||||
SQUIRREL_PACK: "TexturePack"
|
||||
@ -78,6 +81,8 @@ TexturePack.ASCII_PACK = TexturePack(
|
||||
TIGER='n',
|
||||
WALL='#',
|
||||
EAGLE='µ',
|
||||
CHESTPLATE='(',
|
||||
HELMET='0',
|
||||
)
|
||||
|
||||
TexturePack.SQUIRREL_PACK = TexturePack(
|
||||
@ -106,4 +111,6 @@ TexturePack.SQUIRREL_PACK = TexturePack(
|
||||
TIGER='🐅',
|
||||
WALL='🧱',
|
||||
EAGLE='🦅',
|
||||
CHESTPLATE='🦺',
|
||||
HELMET='⛑️',
|
||||
)
|
||||
|
Reference in New Issue
Block a user