# HG changeset patch # User Simon Cross # Date 1302120259 -7200 # Node ID 445a28f4b38e712de9eba11da0b0a841d9de91e4 # Parent 7a4e7859bc26a3eee5ca598e204e58414d37fecb Fix npc tester. diff -r 7a4e7859bc26 -r 445a28f4b38e scripts/npc-test --- a/scripts/npc-test Wed Apr 06 21:54:54 2011 +0200 +++ b/scripts/npc-test Wed Apr 06 22:04:19 2011 +0200 @@ -9,11 +9,13 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) from skaapsteker.dialogue import DSM, DsmEvent, DummyWorld +from skaapsteker.gamestate import GameState def run(npc_file): - world = DummyWorld() - dsm = DSM(npc_file, world) + game = GameState("game.json") + name = os.path.splitext(os.path.basename(npc_file))[0] + dsm = DSM(name, game.world, npc_file) print "States:" print "-------" @@ -47,4 +49,4 @@ run(args[0]) if __name__ == '__main__': - main() \ No newline at end of file + main()