Add 'crawl' behavior to level. Use prettier options for saving level, since we're...
[koperkapel.git] / koperkapel / world.py
index f03bffa1a88e7945e429dc9319c7228096e1dc54..6a81f4c8a958fff21d419a1ee762c653e14828df 100644 (file)
@@ -25,6 +25,9 @@ class World:
             self._build_roach("roichard", fast=True),
             self._build_roach("roupert"),
         ]
+        state["serums"] = [
+            "smart", "strong", "fast",
+        ]
         state["vehicles"] = {
             "current": "walking",
             "available": ["walking"],
@@ -125,3 +128,9 @@ class WorldListProxy(WorldBaseProxy):
 
     def __getitem__(self, index):
         return _maybe_subproxy(self, index, self._state[index])
+
+    def __len__(self):
+        return len(self._state)
+
+    def __bool__(self):
+        return bool(self._state)