From 19662647151988d84cc1caa3e6d4d60d69467f63 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 3 Aug 2017 10:49:22 -0400 Subject: [PATCH] Cope with YAML idiosyncracy at unquoted "YES". --- adventure.yaml | 2 +- make_dungeon.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/adventure.yaml b/adventure.yaml index 625e18d..175635a 100644 --- a/adventure.yaml +++ b/adventure.yaml @@ -3997,7 +3997,7 @@ actions: !!omap message: 'Wizards are not to be disturbed by such as you.' words: ['wizar'] noaction: true -- YES: +- "YES": message: 'Guess again.' words: ['yes'] noaction: true diff --git a/make_dungeon.py b/make_dungeon.py index 6ac5ba1..454a27a 100755 --- a/make_dungeon.py +++ b/make_dungeon.py @@ -317,7 +317,7 @@ def buildtravel(locs, objs): # THIS CODE IS WAAAY MORE COMPLEX THAN IT NEEDS TO BE. It's the # result of a massive refactoring exercise that concentrated all # the old nastiness in one spot. It hasn't been finally simplified - # because there's no need to do it until one of the asserions + # because there's no need to do it until one of the assertions # fails. Hint: if you try cleaning this up, the acceptance test is # simple - the output dungeon.c must not change. # -- 2.31.1