X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=new%2Fplomrogue%2Fcommands.py;h=87afd605314847da0395249704f94611e73edcfe;hb=ba338f6ed46da5c34fbb7a3e9dac28338a0406a3;hp=aa3253ae8520a46b12fa63364de1a73f5bcd15ea;hpb=e530d9faf68b4057322f5cc61aa0e3b76f8db3f6;p=plomrogue2-experiments diff --git a/new/plomrogue/commands.py b/new/plomrogue/commands.py index aa3253a..87afd60 100644 --- a/new/plomrogue/commands.py +++ b/new/plomrogue/commands.py @@ -67,7 +67,9 @@ def cmd_SAVE(game): task = thing.task if task is not None: task_args = task.get_args_string() - write(f, 'SET_TASK:%s %s %s %s' % (task.name, thing.id_, + task_name = [k for k in game.tasks.keys() + if game.tasks[k] == task.__class__][0] + write(f, 'SET_TASK:%s %s %s %s' % (task_name, thing.id_, task.todo, task_args)) write(f, 'PLAYER_ID %s' % game.world.player_id) cmd_SAVE.dont_save = True