… | |
… | |
162 | #include "sockproto.h" |
162 | #include "sockproto.h" |
163 | |
163 | |
164 | INTERFACE_CLASS (Settings) |
164 | INTERFACE_CLASS (Settings) |
165 | struct Settings { |
165 | struct Settings { |
166 | const char *ACC (RO, logfilename); /* logfile to use */ |
166 | const char *ACC (RO, logfilename); /* logfile to use */ |
167 | int ACC (RW, debug); /* Default debugging level */ |
167 | int ACC (RW, debug); /* Default debugging level */ |
168 | int argc; /* parameters that were passed to the program */ |
168 | int argc; |
169 | char **argv; /* Only used by xio.c, so will go away at some time */ |
169 | char **argv; |
170 | const char *ACC (RO, confdir); /* configuration files */ |
170 | const char *ACC (RO, confdir); /* configuration files */ |
171 | const char *ACC (RO, datadir); /* read only data files */ |
171 | const char *ACC (RO, datadir); /* read only data files */ |
172 | const char *ACC (RO, localdir); /* read/write data files */ |
172 | const char *ACC (RO, localdir); /* read/write data files */ |
173 | const char *ACC (RO, playerdir); /* Where the player files are */ |
173 | const char *ACC (RO, playerdir); /* Where the player files are */ |
174 | const char *ACC (RO, mapdir); /* Where the map files are */ |
174 | const char *ACC (RO, mapdir); /* Where the map files are */ |
175 | const char *ACC (RO, archetypes); /* name of the archetypes file - libdir is prepended */ |
|
|
176 | const char *ACC (RO, treasures); /* location of the treasures file. */ |
|
|
177 | const char *ACC (RO, uniquedir); /* directory for the unique items */ |
175 | const char *ACC (RO, uniquedir); /* directory for the unique items */ |
178 | const char *templatedir; /* directory for the template map */ |
|
|
179 | const char *ACC (RO, tmpdir); /* Directory to use for temporary files */ |
176 | const char *ACC (RO, tmpdir); /* Directory to use for temporary files */ |
180 | sint16 ACC (RW, pk_luck_penalty); /* Amount by which player luck is reduced if they PK */ |
177 | sint16 ACC (RW, pk_luck_penalty); /* Amount by which player luck is reduced if they PK */ |
181 | uint8 ACC (RW, stat_loss_on_death); /* If true, chars lose a random stat when they die */ |
178 | uint8 ACC (RW, stat_loss_on_death); /* If true, chars lose a random stat when they die */ |
182 | uint8 ACC (RW, permanent_exp_ratio); /* how much exp should be 'permenant' and unable to be lost*/ |
179 | uint8 ACC (RW, permanent_exp_ratio); /* how much exp should be 'permenant' and unable to be lost*/ |
183 | uint8 ACC (RW, death_penalty_ratio); /* how much exp should be lost at death */ |
180 | uint8 ACC (RW, death_penalty_ratio); /* how much exp should be lost at death */ |