zones.doc
code/doc/creation.docs/zones.doc · 3.6 KB
From the archive Copper2-code.tar.gz
Download the archive « Back to the archive contents
#define ZONE_FILE_EXTN ".zon" /* New information about zones */
void append_to_zone(IDEAS *new)
{
The beginning of each zone specification now looks like this:
#zone-vnum
toproom lifespan resetmode flags /* First 3 from original definition */
/* make toproom a valid room number */
/* valid flags: ZONE_SILENT 1 */
/* ZONE_SAFE 2 */
/* ZONE_HOMETOWN 4 */
/* ZONE_NEW_RESET 8 */
/* (NEW_RESET not used) */
seasonpattern flags energyadd /* See below for available patterns */
/* and flags. Energyadd is the amount */
/* of mana automatically generated */
/* each hour - you better have a good */
/* reason to put it outside the range */
/* of 25-75 (hometowns, for instance) */
/* The next lines have four values each, for the 4 possible */
/* seasons. See below for the valid values to place here. */
/* * * * If there are less than 4 seasons, it is still * * * */
/* * * * * * necessary to fill out every space here * * * * */
wind1 wind2 wind3 wind4 /* Wind patterns for the season */
variance1 var2 var3 var4 /* 0=wind can change dir, 1=nope */
winddir1 dir3 dir3 dir4 /* 0-3 wind dir. at start of season */
precip1 precip2 precip3 precip4 /* Precipitation patterns */
temp1 temp2 temp3 temp4 /* Temperature patterns */
/* Then the normal zone list of update instructions */
/* Note that these may be expanded at some point soon */
/* These are the types of season patterns available */
/* How year is divided */
#define ONE_SEASON 1 /* <------------1------------> */
#define TWO_SEASONS_EQUAL 2 /* <-----1------><-----2-----> */
#define TWO_SEASONS_FIRST_LONG 3 /* <-------1-------><---2----> */
#define TWO_SEASONS_SECOND_LONG 4 /* <---1----><------2--------> */
#define THREE_SEASONS_EQUAL 5 /* <---1---><---2---><---3---> */
#define FOUR_SEASONS_EQUAL 6 /* <--1--><--2--><--3--><--4--> */
#define FOUR_SEASONS_EVEN_LONG 7 /* <-1-><---2---><-3-><---4---> */
#define FOUR_SEASONS_ODD_LONG 8 /* <---1---><-2-><---3---><-4-> */
/* Seasonal Wind characteristics */
#define SEASON_CALM 1
#define SEASON_BREEZY 2
#define SEASON_UNSETTLED 3
#define SEASON_WINDY 4
#define SEASON_CHINOOK 5
#define SEASON_VIOLENT 6
#define SEASON_HURRICANE 7
/* Seasonal Precipitation characteristics */
#define SEASON_NO_PRECIP_EVER 1
#define SEASON_ARID 2
#define SEASON_DRY 3
#define SEASON_LOW_PRECIP 4
#define SEASON_AVG_PRECIP 5
#define SEASON_HIGH_PRECIP 6
#define SEASON_STORMY 7
#define SEASON_TORRENT 8
#define SEASON_CONSTANT_PRECIP 9 /* Interesting if it's cold enough to snow */
/* Seasonal Temperature characteristics */
#define SEASON_FROSTBITE 1 /* Need to keep warm...*/
#define SEASON_NIPPY 2
#define SEASON_FREEZING 3
#define SEASON_COLD 4
#define SEASON_COOL 5
#define SEASON_MILD 6
#define SEASON_WARM 7
#define SEASON_HOT 8
#define SEASON_SWELTER 9
#define SEASON_HEATSTROKE 10 /* Definite HP loss for these two */
#define SEASON_BOILING 11
/* Flags */
#define NO_MOON_EVER 1
#define NO_SUN_EVER 2
#define NON_CONTROLLABLE 4
#define AFFECTS_INDOORS 8
}