Enno Rehling
2ac6a6826d
some static analysis warnings (cppcheck and msvc).
2018-12-04 21:11:40 +01:00
Enno Rehling
a7b9f6dc3e
Do not use 0 to mean NULL pointers.
2018-10-14 11:49:48 +02:00
Enno Rehling
7b682c6a74
rename defence->defense (prefer US spelling).
2018-10-13 20:30:28 +02:00
Enno Rehling
92c6fb9bac
Merge branch 'develop' into bug2480
2018-10-13 20:25:13 +02:00
Enno Rehling
bc5f2ea6d1
move keyword.[hc] to util
2018-09-29 18:13:32 +02:00
Enno Rehling
d70f05f8db
BUG 2478: Fleeing units cannot move.
2018-09-23 20:01:12 +02:00
Steffen Mecke
69702df203
refactor terminate finished
2018-09-12 15:11:39 +02:00
Steffen Mecke
d981044953
refactor calculate_armor
2018-09-12 15:11:39 +02:00
Steffen Mecke
c15b4c8fbf
refactor terminate (calculate_armor/resistance)
2018-09-12 15:11:34 +02:00
Enno Rehling
820264aa82
BUG 2461: Liste der Angreifer zeigt nicht alle Parteien.
2018-07-15 13:39:23 +02:00
Enno Rehling
b31a1f798c
BUG 2346: extract a test for ship tactics bonus.
2018-05-03 23:00:28 +02:00
Enno Rehling
b5b9611a16
eliminate construction.improvement,
...
create building_type.stages instead.
2018-05-01 15:40:11 +02:00
Enno Rehling
6b38fdf4e6
fix build
2018-04-30 20:25:58 +02:00
Enno Rehling
f6735049d8
add a few tests for fighters equipping the right weapons and armor.
2018-04-29 15:25:46 +02:00
Enno Rehling
c01e9b24ad
unit tests for racial weapon permissions.
2018-04-29 15:09:07 +02:00
Enno Rehling
72daecd27e
cppcheck false positives
2018-02-25 20:06:55 +01:00
Enno Rehling
4ce7932d14
add some checks (cppcheck is weird).
2018-02-25 17:01:16 +01:00
Enno Rehling
e4aa8f505e
cppcheck warnings for battle
2018-02-25 14:18:36 +01:00
Enno Rehling
2493b01883
make some changes to support non-random skill progress.
...
disable test_drain_exp, since it can't deal with that.
2018-01-21 11:03:50 +01:00
Enno Rehling
0b20c379b6
enhance foolpotion test.
2018-01-21 11:03:49 +01:00
Enno Rehling
75f41a7169
fix crashes on 64-bit systems (not all 0s are created equal).
2018-01-14 09:38:26 +01:00
Enno Rehling
cff4e12fbd
celan up tests, rename test_cleanup -> test_teardown.
2017-12-27 19:58:39 +01:00
Enno Rehling
e2f954b7f6
BUG 2392: anyone can use weapons, as long as they have _some_ skill.
2017-12-17 10:16:56 +01:00
Enno Rehling
2dd159841e
Merge branch 'master' into develop
2017-08-24 16:47:24 +02:00
Enno Rehling
c99e92db20
kill curse cache logic, it was a bad idea.
...
ct_find is almost never what we want to do.
2017-08-21 19:43:35 +02:00
Enno Rehling
54b5b09e15
Merge branch 'master' into develop
...
Conflicts:
src/gmtool.c
src/modules/autoseed.c
2017-08-18 20:31:14 +02:00
Enno Rehling
c8b2ce7900
BUG 2356: fix curse read/write
...
rename curse::flags to curse::mask, use c_flags.
fix some curse_type having CURSE_ISNEW fixed.
2017-08-18 19:39:33 +02:00
Steffen Mecke
160ef71d40
refactor for STUDYDAYS
2017-08-01 22:09:57 +02:00
Enno Rehling
3a985108a6
change all magic resistance to use fractions.
2017-02-24 20:47:47 +01:00
Enno Rehling
67831ad708
we like test_setup.
2017-02-22 20:16:51 +01:00
Enno Rehling
82e4d75429
unused function
2017-02-22 19:43:17 +01:00
Enno Rehling
3274065004
reduce complexity of building_protection.
2017-02-22 19:38:46 +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
bd836b76e1
channel XML race.parameters through a single, tested, function
2017-02-05 16:55:51 +01:00
Enno Rehling
2ecbf89f1a
clean up and test various race.parameters
2017-02-04 23:16:16 +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
873e6f8086
remove more static curse_type variables
2016-08-29 20:34:30 +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
23a91be9c1
basic test for skilldiff.
2016-08-29 08:06:33 +01:00
Enno Rehling
1a9e3db423
Merge branch 'master' into develop
...
Conflicts:
src/buildno.h
2015-12-06 20:51:14 +01:00
Enno Rehling
9b7d4adda5
https://bugs.eressea.de/view.php?id=2173#c6397
...
by request: magic resistance never higher than 90%, so highly skilled monsters cannot become completely invincible to magic.
2015-12-06 20:48:22 +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
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
bf2920d1ae
fix warnings on gcc
2015-12-05 17:25:47 +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
7dae5aa035
eliminate silly caching logic from natural armor calculation
2015-11-21 19:02:14 +01:00
Enno Rehling
318820fb00
eliminate use of test_create_world
2015-11-07 23:49:45 +01:00