From: Eric S. Raymond Date: Thu, 3 Aug 2017 14:49:22 +0000 (-0400) Subject: Cope with YAML idiosyncracy at unquoted "YES". X-Git-Tag: 1.4~14 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=19662647151988d84cc1caa3e6d4d60d69467f63;p=open-adventure.git Cope with YAML idiosyncracy at unquoted "YES". --- 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. #