home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Register game commands and tasks outside of game module.
[plomrogue2-experiments]
/
new2
/
plomrogue
/
things.py
diff --git
a/new2/plomrogue/things.py
b/new2/plomrogue/things.py
index 138a1fac7ccdcd1ba0603023f478cd7d92b1b9bb..0e4af344e5cc9bcfc6af4e0e6fb88cbd07054e96 100644
(file)
--- a/
new2/plomrogue/things.py
+++ b/
new2/plomrogue/things.py
@@
-40,7
+40,7
@@
class ThingAnimate(Thing):
def set_next_task(self, task_name, args=()):
task_class = self.game.tasks[task_name]
def set_next_task(self, task_name, args=()):
task_class = self.game.tasks[task_name]
- self.next_tasks += [task_class(self, args)]
+ self.next_tasks += [task_class(self, args)]
def get_next_task(self):
if len(self.next_tasks) > 0:
def get_next_task(self):
if len(self.next_tasks) > 0: