config: Enlarge configuration tables that have variable size

Configuration tables product, sect-chr, ship-chr, plane-chr, land-chr,
nuke-chr have a bit of extra space deities can use for customizing
their games.  Give them more: enlarge product from 23 to 31
entries (plus one sentinel), sect-chr from 39 to 63, ship-chr from 47
to 127, plane-chr from 47 to 127, land-chr from 31 to 127, and
nuke-chr from 20 to 63.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2020-12-26 06:37:07 +01:00
parent e7583a519e
commit f57c71da92
6 changed files with 6 additions and 6 deletions

View file

@ -124,7 +124,7 @@ struct lchrstr {
#define putland(n, p) ef_write(EF_LAND, (n), (p)) #define putland(n, p) ef_write(EF_LAND, (n), (p))
#define getlandp(n) ((struct lndstr *)ef_ptr(EF_LAND, (n))) #define getlandp(n) ((struct lndstr *)ef_ptr(EF_LAND, (n)))
#define LCHR_SZ 32 #define LCHR_SZ 128
extern struct lchrstr lchr[LCHR_SZ]; extern struct lchrstr lchr[LCHR_SZ];
enum { enum {

View file

@ -82,7 +82,7 @@ struct nchrstr {
#define putnuke(n, p) ef_write(EF_NUKE, (n), (p)) #define putnuke(n, p) ef_write(EF_NUKE, (n), (p))
#define getnukep(n) ((struct nukstr *)ef_ptr(EF_NUKE, (n))) #define getnukep(n) ((struct nukstr *)ef_ptr(EF_NUKE, (n)))
#define NCHR_SZ 21 #define NCHR_SZ 64
extern struct nchrstr nchr[NCHR_SZ]; extern struct nchrstr nchr[NCHR_SZ];
/* src/lib/common/cargo.c */ /* src/lib/common/cargo.c */

View file

@ -134,7 +134,7 @@ struct plist {
#define putplane(n, p) ef_write(EF_PLANE, (n), (p)) #define putplane(n, p) ef_write(EF_PLANE, (n), (p))
#define getplanep(n) ((struct plnstr *)ef_ptr(EF_PLANE, (n))) #define getplanep(n) ((struct plnstr *)ef_ptr(EF_PLANE, (n)))
#define PLCHR_SZ 48 #define PLCHR_SZ 128
extern struct plchrstr plchr[PLCHR_SZ]; extern struct plchrstr plchr[PLCHR_SZ];
struct shiplist { struct shiplist {

View file

@ -57,7 +57,7 @@ struct pchrstr {
char *p_sname; /* short (7 char or less) name of product */ char *p_sname; /* short (7 char or less) name of product */
}; };
#define PCHR_SZ 24 #define PCHR_SZ 32
extern struct pchrstr pchr[PCHR_SZ]; extern struct pchrstr pchr[PCHR_SZ];
#endif #endif

View file

@ -165,7 +165,7 @@ struct dchrstr {
#define getsectp(x, y) ((struct sctstr *)ef_ptr(EF_SECTOR, sctoff((x), (y)))) #define getsectp(x, y) ((struct sctstr *)ef_ptr(EF_SECTOR, sctoff((x), (y))))
#define getsectid(id) ((struct sctstr *)ef_ptr(EF_SECTOR, (id))) #define getsectid(id) ((struct sctstr *)ef_ptr(EF_SECTOR, (id)))
#define DCHR_SZ 40 #define DCHR_SZ 64
extern struct dchrstr dchr[DCHR_SZ]; extern struct dchrstr dchr[DCHR_SZ];
#define IS_BIG_CITY(type) (dchr[(type)].d_pkg == UPKG) #define IS_BIG_CITY(type) (dchr[(type)].d_pkg == UPKG)

View file

@ -126,7 +126,7 @@ struct mchrstr {
#define putship(n, p) ef_write(EF_SHIP, (n), (p)) #define putship(n, p) ef_write(EF_SHIP, (n), (p))
#define getshipp(n) ((struct shpstr *)ef_ptr(EF_SHIP, (n))) #define getshipp(n) ((struct shpstr *)ef_ptr(EF_SHIP, (n)))
#define MCHR_SZ 48 #define MCHR_SZ 128
extern struct mchrstr mchr[MCHR_SZ]; extern struct mchrstr mchr[MCHR_SZ];
enum { enum {