Enno Rehling
75000f2663
reduce struct person by 12 bytes on a 32-bit arch.
2019-11-17 19:55:41 +01:00
Enno Rehling
d56eee9687
BUG 2504: skeletons can learn.
...
There was a mixup between the AI feature and the race capability, so I cleared up the code a little bit.
It's annoying that these flags are in the same int.
2019-02-16 20:14:34 +01:00
Enno Rehling
7ea64be314
code analysis scan.
...
add checks for malloc results.
reduce stack size.
2018-12-15 19:38:40 +01:00
Enno Rehling
089be4bca8
cppcheck style warnings: reduce variable scope
2018-12-09 03:42:57 +01:00
Enno Rehling
876113d991
fix multiple coverity defects in parsers.
2018-09-03 20:43:17 +02:00
Enno Rehling
e9bded4a87
BUG 2469 wrong default quantity for construction reqs
2018-07-31 10:13:00 +02:00
Enno Rehling
34d0b56c68
BUG 2448: Default-Attacken respektieren!
2018-06-11 21:36:59 +02:00
Enno Rehling
ade7b2ef43
BUG 2446: trade prices not getting read from XML.
2018-06-10 09:58:26 +02:00
Enno Rehling
95c5c86303
Bug 2444: set default scores
2018-05-24 16:40:50 +02:00
Enno Rehling
c11a020846
remove the text from messages.xml
2018-05-18 21:24:08 +02:00
Enno Rehling
6b0f75339f
message parsing from exparse is working, but allocates too much.
2018-05-18 20:42:22 +02:00
Enno Rehling
f8b8a5284c
begin expat message parsing
2018-05-18 18:50:13 +02:00
Enno Rehling
9e16ebc01a
all kinds of race flag breakage repaired.
...
but now, humans suddenly can't build a ship in E2?
2018-05-10 22:00:23 +02:00
Enno Rehling
85cf8da383
rename canteach/canlearn to teach/learn
...
race/function is never used (and there is no namedragon function).
2018-05-10 20:37:37 +02:00
Enno Rehling
48a4de0768
parse race/attack data
2018-05-10 07:01:46 +02:00
Enno Rehling
c05a65b881
expat parses (most of) races.
...
fix canteach flag in XML.
2018-05-09 22:16:30 +02:00
Enno Rehling
b197bb395d
parse spell components.
2018-05-08 23:06:33 +02:00
Enno Rehling
adbf1098b9
we fail tests when not reading spell components.
2018-05-06 14:02:44 +02:00
Enno Rehling
a44085de7a
spell flags, rearranged
2018-05-06 13:59:00 +02:00
Enno Rehling
dc3918f4a6
read spellbook (expat)
2018-05-05 07:48:38 +02:00
Enno Rehling
3e2aa5b1a8
start ingesting spellbooks.
2018-05-05 06:05:50 +02:00
Enno Rehling
85509cdf65
fix some bugs in reading weapons.
2018-05-04 18:41:59 +02:00
Enno Rehling
82ba0e62d4
fix reading weapon damage.
2018-05-04 17:57:10 +02:00
Enno Rehling
704148e4bd
more object types I haven't handled yet.
2018-05-03 23:04:32 +02:00
Enno Rehling
cb27895b81
parsing ships, done!
2018-05-03 22:27:28 +02:00
Enno Rehling
6d9ecd1879
finish loading buildings with expat.
2018-05-02 21:37:57 +02:00
Enno Rehling
59f74d0a98
parse building stages, too.
2018-05-01 20:58:30 +02:00
Enno Rehling
7128e1fb5c
extract modifier parsing so it can be used for buildings.
2018-05-01 20:05:46 +02:00
Enno Rehling
e5d3d77c06
begin parsing buildings.
2018-05-01 18:52:48 +02:00
Enno Rehling
a8f6f1a40c
there is no require element for weapons. oops.
2018-04-29 20:23:41 +02:00
Enno Rehling
2579bf71b5
fix test_troll_quarrying_bonus
2018-04-29 19:33:39 +02:00
Enno Rehling
12416e8b0d
fix reading skill modifiers.
2018-04-29 18:44:17 +02:00
Enno Rehling
177e0159c4
init construction defaults.
2018-04-29 18:23:23 +02:00
Enno Rehling
ec9038a5ea
fix copy/paste errors, remove armor element handlers.
2018-04-29 17:27:12 +02:00
Enno Rehling
10884c825e
fix compile, invalid use of rc_mask.
2018-04-29 16:11:35 +02:00
Enno Rehling
dc891a94b4
armor and weapon are harder to read than other items.
...
modifier handling for weapons seems ok, except races.
2018-04-29 10:32:10 +02:00
Enno Rehling
e86f3e7589
read callback fucntions for resources and weapons.
2018-04-28 21:46:01 +02:00
Enno Rehling
9dbfaea708
parse construction requirements for items.
2018-04-28 21:12:28 +02:00
Enno Rehling
9d3385de97
still cannot read potions, requirements, functions.
2018-04-28 18:49:13 +02:00
Enno Rehling
e4a2b6cb35
loading armor with expat.
2018-04-28 18:47:17 +02:00
Enno Rehling
16cebed013
implement weapons loading with expat.
2018-04-28 18:40:14 +02:00
Enno Rehling
ff4bae4da1
delete unused static functions.
2018-04-28 17:52:48 +02:00
Enno Rehling
03cff6d595
extract rc_mask, add it to exparse code.
2018-04-28 16:14:32 +02:00
Enno Rehling
edadf2cbab
exparse: parse (most of) the resource data.
2018-04-28 15:58:14 +02:00
Enno Rehling
c3b25328d3
don't exist with a leak, fix MSVC compilation.
2018-04-24 21:16:56 +01:00
Enno Rehling
b28cbd606d
minimal expat parsing code
2018-04-24 22:04:23 +02:00
Enno Rehling
6207211ba9
add skeleton for expat suport
2018-04-24 21:50:49 +02:00