… | |
… | |
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, csport); /* port for new client/server */ |
|
|
168 | int ACC (RW, debug); /* Default debugging level */ |
167 | int ACC (RW, debug); /* Default debugging level */ |
169 | uint8 dumpvalues; /* Set to dump various values/tables */ |
|
|
170 | const char *dumparg; /* additional argument for some dump functions */ |
|
|
171 | uint8 daemonmode; /* If true, detach and become daemon */ |
|
|
172 | int argc; /* parameters that were passed to the program */ |
168 | int argc; /* parameters that were passed to the program */ |
173 | char **argv; /* Only used by xio.c, so will go away at some time */ |
169 | char **argv; /* Only used by xio.c, so will go away at some time */ |
174 | const char *ACC (RO, confdir); /* configuration files */ |
170 | const char *ACC (RO, confdir); /* configuration files */ |
175 | const char *ACC (RO, datadir); /* read only data files */ |
171 | const char *ACC (RO, datadir); /* read only data files */ |
176 | const char *ACC (RO, localdir); /* read/write data files */ |
172 | const char *ACC (RO, localdir); /* read/write data files */ |
177 | const char *ACC (RO, playerdir); /* Where the player files are */ |
173 | const char *ACC (RO, playerdir); /* Where the player files are */ |
178 | const char *ACC (RO, mapdir); /* Where the map files are */ |
174 | const char *ACC (RO, mapdir); /* Where the map files are */ |
179 | const char *ACC (RO, archetypes); /* name of the archetypes file - libdir is prepended */ |
175 | const char *ACC (RO, archetypes); /* name of the archetypes file - libdir is prepended */ |
180 | const char *ACC (RO, regions); /* name of the regions file - libdir is prepended */ |
|
|
181 | const char *ACC (RO, treasures); /* location of the treasures file. */ |
176 | const char *ACC (RO, treasures); /* location of the treasures file. */ |
182 | const char *ACC (RO, uniquedir); /* directory for the unique items */ |
177 | const char *ACC (RO, uniquedir); /* directory for the unique items */ |
183 | const char *templatedir; /* directory for the template map */ |
178 | const char *templatedir; /* directory for the template map */ |
184 | const char *ACC (RO, tmpdir); /* Directory to use for temporary files */ |
179 | const char *ACC (RO, tmpdir); /* Directory to use for temporary files */ |
185 | sint16 ACC (RW, pk_luck_penalty); /* Amount by which player luck is reduced if they PK */ |
180 | sint16 ACC (RW, pk_luck_penalty); /* Amount by which player luck is reduced if they PK */ |
… | |
… | |
194 | uint8 ACC (RW, resurrection); /* ressurection possible w/ permadeth on */ |
189 | uint8 ACC (RW, resurrection); /* ressurection possible w/ permadeth on */ |
195 | uint8 ACC (RW, search_items); /* search_items command */ |
190 | uint8 ACC (RW, search_items); /* search_items command */ |
196 | uint8 ACC (RW, spell_encumbrance); /* encumbrance effects spells */ |
191 | uint8 ACC (RW, spell_encumbrance); /* encumbrance effects spells */ |
197 | uint8 ACC (RW, spell_failure_effects); /* nasty backlash to spell failures */ |
192 | uint8 ACC (RW, spell_failure_effects); /* nasty backlash to spell failures */ |
198 | uint16 ACC (RW, set_friendly_fire); /* Percent of damage done by peaceful player vs player damage */ |
193 | uint16 ACC (RW, set_friendly_fire); /* Percent of damage done by peaceful player vs player damage */ |
199 | uint8 dummy_001; |
|
|
200 | uint8 dummy_002; |
|
|
201 | uint8 dummy_000; |
|
|
202 | uint8 ACC (RW, spellpoint_level_depend); /* spell costs go up with level */ |
194 | uint8 ACC (RW, spellpoint_level_depend); /* spell costs go up with level */ |
203 | |
195 | |
204 | int ACC (RW, max_level); /* This is read out of exp_table */ |
196 | int ACC (RW, max_level); /* This is read out of exp_table */ |
205 | float ACC (RW, item_power_factor); /* See note in setings file */ |
197 | float ACC (RW, item_power_factor); /* See note in setings file */ |
206 | |
198 | |