Commit Graph

100 Commits

Author SHA1 Message Date
Enno Rehling 73f49ec90a fix demon hunger in E3 and one intermittent test.
tests involving demons can disable skill changes.
2017-12-22 19:14:01 +01:00
Enno Rehling abd9b94d37 remove some ifdef options to maybe accelerate cppcheck. 2017-12-09 11:00:37 +01:00
Enno Rehling 05b7837070 fix parser to keep a reference to the order it is parsing.
make push/popstate not crash. pass unit tests.
2017-11-10 07:56:56 +01:00
Enno Rehling 89bf17cdca almost have sqlite storage working (in memory, not file).
but test_teach_magic crashes.
2017-11-09 21:33:42 +01:00
Enno Rehling 333ef06fef hackish optimization for STUDY orders 2017-10-13 19:33:29 +02:00
Enno Rehling 2b54605080 remove order de-duplication for short and study orders. 2017-10-13 19:33:27 +02:00
Enno Rehling a175c84232 create_mage sollte ein existierendes at_mage nicht überschreiben, nur evtl. aktualisieren. 2017-10-08 09:10:41 +02:00
Enno Rehling f594a908df deprecate old get_mage implementation.
fix test_familiar_equip with new get_mage.
2017-10-06 21:53:07 +02:00
Steffen Mecke 080d5e3f65 rename teaching_info.value to days 2017-09-02 15:50:03 +02:00
Steffen Mecke b98c01a7b8 simplify academy teaching code, addressing bug 2335 2017-09-02 03:24:04 +02:00
Enno Rehling 2dd159841e Merge branch 'master' into develop 2017-08-24 16:47:24 +02:00
Enno Rehling fc4bde47f6 kill the old curses enum and oldcursename. 2017-08-21 20:48:00 +02:00
Enno Rehling 7985ebe511 replace ct_find calls with constants.
reorder a lot of includes.
2017-08-21 20:18:19 +02:00
Enno Rehling 59cee972e3 BUG 2355: (temporarily) disable assert
https://bugs.eressea.de/view.php?id=2355
2017-08-06 21:27:20 +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 80bfb5dbc6 rename teacher variable 2017-08-01 22:09:57 +02:00
Steffen Mecke 160ef71d40 refactor for STUDYDAYS 2017-08-01 22:09:57 +02:00
Steffen Mecke 1edfb7ae8e use STUDYDAYS consequently 2017-08-01 22:09:57 +02:00
Enno Rehling c49786d713 fix some memory leaks 2017-03-30 23:13:55 +02:00
Enno Rehling 93be6eb642 Merge branch 'master' into develop 2017-01-29 13:33:30 +01:00
Enno Rehling 6eded43ce9 Merge branch 'master' into hotfix/3_10_5 2017-01-29 13:03:27 +01:00
Enno Rehling 36d884143e Bug 2278: Neue Magier können nicht gelehrt werden.
http://bugs.eressea.de/view.php?id=2278
2017-01-29 11:06:08 +01:00
Enno Rehling 146cb9b00d fix merge conflict 2017-01-26 19:19:40 +01:00
Enno Rehling e47957ae8e Merge branch 'develop' into clibs 2017-01-26 19:06:14 +01:00
Enno Rehling 23b211d9e4 fix study.c teacher messaging 2017-01-26 18:58:29 +01:00
Enno Rehling d94cde67a4 kill autoconf.h, replace platform.h for C99 compatibility work 2017-01-26 18:03:48 +01:00
Enno Rehling f297d89958 merge monster.c and monsters.c
move RCF_DESERT handling to monsters.c
2017-01-26 17:57:21 +01:00
Enno Rehling 61f3585ad7 unlimited teachers.
quicklist replaces fixed array.
2017-01-26 17:57:21 +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 aa08a20724 Merge branch 'develop' of github.com:ennorehling/eressea into develop 2016-12-23 18:05:55 +01:00
Enno Rehling cc227fb707 merge monster.c and monsters.c
move RCF_DESERT handling to monsters.c
2016-12-23 18:05:38 +01:00
Enno Rehling ccb1799726 unlimited teachers.
quicklist replaces fixed array.
2016-12-11 21:29:07 +01:00
Enno Rehling 434cf8fce6 the unitid macro is boring. 2016-11-17 21:27:19 +01:00
Enno Rehling a88bfa7a9a decluttering config.c (rules go into laws.c) 2016-11-16 22:46:01 +01:00
Enno Rehling 03d90c5680 remove BOM from UTF-8 files, replace Umlauts 2016-11-01 17:25:52 +01:00
Enno Rehling 63f60a2465 cache some more get_race calls, especially for RC_SPELL. 2016-10-03 20:36:46 +02:00
Enno Rehling 423e293745 some more config lookup caching 2016-09-23 20:39:08 +02:00
Enno Rehling a3ad9a0222 I am now calling get_race far too often. Fix this a bit. 2016-09-20 20:27:41 +02:00
Enno Rehling 025c0b91d9 cache the toad race 2016-09-19 07:02:45 +02:00
Enno Rehling f47113e9bd eliminate static curse variables (gbdream & more) 2016-08-29 20:31:18 +01:00
Enno Rehling 2a8013f3f9 fix bug 2194, poorly 2016-03-25 17:05:01 +01:00
Enno Rehling 547532bc63 remove deprecated learn_skill function and configuration 2016-03-24 22:31:07 +01:00
Enno Rehling be6a7a5e39 refactor test_create_locale
- create a mostly functional locale for testing
- use it for test factions
refactor learn_skill injection
- use days, not chance
- fix or mutilate broken tests
2016-03-24 13:01:42 +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 e75843e5c1 learn_skill tests were unstable because of random progress (disable it) 2016-03-24 13:01:40 +01:00
Enno Rehling c91da12883 refactor demon_skillchange to use learn_skill
Also extracting it into the study module. No idea yet how I am going to sense this for a test, so the test currently does nothing.
2016-03-24 12:59:50 +01:00
Enno Rehling af83efca44 rewrite learn_skill to not use the deprecated function. 2016-03-24 12:51:23 +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 ae7d86dae0 just a little bit of refactoring 2016-03-11 21:36:10 +01:00
Enno Rehling d43265f937 a new test for the happy case of a working academy
dependency injection for learn_skill
memory leak fixes (triggers, armor)
2016-03-09 23:20:05 +01:00