# Enhance adventure.yaml entries with explicit properties based on Section 9
# of adventure.text and the kludgy macro definitions in advent.h.
#
# Enhance adventure.yaml entries with explicit properties based on Section 9
# of adventure.text and the kludgy macro definitions in advent.h.
#
# This script is meant to be gotten right, used once, and then discarded.
# We'll leave a copy in the repository history for reference
#
# When in doubt, make the code dumber and the data smarter.
#
# This script is meant to be gotten right, used once, and then discarded.
# We'll leave a copy in the repository history for reference
#
# When in doubt, make the code dumber and the data smarter.
#
# define FOREST(LOC) ((LOC) >= LOC_FOREST1 && (LOC) <= LOC_FOREST22)
#
#/* The following two functions were added to fix a bug (game.clock1 decremented
# define FOREST(LOC) ((LOC) >= LOC_FOREST1 && (LOC) <= LOC_FOREST22)
#
#/* The following two functions were added to fix a bug (game.clock1 decremented
- # INDEEP(), OUTSID(), and FORCED macros in advent.h.
- # FORCED is on only if COND == 2
- if attrs == [2]:
- attrs.append(5) # FORCED
+ # INDEEP(), OUTSID(), and FOREST() macros in advent.h.
# 167 is the sapphire's start location
if loc in range(1, grate+1) or name in ("FOOF2", "FOOF4") or name == sapphireloc:
# 167 is the sapphire's start location
if loc in range(1, grate+1) or name in ("FOOF2", "FOOF4") or name == sapphireloc:
return " conditions: %s\n" % (names,)
if __name__ == "__main__":
return " conditions: %s\n" % (names,)
if __name__ == "__main__":