Enno Rehling
be84c13a72
remove test_inject_messagetypes(), make that the default behavior in tests.
2018-10-28 21:28:05 +01:00
Enno Rehling
fc2506ee83
cppcheck: DMAXHASH was unused.
...
cppcheck: remove warnings, reduce variable scopes.
2018-02-25 17:58:45 +01:00
Enno Rehling
a286cb45f1
compilation fix, disable catapult damage code.
2018-02-25 14:54:45 +01:00
Enno Rehling
7b01581302
CATAPULT_STRUCTURAL_DAMAGE was broken.
...
check for PDCURSES, not WIN32
2018-02-25 14:29:25 +01:00
Enno Rehling
010ff35c4a
test_setup_world is deprecated.
2018-01-14 17:43:10 +01:00
Enno Rehling
42e7e98ccf
Default to reporting missing message types during tests as an error, grandfather in some tests with test_inject_messagetypes();
2018-01-14 17:08:46 +01:00
Enno Rehling
f98eab56c4
platform.h is only for WIN32 now.
...
replace MIN and MAX macros, they are BAD.
2017-12-29 06:13:28 +01:00
Enno Rehling
bf86c4e043
backfill missing manacrystal test.
2017-12-27 22:26:50 +01:00
Enno Rehling
cff4e12fbd
celan up tests, rename test_cleanup -> test_teardown.
2017-12-27 19:58:39 +01:00
Enno Rehling
5af5daa355
BUG 2378: Fix magic armor resistance calculation.
...
Use frac_one constant where applicable.
2017-10-29 18:55:43 +01:00
Enno Rehling
b337373bc9
shorten some names, too many messages with the same prefix are inefficient.
2017-10-16 20:38:52 +02:00
Steffen Mecke
f0c17b01af
fixed demon_skillchange and produceexp
...
learn_skill's argument is the number of person days, not the number of unit days as assumed!
2017-08-04 15:23:05 +02:00
Steffen Mecke
160ef71d40
refactor for STUDYDAYS
2017-08-01 22:09:57 +02:00
Enno Rehling
1b93c14806
Test E2 items in E2 only.
...
Remove eye of demon (broken item).
2017-02-27 18:50:48 +01:00
Enno Rehling
25d3aacffa
remove artrewards, they predate my backups
2017-02-24 14:38:08 +01:00
Enno Rehling
f06d86007c
seed normalization (broken)
2017-02-23 22:08:16 +01:00
Enno Rehling
1498f2e1d7
refactor rawmaterial_type.
...
still have to decide if we need it at all.
2017-02-22 21:10:22 +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
b24f8b2839
remove config.h from items/
2016-11-17 11:25:02 +01:00
Enno Rehling
e3b7e19750
sometims we only include config.h for fval.
...
I hate fval.
2016-11-17 10:57:20 +01:00
Enno Rehling
11b122048b
reduce dependency on save.h
...
moving a_write* functions to attrib.h, which was most of the reason everyone and their mom include save.h
2016-11-13 19:40:38 +01:00
Enno Rehling
ce7eb9663a
remove dead phoenix feature.
2016-08-29 20:56:00 +01:00
Enno Rehling
eee4fa9e91
I am pretty sure the phoenix doesn't work.
2016-08-29 20:53:53 +01:00
Enno Rehling
f97b6c9821
bug: learn_skill was not learning the right skill
...
refactor: further reduce learn_skill_depr usage
2016-03-24 13:01:42 +01:00
Enno Rehling
b5a4faa745
deprecate learn_skill taking a double
...
- introduce days-based learn_skill
- add a simple test
2016-03-24 12:51:21 +01:00
Enno Rehling
02cfacd7f8
refactorings
...
- learn_skill from unit.c to study.c
- add academy.c module
2016-03-09 14:52:50 +01:00
Enno Rehling
5187788f3c
pass the parent of an attribute into a_age and attrib_type::age
2015-12-16 22:18:44 +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
2f8dc29396
clean up item tests so they don't use test_create_world
...
fix intermittent skillpotion test
2015-11-07 13:52:18 +01:00
Philipp Dreher
91155f509c
formatting: tabs --> spaces
2015-11-01 17:38:12 +01:00
Philipp Dreher
bebc92f82d
expansion of the skillpotion-test
...
test now checks the effect of the potion on the week-counter of
sufficiently high skills
2015-10-31 19:03:15 +01:00
Enno Rehling
e99db198eb
bugfix use_item (use_skillpotion did not use pool).
...
from here on, all use_* functions return the number of items used, and
use_item handles removing them from the unit (or the pool).
2015-05-24 07:17:23 +02:00
Enno Rehling
c54cbfd472
fix copyright notice
2015-01-30 22:10:29 +01:00
Enno Rehling
abca25d1d5
fix indentation in every file
...
fix copyright date
remove vi ts=2 code
remove a couple of superfluous extern declarations
2015-01-30 20:37:14 +01:00
Enno Rehling
4bb65873da
shipspeed should be in ship.c, not in config.c
2014-12-25 18:16:24 +01:00
Enno Rehling
1af315ebf2
move magic out of kernel, into src.
...
clean up/remove a ton of includes, especially of types.h (include in header if you need it, not in every .c file).
2014-11-01 12:57:01 +01:00
Enno Rehling
a9a0455207
reorganized directory structure.
...
flattening the directory structure, moving some modules to the src/ directory.
making stealth a separate file, under test.
more tests for some stuff.
2014-08-27 06:40:35 +02:00
Enno Rehling
92f43a7b51
eliminate it_find calls, replace it_find with something backed by rt_find
2014-06-24 22:44:05 -07:00
Enno Rehling
dc8a8cdd71
rt_find -> get_resourcetype optimization
2014-06-24 08:19:11 -07:00
Enno Rehling
d581737744
optimization: caching resource types in get_resourcetype.
...
eliminate some it_find calls.
eliminate static variables, they make testing hard.
2014-06-24 07:42:45 -07:00
Enno Rehling
bff25f3c51
move skill_t into a separate file, give it unit tests.
...
name functions the same as we did for keyword/direction earlier.
to do: json configuration and lua test.
2014-06-20 23:59:04 -07:00
Enno Rehling
d503937999
working on making json config understand ships and buildings.
...
new tests in progress.
remove giveitem.c attribute, the name clashed with a trigger,
and it was only part of an arena that is gone from the game, I think.
2014-06-12 22:14:07 -07:00
Enno Rehling
3c4b6b9dd4
rename message.[hc] to messages.[hc] in kernel because of naming conflict with util/
...
begin json config files (WIP)
2014-06-09 09:56:49 -07:00
Enno Rehling
7358c48580
removing some naming conflicts that hapen when trying to re-enable amalgamation builds.
2014-04-11 19:41:17 -07:00
Enno Rehling
0ae8737062
rename MIN/MAX to _min/_max
2014-03-16 05:03:17 +01:00
Enno Rehling
03c247c788
I am killing the core/ directory.
...
Lots of files are moving to a new location in src/
Some intersting CMake changes.
2014-02-18 05:45:00 +01:00