Changed colouring to use only standard 16 colour names, for now.

This commit is contained in:
Chris Davoren 2023-07-19 09:31:27 +10:00
parent 0cd6e15f52
commit 7b2d88c8a5
1 changed files with 5 additions and 5 deletions

View File

@ -171,7 +171,7 @@ class Character:
for i, skill in enumerate(self.skills):
row_string = "{:12} [bright_cyan]{:2}[/]".format(Character.get_skill_from_code(skill['id']), skill['level'])
if i % 2 == 0:
console.print(" [on #222222]{}[/]".format(row_string))
console.print(" [on bright_black]{}[/]".format(row_string))
else:
console.print(" {}".format(row_string))
console.print()
@ -179,7 +179,7 @@ class Character:
for i, attribute in enumerate(self.attributes):
row_string = "{:12} [bright_cyan]{:2}[/]".format(Character.get_attribute_from_code(attribute['id']), attribute['points'])
if i % 2 == 0:
console.print(" [on #222222]{}[/]".format(row_string))
console.print(" [on bright_black]{}[/]".format(row_string))
else:
console.print(" {}".format(row_string))
@ -423,16 +423,16 @@ class GameData:
console.print("[bold] {:>4} {:30} {:>3}[/]".format("ID", "Name", "#"))
total_quantity = 0
for i, item in enumerate(storage_area.items):
row_string = " {:4} {:30} {:3}".format(item.code, item.name, item.quantity)
row_string = " [bright_cyan]{:4}[/] {:30} [bright_cyan]{:3}[/]".format(item.code, item.name, item.quantity)
total_quantity += item.quantity
if i % 2 == 0:
console.print(" [on #222222]{}[/]".format(row_string))
console.print(" [on bright_black]{}[/]".format(row_string))
else:
console.print(" {}".format(row_string))
storage_area_capacity = storage_ids[storage_area.type_id]["capacity"]
console.print(" Total quantity: [bright_cyan]{}[/]/[bright_cyan]{}[/]".format(total_quantity, storage_area_capacity))
if total_quantity > storage_area_capacity:
console.print(" [dark_orange]WARNING: Storage capacity exceeded[/]")
console.print(" [bright_red]WARNING: Storage capacity exceeded[/]")
console.print()
console.print()