(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
|
@ -36,21 +36,8 @@
|
|||
#include "misc.h"
|
||||
#include "item.h"
|
||||
|
||||
struct ichrstr ichr[] = {
|
||||
/* mnem uid val sell lbs {in rg wh ur bnk} melt name */
|
||||
{'c', I_CIVIL, 1, 0, 1, {1, 10, 10, 10, 10}, 4, "civilians"},
|
||||
{'m', I_MILIT, 0, 0, 1, {1, 1, 1, 1, 1}, 20, "military"},
|
||||
{'s', I_SHELL, 5, 1, 1, {1, 1, 10, 1, 1}, 80, "shells"},
|
||||
{'g', I_GUN, 60, 1, 10, {1, 1, 10, 1, 1}, 100, "guns"},
|
||||
{'p', I_PETROL, 4, 1, 1, {1, 1, 10, 1, 1}, 50, "petrol"},
|
||||
{'i', I_IRON, 2, 1, 1, {1, 1, 10, 1, 1}, 100, "iron ore"},
|
||||
{'d', I_DUST, 20, 1, 5, {1, 1, 10, 1, 1}, 100, "dust (gold)"},
|
||||
{'b', I_BAR, 280, 1, 50, {1, 1, 5, 1, 4}, 200, "bars of gold"},
|
||||
{'f', I_FOOD, 0, 1, 1, {1, 1, 10, 1, 1}, 2, "food"},
|
||||
{'o', I_OIL, 8, 1, 1, {1, 1, 10, 1, 1}, 50, "oil"},
|
||||
{'l', I_LCM, 2, 1, 1, {1, 1, 10, 1, 1}, 100, "light products"},
|
||||
{'h', I_HCM, 4, 1, 1, {1, 1, 10, 1, 1}, 100, "heavy products"},
|
||||
{'u', I_UW, 1, 1, 2, {1, 1, 2, 1, 1}, 2, "uncompensated workers"},
|
||||
{'r', I_RAD, 150, 1, 8, {1, 1, 10, 1, 1},1000, "radioactive materials"},
|
||||
{0, I_NONE, 0, 0, 0, {0, 0, 0, 0, 0}, 0, NULL}
|
||||
};
|
||||
/*
|
||||
* Table of item types
|
||||
* Initialized on startup from item.config and deity custom config (if any).
|
||||
*/
|
||||
struct ichrstr ichr[I_MAX + 2];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue