You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prevent overwriting quest's description and game's objective. #239
At the moment, manually providing the description of a quest doesn't work as intended. It gets overwritten by the text generation process when building/compiling the game. The same thing is happening with the game's objective.
Code to reproduce the error:
importtextworldM=textworld.GameMaker()
r1=M.new_room()
M.set_player(r1)
key=M.new(type="k", name="key", desc="This is a skeleton key.")
r1.add(key)
quest=M.set_quest_from_commands(["take key"])
quest.desc="Find a valuable object."game=M.build()
assertkey.infos.desc=="This is a skeleton key."assertquest.desc=="Find a valuable object."
Activity
Fix game.objective being overwritten by change_grammar() when quests …