Enno Rehling
a7fbe4901b
eliminate old_race. make the catdragon act like a dragon.
2016-09-19 18:42:14 +02:00
Enno Rehling
0124bafdc4
delete dead code
2016-09-11 16:44:35 +02:00
Enno Rehling
86ef225ccb
add some more local caching.
2016-09-11 12:48:00 +02:00
Enno Rehling
d0c1b2daa4
that's all folks. no more static curse_type caches.
2016-08-29 20:36:26 +01:00
Enno Rehling
b43ac6ab27
remove static initialization code
2016-08-29 19:52:43 +01:00
Enno Rehling
2c5063095d
fixed: tests that try to create duplicate spells do not spam stderr.
2016-08-29 14:49:31 +01:00
Enno Rehling
fd273848ae
add an assert_alloc macro for allocations that cannot fail.
2016-08-29 09:26:49 +01:00
Enno Rehling
1f3413a9b4
annotations
2016-08-29 08:55:59 +01:00
Enno Rehling
0d609f2115
test magicwalls and strongwalls effects on buildings.
2016-08-29 08:53:09 +01:00
Enno Rehling
194f96c50f
eliminate some possible null-pointer exceptions
2016-08-28 21:03:23 +01:00
Enno Rehling
238a0e22f2
Merge branch 'test-alliance' of https://github.com/ennorehling/eressea into ennorehling-test-alliance
...
Conflicts:
src/util/CMakeLists.txt
2016-08-08 08:46:09 +02:00
Enno Rehling
40dbe2b0cb
delete old healing effects on read
...
remove obsolete effect-handling from battle.c
2016-06-17 21:49:31 +02:00
Steffen Mecke
e6907f570e
use up old potion effects
2016-06-13 09:25:08 +02:00
Steffen Mecke
afdd20c4dd
healing potion works once per battle with 100%
2016-06-12 23:23:22 +02:00
Steffen Mecke
61d93b7931
fix two bugs concerning horse bonus
...
switched E3 horse damage and attack bonuses
horses help fleeing if when riding is 0
2016-06-12 23:16:06 +02:00
Enno Rehling
11ae7dd55e
add a test for default_order, so I can change it.
2016-04-09 18:49:25 +02:00
Enno Rehling
e6f3dc8b85
Merge branch 'master' into develop
...
Conflicts:
scripts/run-turn.lua
src/buildno.h
src/kernel/group.c
src/kernel/save.c
src/kernel/save.test.c
src/kernel/version.h
src/util/password.c
src/util/password.test.c
tests/run-turn.sh
2016-02-23 10:47:33 +01:00
Enno Rehling
29c9e719da
eliminate plane.watchers feature
...
. we don't use them anywhere
. they have no tests
. they crash readgame when watchers have died
2016-02-18 08:48:54 +01:00
Enno Rehling
8a3bb35987
eliminate global log_flags, revert the mode arguments for fopen.
...
turns out that text is default, and windows hates it if I open a binary file without 'b'
standardize on using join_path to create filenames
(use backslash on windows, even though fopen doesn't seem to care).
2016-02-05 23:10:05 +01:00
Enno Rehling
1075b7ce17
Merge branch 'master' into develop
2015-12-06 18:39:54 +01:00
Enno Rehling
d04d8e782e
https://bugs.eressea.de/view.php?id=2173
...
rewrite the rules for magical damage reduction
2015-12-06 18:34:31 +01:00
Steffen Mecke
864c875316
fix typo: fiery breath was icy
2015-12-05 22:27:03 +01:00
Enno Rehling
1d57bf527d
Merge branch 'master' into develop
...
Conflicts:
src/battle.test.c
src/buildno.h
2015-12-05 17:27:04 +01:00
Enno Rehling
62ee1468b8
https://bugs.eressea.de/view.php?id=2166
...
* fix magic resistance calculation in calculate_armor.
* add related tests.
* refactor BF_CANATTACK -> BF_NO_ATTACK because it is easier.
2015-12-05 17:17:21 +01:00
Enno Rehling
64b84481b2
refactoring: move parsing and allies code out of config.c
2015-11-24 18:52:09 +01:00
Enno Rehling
0a47f0e398
eliminate SkillCap feature, it was stupid and not used by any game, ever
2015-11-23 20:58:51 +01:00
Enno Rehling
48c75466b6
kill static caches for floating-point variables
2015-11-22 17:32:35 +01:00
Enno Rehling
3bd458b5e8
optimization: read configuration once before all battles, not before or during each individual one.
2015-11-22 15:29:43 +01:00
Enno Rehling
7bbf11c6b6
eliminate more static cached configuration values
2015-11-22 15:14:50 +01:00
Enno Rehling
a4cb5e2906
replace all get_param_* for global.parameters with config_get_*
2015-11-22 10:44:46 +01:00
Enno Rehling
7dae5aa035
eliminate silly caching logic from natural armor calculation
2015-11-21 19:02:14 +01:00
Enno Rehling
26b6ae4e30
github issue #374
...
stick some assertions in natural_armor
refactor it for readability
eliminate a static memory leak
reset num_races to zero at end of test
2015-11-07 18:21:47 +01:00
Enno Rehling
c090f8e1f4
CID 22441 Unchecked return value from library
2015-11-04 12:03:26 +01:00
Enno Rehling
d6cd1feb48
CID 22456: 'Constant' variable guards dead code
...
github issue #360
prayers sind ein feature, das nie fertig entwickelt wurde
2015-11-04 11:59:17 +01:00
Enno Rehling
978dd1400f
CID 22465 Division or modulo by zero
2015-11-04 11:57:13 +01:00
Enno Rehling
a02b5f343e
CID 22488 Dereference after null check
2015-11-04 11:55:04 +01:00
Enno Rehling
154c2076a2
fixing bug 2149: projectile armor shall only protect against projectiles
...
https://bugs.eressea.de/view.php?id=2149
2015-11-03 19:12:40 +01:00
Enno Rehling
f959f43f1e
extensive tests for armor calculation
2015-11-03 18:59:09 +01:00
Enno Rehling
15ff621cbb
refactor: extract damage calculation from terminate
...
start writing tests (WIP)
2015-11-03 14:22:50 +01:00
Enno Rehling
4052f52472
Merge pull request #345 from TurnerSE/bug/#2145
...
Bug/#2145
2015-11-03 13:04:28 +01:00
Philipp Dreher
5178bbd674
moved application of armor-penetration
...
halfed armor now includes the effect of natural armor, but not the
effect of magic armor
2015-11-03 00:05:55 +01:00
Philipp Dreher
b6443e40ba
reanimated dead code
2015-11-01 17:14:51 +01:00
Enno Rehling
be0563c1f0
CID 22560: Copy into fixed size buffer (STRING_OVERFLOW)
2015-10-30 11:43:45 +01:00
Enno Rehling
0a67d53264
CID 26256: (NULL_RETURNS)
2015-10-29 16:41:53 +01:00
Enno Rehling
f2b0ba1ec6
eliminate find_spell warning for games where nobody is cursed, and you cannot summon igjarjuk
2015-10-27 12:40:03 +01:00
Enno Rehling
3eead446d0
reduce cron log spam
2015-09-26 22:42:22 +02:00
Enno Rehling
5f7b9129bc
Merge branch 'master' into develop
...
Conflicts:
tests/runtests.bat
2015-09-12 22:47:33 +02:00
Enno Rehling
a027139057
remove global variable verbosity
in favor of static in main.c (use log_* functions everywhere)
2015-09-12 20:58:09 +02:00
Enno Rehling
9bdc811582
produceexp uses a json-configurable constant
...
make get_param_flt return a double, floats are for wimps.
2015-09-12 16:38:51 +02:00
Enno Rehling
cf08cdf3fb
configuration type-fixes: int to bool where appropriate (possibly incomplete)
...
rename some rules to make it more obvious that they are flags or other integer values.
2015-09-11 10:04:08 +02:00