X-Git-Url: https://plomlompom.com/repos/?p=plomrogue2-experiments;a=blobdiff_plain;f=new%2Fplomrogue%2Fgame.py;h=7275ce944ee7a7563d015b0b2adeb7c3ed6776b5;hp=ffedbfaff14200e0af6a4f2335af5b5e0f66448b;hb=358f157718342374be169e8ba4308720e15d8467;hpb=ecf3799b03f0a9098956d529f26be54f37c6534b diff --git a/new/plomrogue/game.py b/new/plomrogue/game.py index ffedbfa..7275ce9 100755 --- a/new/plomrogue/game.py +++ b/new/plomrogue/game.py @@ -175,7 +175,7 @@ class Game(GameBase): def task_prefixed(command_name, task_prefix, task_command, argtypes_prefix=None): - if command_name[:len(task_prefix)] == task_prefix: + if command_name.startswith(task_prefix): task_name = command_name[len(task_prefix):] if task_name in self.tasks: f = partial_with_attrs(task_command, task_name, self)