(ichr, pchr, dchr, intrchr): Move initializer to new builtin config
files item.config, product.config, sect.config, infra.config. (empfile): Declare the new config files. Reorder table entries so that read_builtin_tables() reads the config files in the right order. (bigcity_dchr, opt_BIG_CITY, init_dchr): Remove. Deities can edit sect.config instead.
This commit is contained in:
parent
a835a4b4d3
commit
3aea20e1de
13 changed files with 248 additions and 148 deletions
|
@ -49,7 +49,12 @@ read_builtin_tables(void)
|
|||
struct empfile *ep;
|
||||
FILE *fp;
|
||||
int res;
|
||||
|
||||
|
||||
/*
|
||||
* Need to read config files for tables referenced through
|
||||
* ep->cadef[].ca_table before those for ep. empfile[] is ordered
|
||||
* that way.
|
||||
*/
|
||||
for (ep = empfile; ep->name; ep++) {
|
||||
if (!EF_IS_GAME_STATE(ep->uid) && ep->file) {
|
||||
if ((fp = fopen(ep->file, "r")) == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue