home · contact · privacy
Make fullness/emptiness of bottles visible via .thing_char.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 3 Dec 2020 05:31:07 +0000 (06:31 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 3 Dec 2020 05:31:07 +0000 (06:31 +0100)
plomrogue/tasks.py
plomrogue/things.py

index 423758d8f5959ec7ebec088abfa18d7800d28bc1..8fa3a178067bf4864f929638b79d5a8e4d8bb6d2 100644 (file)
@@ -148,6 +148,7 @@ class Task_INTOXICATE(Task):
 
     def do(self):
         self.thing.carrying.full = False
+        self.thing.carrying.empty()
         for c_id in self.thing.game.sessions:
             if self.thing.game.sessions[c_id]['thing_id'] == self.thing.id_:
                 self.thing.game.io.send('RANDOM_COLORS', c_id)
index 30cd2bfe104fdd2a36836b87a401f6d33cc555f2..1c99737c039390938804d467d8e9a490e2dc2a67 100644 (file)
@@ -145,6 +145,11 @@ class Thing_Bottle(Thing):
     symbol_hint = 'B'
     portable = True
     full = True
+    thing_char = '~'
+
+    def empty(self):
+        self.thing_char = '_'
+        self.full = False