X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=koperkapel%2Fworld.py;h=6a81f4c8a958fff21d419a1ee762c653e14828df;hb=0f2d2e9c4d31d58d0c0cfe1eb7327ce430a61dbd;hp=f03bffa1a88e7945e429dc9319c7228096e1dc54;hpb=65d6da05d2a8526f65f5c3e1635202ae40fbf4b0;p=koperkapel.git diff --git a/koperkapel/world.py b/koperkapel/world.py index f03bffa..6a81f4c 100644 --- a/koperkapel/world.py +++ b/koperkapel/world.py @@ -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)