projects
/
koperkapel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up inventory displaying.
[koperkapel.git]
/
koperkapel
/
world.py
diff --git
a/koperkapel/world.py
b/koperkapel/world.py
index f03bffa1a88e7945e429dc9319c7228096e1dc54..6a81f4c8a958fff21d419a1ee762c653e14828df 100644
(file)
--- a/
koperkapel/world.py
+++ b/
koperkapel/world.py
@@
-25,6
+25,9
@@
class World:
self._build_roach("roichard", fast=True),
self._build_roach("roupert"),
]
self._build_roach("roichard", fast=True),
self._build_roach("roupert"),
]
+ state["serums"] = [
+ "smart", "strong", "fast",
+ ]
state["vehicles"] = {
"current": "walking",
"available": ["walking"],
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 __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)