(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
|
@ -145,7 +145,11 @@ struct empfile empfile[] = {
|
|||
UNMAPPED_CACHE(struct realmstr, EFF_OWNER)},
|
||||
|
||||
/* Static game data (configuration) */
|
||||
{EF_SECTOR_CHR, "sect-chr", NULL, dchr_ca,
|
||||
{EF_ITEM, "item", "item.config", ichr_ca,
|
||||
ARRAY_TABLE(ichr, EFF_CFG)},
|
||||
{EF_PRODUCT, "product", "product.config", pchr_ca,
|
||||
ARRAY_TABLE(pchr, EFF_CFG)},
|
||||
{EF_SECTOR_CHR, "sect-chr", "sect.config", dchr_ca,
|
||||
ARRAY_TABLE(dchr, EFF_CFG)},
|
||||
{EF_SHIP_CHR, "ship-chr", "ship.config", mchr_ca,
|
||||
ARRAY_CACHE(mchr, EFF_CFG)},
|
||||
|
@ -157,12 +161,8 @@ struct empfile empfile[] = {
|
|||
ARRAY_CACHE(nchr, EFF_CFG)},
|
||||
{EF_NEWS_CHR, "news-chr", NULL, rpt_ca,
|
||||
ARRAY_TABLE(rpt, EFF_CFG)},
|
||||
{EF_ITEM, "item", NULL, ichr_ca,
|
||||
ARRAY_TABLE(ichr, EFF_CFG)},
|
||||
{EF_INFRASTRUCTURE, "infrastructure", NULL, intrchr_ca,
|
||||
{EF_INFRASTRUCTURE, "infrastructure", "infra.config", intrchr_ca,
|
||||
ARRAY_TABLE(intrchr, EFF_CFG)},
|
||||
{EF_PRODUCT, "product", NULL, pchr_ca,
|
||||
ARRAY_TABLE(pchr, EFF_CFG)},
|
||||
{EF_TABLE, "table", NULL, empfile_ca,
|
||||
ARRAY_TABLE(empfile, EFF_CFG)},
|
||||
{EF_META, "meta", NULL, mdchr_ca,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue