home · contact · privacy
Cache player object, so some player data is available even during turn update.
[plomrogue2] / plomrogue / things.py
index 09cf7f0b8bac496e17c2e980494afd369ce09dcb..9bf03b2f0d881364c56a32999d6a16c8fe1b13c4 100644 (file)
@@ -7,6 +7,7 @@ import random
 
 class ThingBase:
     type_ = '?'
+    carrying = False
 
     def __init__(self, game, id_=0, position=(YX(0, 0), YX(0, 0))):
         self.game = game
@@ -24,7 +25,6 @@ class Thing(ThingBase):
     protection = '.'
     commandable = False
     carried = False
-    carrying = False
 
     def __init__(self, *args, **kwargs):
         super().__init__(*args, **kwargs)