One vehicle at a time.
[koperkapel.git] / koperkapel / world.py
index f03bffa1a88e7945e429dc9319c7228096e1dc54..d13b07c10ea5c8e3c81289c0ad33792639136e13 100644 (file)
@@ -25,9 +25,11 @@ class World:
             self._build_roach("roichard", fast=True),
             self._build_roach("roupert"),
         ]
+        state["serums"] = [
+            "smart", "strong", "fast",
+        ]
         state["vehicles"] = {
             "current": "walking",
-            "available": ["walking"],
         }
         state["level"] = {
             "name": "level1",
@@ -125,3 +127,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)