Enno Rehling
557c624200
contant name conflict resolved
2018-10-26 16:08:55 +02:00
Enno Rehling
a373807189
move attrib and event modules to kernel
2018-09-29 11:37:17 +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
5de2a9e2ae
fix ec_flags parsing (irongolem, etc)
2018-05-10 21:05:51 +02:00
Enno Rehling
907348adfc
merge race xml changes (teach, migrants, floating point)
2018-05-09 22:21:50 +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
8c7b890f3e
set the default unarmed modifiers for races.
2018-05-09 20:56:38 +02:00
Enno Rehling
837ab325f9
XML simplificatio: unified system for masking races on modifiers.
2018-04-29 13:46:17 +02:00
Enno Rehling
ac786e034c
extract rc_mask, add it to exparse code.
2018-04-29 13:16:07 +02:00
Enno Rehling
4181e23d15
FAST_CONNECT is always on.
...
fix more cppcheck messages.
2018-02-25 18:30:20 +01:00
Enno Rehling
e233d08e8f
move more reporting code to reports.c
2018-01-26 17:39:15 +01:00
Enno Rehling
a8140f1dc9
rename strlcpy->str_strlcpy, etc.
2017-12-30 19:49:21 +01:00
Enno Rehling
5b1d27542a
reduce dependence on platform.h.
...
gradually stop using MAX and MIN (mistakes were made).
2017-12-28 18:29:40 +01:00
Enno Rehling
8a638859fd
fix memory access in rc_setoption
2017-11-20 08:24:56 +01:00
Enno Rehling
89e162c12a
change resolve.h api to use int, not variant.
2017-09-19 11:42:02 +02:00
Enno Rehling
18daa9db2f
entirely remove RC_SPELL
2017-05-24 08:52:19 +02:00
Enno Rehling
635ec6d6c6
Fix a crash in TARNE <race>
...
this was complicated to test, and I had to rewrite how races and their names are registered by test_create_locale.
2017-04-17 20:11:44 +02:00
Enno Rehling
6e8e163099
make item allow/deny XML easier to read, fix code
2017-03-03 09:56:27 +01:00
Enno Rehling
5a01eae522
make item_use function crash if new and old rules do not agree
...
add a 'test' function to E3 that exercises all those items
2017-02-28 14:22:59 +01:00
Enno Rehling
3a985108a6
change all magic resistance to use fractions.
2017-02-24 20:47:47 +01:00
Enno Rehling
bfb5a9b692
set age_unit and name_unit funpointers in rc_create.
...
no more <function/> in XML races.
rename juju-zombie => juju.
2017-02-20 22:07:36 +01:00
Enno Rehling
a1dc3dc8e4
remove race.age from XML data (set in rc_create)
2017-02-20 21:19:58 +01:00
Enno Rehling
4bd295e3b2
remove the nearly unused illusion race
2017-02-20 20:42:31 +01:00
Enno Rehling
5ba3d76efb
remove race.init_familiar funpointer
2017-02-20 09:32:03 +01:00
Enno Rehling
ba1fdcce59
remove race.describe funpointer
2017-02-20 07:47:36 +01:00
Enno Rehling
4e5f1d05ce
Be very strict about C standards.
...
Compile with -std=c89 in gcc.
remove all // comments (they are nice, but unnecessary).
variables only declared at start of block.
various pedantery.
backwards compatible va_copy for pre-C99 gcc.
2017-02-18 21:15:14 +01:00
Enno Rehling
daa7554361
remove race.precombatspell
2017-02-18 18:14:18 +01:00
Enno Rehling
f48dd41538
fix a segfault in free_Races
2017-02-07 21:37:38 +01:00
Enno Rehling
d851554ebe
MSVC doesn't like to do integer->char conversions.
2017-02-06 18:16:34 +01:00
Enno Rehling
baf3275eba
valgrind: always terminate options
2017-02-06 11:52:07 +01:00
Enno Rehling
28c951bdfd
eliminate race.parameters.
...
move all special properties to race.options
2017-02-06 09:46:36 +01:00
Enno Rehling
998dcffab2
introduce an rcoption struct.
...
used for pretty rare options that have no property in the race struct.
2017-02-06 09:03:08 +01:00
Enno Rehling
492aba543b
delete at_scare
...
delete dead code (race.attribs has no at_skillmod)
delete race.attribs
2017-02-05 19:30:09 +01:00
Enno Rehling
67414f29eb
wrap ai.scare and at_scare in rc_set_param
2017-02-05 19:26:07 +01:00
Enno Rehling
f2ed2c892a
bugfix: Drachen "scare" attribut
...
muss mit MOD, nicht AND angewendet werden. rng_int() & 400 ist eine bekloppte Rechnung.
2017-02-05 18:42:06 +01:00
Enno Rehling
bd836b76e1
channel XML race.parameters through a single, tested, function
2017-02-05 16:55:51 +01:00
Enno Rehling
bdb50eab75
make migrants.formula a flag.
...
lookup in race.parameters was slow.
there is only one formula, anyhow.
2017-02-04 23:44:25 +01:00
Enno Rehling
2ecbf89f1a
clean up and test various race.parameters
2017-02-04 23:16:16 +01:00
Enno Rehling
250227cad2
store maxaura as an integer, not a float.
2017-02-03 20:06:01 +01:00
Enno Rehling
e51742da90
use rc_maxaura wrapper everywhere.
2017-02-03 19:50:48 +01:00
Enno Rehling
fd9583df3d
fix healing for elves in a forest.
...
rename _magres back to magres.
rc->parameters is not linked to config_changed invalidation.
add tests.
2017-02-03 17:43:40 +01:00
Enno Rehling
7750297dc2
express race.magres as percentage, not probability (double->int)
2017-02-03 10:57:32 +01:00
Enno Rehling
11c0330de1
make race::attack use spellref, too.
2017-01-28 19:52:28 +01:00
Enno Rehling
6d15767a18
create a spellref structure.
...
use this when referring to spells that may not (yet) exist.
use it for race::precombatspell (rare use case).
2017-01-28 19:42:20 +01:00
Enno Rehling
8b7dae6977
kill autoconf.h, replace platform.h for C99 compatibility work
2017-01-10 16:31:05 +01:00
Enno Rehling
4a802be67c
fix undead name generation.
2016-12-31 20:03:50 +01:00
Enno Rehling
09f22ba0bc
move findrace into race.c
2016-11-22 12:32:28 +01:00
Enno Rehling
e79b36bc36
introduced a memory leak i last commit
2016-10-04 10:51:37 +02:00
Enno Rehling
61f76e6722
make old_race a little bit less awful.
2016-10-04 10:34:18 +02:00
Enno Rehling
d3efc265c3
calculating income for dragons is no longer hard-coded
2016-10-04 09:14:49 +02:00