c596577d32
(mchrstr, plchrstr, lchrstr, nchrstr): New member m_type, pl_type,
...
l_type, n_type.
(mchr_ca, plchr_ca, lchr_ca, nchr_ca): New selector type. Update
builtin config files.
2006-02-19 09:47:26 +00:00
dae17432ae
(lndchr): Rename member l_mxland to l_nland for consistency with
...
similar unit characteristics.
2006-02-19 07:32:03 +00:00
a0bd72feed
Collect all symbol tables in new symbol.c. No functional changes.
2006-02-18 14:55:29 +00:00
58f67c8e19
Change xdump nat to show only own country, and xdump cou to show to
...
deities what xdump nat used to show:
(cou_ca): Remove initializer.
(ef_init_srv): Initialize cou_ca[] from nat_ca[].
(xdvisible): Change case EF_NATION to return true only for owner
even for deities.
2006-02-17 18:38:50 +00:00
3f96090ac5
(lost_ca, trade_ca): Provide proper ca_table for selector type.
2006-02-17 18:04:07 +00:00
69c23f554e
(sect_ca): Make selectors xloc, yloc NSC_CONST.
...
(realm_ca): Make selectors cnum, realm NSC_CONST.
2006-02-13 20:48:00 +00:00
Ron Koenderink
22c7319aab
(sect_ca[]): Remove NSC_EXTRA for sct_coastal
...
so the field is dumped.
2006-02-12 20:40:18 +00:00
94fb350e40
Change dchrstr member d_mnem to char.
2006-02-12 13:56:12 +00:00
94ef2f4275
Change ichrstr member i_mnen to char.
2006-02-11 07:41:34 +00:00
fa63f87bc0
(cou_ca, symbol_ca, mdchr_ca): Make all selectors NSC_CONST.
...
(empfile_ca): Make selector name NSC_CONST.
2006-02-10 19:12:10 +00:00
8c8bf88730
(cou_ca): Fix ca_type for selector stat.
2006-02-10 19:00:38 +00:00
Ron Koenderink
524fe1aa50
(lchr_ca[]): Change the name for l_rnd from "rad" to "rmax".
...
This removes a conflict between rad items and reaction radius.
Now the name matches the equivalent name in land_ca[].
2006-02-09 13:31:05 +00:00
25c9f2c66f
(nation_status): Lacked sentinel.
2006-02-06 20:12:42 +00:00
7261d6a3e0
(level): Add value -1.
2006-02-06 07:41:55 +00:00
3879ab9643
(meta_type): Fix NSC_TYPE entry to match specification.
2006-02-05 20:20:46 +00:00
2258ec7703
Document uid selector convention.
2006-02-05 19:30:20 +00:00
8add5fbb86
(realm_ca): Remove selector uid. It's not useful for players, and not
...
needed for xdump, because it doesn't occur as ca_table.
(lost_ca): Remove selector uid. Reasons as for realm_ca. The value
is incorrect in unused records, which is semantically tolerable, but
needlessly complicated to check in ef_verify.c.
(news_ca): Remove selector uid. Reasons as for realm_ca, plus the
value is incorrect, because nws_uid is not used.
2006-02-05 19:01:41 +00:00
Ron Koenderink
7b9fdf8b95
(show_news, news, empfile[], page_headings[], page_headings_symbols[]):
...
Change page_headings[] to struct symbol and removed
page_headings_symbols[].
2006-01-30 22:26:48 +00:00
Ron Koenderink
f438b74e85
(EF_PAGE_HEADINGS, page_headings_symbols, M_NOTUSED): New.
...
(empfile): Add it.
(rpt_ca): Use it.
2006-01-29 18:40:11 +00:00
Ron Koenderink
74e4e2810a
(fuel, load, shp_check_nav, retreat_ship1, shp_nav_one_sector)
...
(shp_check_nav, sail_nav_fleet, bigcity_dchr[], sector_navigation[])
(d_navigation): Add a NEW d_navigation enum NAV_CANAL to
indicate that a sector has canal capability. Add canal determination
logic to shp_check_nav(). Update sector_navigation[] with new
canal navigation enum. Use shp_check_nav() to determine the
sector can be navigated.
2006-01-21 20:56:50 +00:00
82df8cfe0c
(pchr_ca): Provide proper ca_table for selector nlndx.
2006-01-21 20:11:36 +00:00
4515b84c59
COPYING duplicates information from README. Remove. Move GPL from
...
LICENSE to COPYING, because that's where it usually is. Update all
the references to these files.
2006-01-21 19:48:41 +00:00
Ron Koenderink
100b39d71f
(d_navigation): New.
...
(dchrstr): Use it.
2006-01-17 21:58:25 +00:00
Ron Koenderink
4f20f3dd9c
(EF_SECTOR_NAVIGATION, sector_navigation): New.
...
(empfile): Add it.
(dchr_ca): Use it.
(NAV_NONE): New.
2006-01-17 21:42:02 +00:00
Ron Koenderink
18902e45d0
(dchrstr): Rename member d_flg to d_nav. Users changed.
2006-01-17 21:17:19 +00:00
9eba732cc3
(EF_COUNTRY, cou_ca): New.
...
(empfile): Add it.
(xdvisible): Deal with it.
(ef_open_srv, ef_close_srv): Set it up.
(ef_init_view, ef_fina_view): New.
2006-01-14 16:28:33 +00:00
48c6a88768
Fix the previous revision.
2006-01-14 16:11:22 +00:00
Ron Koenderink
45adbdb00e
Move realms from the nation file into a new realms file:
...
(boundstr, realmstr): Rename, new members ef_type, r_cnum, r_uid,
r_realm, r_timestamp.
(natstr): Remove member nat_b[].
(EF_REALM, realm_ca): New.
(empfile): Add it.
(ef_open_srv, ef_close_srv, main): Deal with new file.
(getrealm, putrealm): New.
(add, new, real, list_realm, sarg_getrange): Use them.
2006-01-13 13:18:56 +00:00
Ron Koenderink
e28c14f023
(L_XLIGHT, lchr[], land_chr_flags[], take_plane_off_land,
...
put_plane_on_land, load_plane_land, can_fly):
Remove L_XLIGHT flag and replace with checks of lnd_maxlight.
Closes #758459 .
2006-01-08 19:12:04 +00:00
b94b3b1b7f
(mchrstr, lchrstr): Change element types of m_item[] and l_item[] to
...
short, to match shp_item and lnd_item.
(mchr_ca, lchr_ca): Replace selector item by selectors for the items.
lchr_ca's item selector was incorrect and worked only by accident.
2006-01-05 16:49:52 +00:00
3e400c018c
Update copyright notice.
2006-01-05 13:36:57 +00:00
a5c87a2b54
(EF_NATION_STATUS, nation_status): New.
...
(empfile): Add it.
(nat_ca): Use it.
2006-01-04 23:15:47 +00:00
6e6cd67bd8
Fix the previous revision.
2006-01-04 23:11:44 +00:00
8b16c31223
Change nation status from bits to a simple enum:
...
(nat_status, STAT_UNUSED, STAT_VIS, STAT_ACTIVE): New.
(STAT_NEW, STAT_SANCT, STAT_GOD): Change into nat_status members.
(STAT_INUSE, STAT_NORM): Remove.
(natstr): Use new nat_status for nat_stat.
New value Old value
STAT_UNUSED 0
STAT_NEW STAT_INUSE | STAT_NEW
STAT_VIS STAT_INUSE
STAT_SANCT STAT_INUSE | STAT_SANCT
STAT_ACTIVE STAT_INUSE | STAT_NORM
STAT_GOD STAT_INUSE | STAT_NORM | STAT_GOD
Users changed.
2006-01-04 22:49:42 +00:00
3db4e34ba4
(natstr): Members nat_xstart, nat_ystart are used write-only. Remove.
...
Users changed.
2005-12-31 10:50:24 +00:00
028a1bf3d8
(EF_RESOURCES, resources): New.
...
(empfile): Add it.
(pchr_ca): Use it.
2005-12-31 10:29:32 +00:00
747fb90407
Fix rev. 1.65.
2005-12-31 10:20:00 +00:00
027e9b5a34
(nat_ca): New selector dayno.
2005-12-31 10:03:06 +00:00
f7898f41e0
(ichr_ca): New selector melt_denom. Should have been done together
...
with item.h rev. 1.15.
(nuke_ca): Fix ca_table for selector types. Broken in rev. 1.50.
2005-12-30 17:32:55 +00:00
498d9fbfaa
(M_SPY): Unused, remove.
2005-12-30 17:22:03 +00:00
3aebb68ee7
Include config.h.
2005-12-27 18:04:19 +00:00
Ron Koenderink
9217e75761
(shp_nav_one_sector, mchr[], ship_chr_flags[], Ship-types, Sector-types):
...
Add M_CANAL flag to indicate which ships can navigate a canal
in a big city. Remove the hard code values for canal from
shp_nav_one_sector() for which ships can navigate a canal.
Set M_CANAL flag in ship_chr_flags[] to match the hard
coding in shp_nav_one_sector().
Update Ship-types.t with new canal flag.
Update Sector-types.t to indicate that cities have canals.
2005-12-18 15:16:52 +00:00
Ron Koenderink
0511565c11
(ship_chr_flags[]): Remove internal flags (M_XLIGHT, M_NCHOPPERS)
...
from ship_chr_flags[] so they do not appear in the show output.
(missions[]): Add MI_NONE to missions[] table.
2005-11-30 18:57:53 +00:00
Ron Koenderink
e47465570a
(mchr[],m_flags,m_nland): Remove M_UNIT from m_flags in mchr[].
...
It is not used.
2005-11-22 23:19:59 +00:00
Ron Koenderink
f17cedfccd
(ship_chr_flags): Add internal flags (M_XLIGHT, M_CHOPPER, M_UNIT)
...
to ship_chr_flags[].
2005-11-20 22:15:25 +00:00
fdec6a8aae
(dchrstr, pchrstr, rptstr): New member d_uid, p_uid, r_uid.
...
(dchr, bigcity_dchr, pchr, rpt): Initialize it.
(dchr_ca, pchr_ca, rpt_ca): New selector uid for it.
2005-11-19 17:37:43 +00:00
Ron Koenderink
c345ab82d3
(nat_ca): Add nat_contact to nat_ca[].
2005-11-19 12:07:52 +00:00
Ron Koenderink
555de3100c
(dchr_ca, packing, empfile): Add packing symbol table.
...
(sect_ca, ship_ca, land_ca, plague_stages, empfile):
Add plague stages symbol table.
(treaty_ca, loan_ca, agreement_statuses, empfile):
Add agreement status symbol table.
Combine treatystatuses (TS_FREE, TS_SIGNED and TS_PENDING)
and loan statuses (LS_FREE, LS_SIGNED and LS_PENDING)
into a single agreement status.
(pchr_ca, level, empfile): Add packing symbol table.
2005-11-13 12:27:02 +00:00
caaee8cafa
(dchr_ca): prd indexes product table.
2005-11-12 17:32:32 +00:00
af824c3ed1
(EF_MISSION_FLAGS, EF_MISSIONS, mission_flags, missions): Rename, as
...
these are not flags.
2005-11-12 17:29:11 +00:00