# 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
#
# This script is meant to be gotten right, used once, and then discarded.
# We'll leave a copy in the repository history for reference
#
# 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
# Adod new attributes. These are computed the same way as the
# INDEEP(), OUTSID(), and FOREST() macros in advent.h.
if "FOREST" in name:
# Adod new attributes. These are computed the same way as the
# INDEEP(), OUTSID(), and FOREST() macros in advent.h.
if "FOREST" in name:
# 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__":