diff options
| author | troido <troido@protonmail.com> | 2020-04-07 10:08:47 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-07 10:08:47 +0200 |
| commit | 8c48efc21377680d88bbbbf68b8121d24bea666d (patch) | |
| tree | 38f4860b07de7603f3647f346517222d79d30569 /asciifarmclient/display.py | |
| parent | 496b535ce7bf658aff4c1b11e4b7c657189c0844 (diff) | |
removed equipment from the client
Diffstat (limited to 'asciifarmclient/display.py')
| -rw-r--r-- | asciifarmclient/display.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/asciifarmclient/display.py b/asciifarmclient/display.py index c9da29a..b3c32d8 100644 --- a/asciifarmclient/display.py +++ b/asciifarmclient/display.py @@ -57,17 +57,14 @@ class Display: # temporary, until these have a better place self.inventory = ListSelector(self.getWidget("inventory")) self.inventory._debug_name = "inventory" - self.equipment = ListSelector(self.getWidget("equipment")) - self.equipment._debug_name = "equipment" self.ground = ListSelector(self.getWidget("ground")) self.ground._debug_name = "ground" self.switch = ListSelector(self.getWidget("switchtitles")) self.switch._debug_name = "switch" - self.switch.setItems(["inventory", "equipment", "ground"]) + self.switch.setItems(["inventory", "ground"]) self.menus = { "inventory": self.inventory, - "equipment": self.equipment, "ground": self.ground } @@ -137,12 +134,6 @@ class Display: def setInv(self, items): self.inventory.setItems([(":" if is_equipped else " ") + item for (item, is_equipped) in items]) - def setEquipment(self, slots): - self.equipment.setItems([ - slot + ": " + (item if item else "") - for slot, item in slots - ]) - def setGround(self, items): self.ground.setItems(items) |
