Enno Rehling
d56eee9687
BUG 2504: skeletons can learn.
...
There was a mixup between the AI feature and the race capability, so I cleared up the code a little bit.
It's annoying that these flags are in the same int.
2019-02-16 20:14:34 +01:00
Enno Rehling
5868316537
asciification
2019-02-09 12:50:12 +01:00
Enno Rehling
0043690650
Merge branch 'master' into develop
2019-02-02 21:17:23 +01:00
Enno Rehling
af91459fb1
add some variety to familiar selection.
...
effskill: use NULL, not 0 for pointer arguments.
2019-02-02 20:38:02 +01:00
Enno Rehling
7ea64be314
code analysis scan.
...
add checks for malloc results.
reduce stack size.
2018-12-15 19:38:40 +01:00
Enno Rehling
62e6489c7a
rename variable.
...
print error, not debug message.
2018-11-21 21:46:59 +01:00
Enno Rehling
4a66b558c5
WIP: refactor struct sc_mage (make it private).
...
tests are failing and/or slow.
2018-11-18 21:47:14 +01:00
Enno Rehling
d2389fa87b
Bug 2517: Vertraute ohne eigene Zauber reparieren
...
Trennung von caster und mage in spells.c
2018-11-17 21:31:05 +01:00
Enno Rehling
da9d3d3573
Merge branch 'master' into develop
2018-10-29 20:10:51 +01:00
Enno Rehling
113a6e68c7
BUG 2507: LERNE AUTO with invalid skill.
2018-10-28 21:27:24 +01:00
Enno Rehling
d3a37179ef
add param.[hc], at last.
2018-09-29 19:32:39 +02:00
Enno Rehling
a373807189
move attrib and event modules to kernel
2018-09-29 11:37:17 +02:00
Enno Rehling
67089aeb8c
Bug 2487: Fix LERNE AUTO translations
...
Also disallow autolearning expensive skills.
2018-09-09 15:13:20 +02:00
Enno Rehling
b0fb1e5032
actually do the learning.
2018-08-05 06:41:04 +02:00
Enno Rehling
c8ebde3990
autostudy continued (WIP)
2018-08-05 06:41:04 +02:00
Enno Rehling
f6b6904ced
finish parser for K_AUTOSTUDY and P_AUTO.
2018-08-05 06:41:03 +02:00
Enno Rehling
ee8a02c425
autostudy framework
2018-08-05 06:41:03 +02:00
Enno Rehling
d15684a546
fix test_process_turn failure.
...
move turn global to calendar.
promote calendar module to kernel.
2018-02-14 20:01:36 +01:00
Enno Rehling
b5ea102372
cppcheck: scope reductions and a false positive.
2018-02-11 16:14:00 +01:00
Enno Rehling
1035a98fd3
make attrib use a variant, not a custom union.
...
change attrib_type methods to take a variant, not the entire attrib.
2018-02-09 21:20:43 +01:00
Enno Rehling
f1be8caa46
more skill size savings.
2018-02-03 14:16:01 +01:00
Enno Rehling
3d69f4e372
start removing dependencies on potion_type.
...
use item_type where we can. does not compile, is WIP.
2018-01-14 17:40:48 +01:00
Enno Rehling
2cf20dd6e2
Bug 2407: do not cache study_cost(SK_MAGIC).
2018-01-07 15:26:17 +01:00
Enno Rehling
a8140f1dc9
rename strlcpy->str_strlcpy, etc.
2017-12-30 19:49:21 +01:00
Enno Rehling
c8ee0db02d
stop using MIN and MAX
2017-12-30 08:58:50 +01:00
Enno Rehling
f1a6203f3e
Not yet ready to give up on the MIN/MAX macros
2017-12-29 19:26:20 +01:00
Enno Rehling
095148ab50
move va_copy macro closer to where it is used.
2017-12-29 17:00:16 +01:00
Enno Rehling
c3a812123f
fix use of static configuration in study_cost.
2017-12-29 16:07:48 +01:00
Enno Rehling
c23e7bf9b9
add a unit test for academy_can_teach.
2017-12-29 13:37:17 +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
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