Commit Graph

17 Commits

Author SHA1 Message Date
Enno Rehling 69c4595282 Build in Visual Studio 2019
simplify test_create_faction
rewrite lots of tests
2020-12-06 15:47:47 +01:00
Enno Rehling f78aa507f8 https://bugs.eressea.de/view.php?id=2701
fix the academy
make academy, curses and potions work for LERNE AUTO
remove E3 study.speedup
2020-12-06 15:47:47 +01:00
Enno Rehling 3638219e13 fix magic tests that created gray mages.
also fix mage_change_spellpoints.
2018-11-18 21:53:45 +01:00
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 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 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
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
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 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