Enno Rehling
432a8d432d
messy merge of cppcheck fixes into develop
2018-02-25 20:41:53 +01:00
Enno Rehling
4181e23d15
FAST_CONNECT is always on.
...
fix more cppcheck messages.
2018-02-25 18:30:20 +01:00
Enno Rehling
398a258658
cppcheck: variable scopes, etc.
2018-02-11 15:57:31 +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
ec48017520
move spell reporting attributes to a separate module.
2018-02-08 18:33:58 +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
f82fe6e963
more frequent use util/macros.h instead of platform.h
2017-12-28 18:55:45 +01:00
Enno Rehling
5b1d27542a
reduce dependence on platform.h.
...
gradually stop using MAX and MIN (mistakes were made).
2017-12-28 18:29:40 +01:00
Enno Rehling
79aecf21b5
Merge branch 'develop'
2017-10-18 19:40:00 +02:00
Enno Rehling
e2c7b2c711
merge with master, which was far behind
2017-10-15 20:32:19 +02:00
Enno Rehling
333ef06fef
hackish optimization for STUDY orders
2017-10-13 19:33:29 +02:00
Enno Rehling
1b53128e1a
BUG 2366: Fix cansee for seen_spell regions.
2017-10-10 20:24:20 +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
Enno Rehling
2ce94f2d47
BUG 2367: refactor create_newfamiliar.
...
add first failing test for bug report.
2017-10-06 21:23:58 +02:00
Enno Rehling
9bfc0139f5
set_familiar code reduction.
...
remembering that at_skillmod is not persistent.
2017-10-06 17:32:56 +02:00
Enno Rehling
4452f93009
BUG 2367: add a test for set_familiar.
2017-10-05 22:13:39 +02:00
Enno Rehling
902e2126c9
WIP: change the resolve.h API
2017-09-21 17:29:01 +02:00
Enno Rehling
89e162c12a
change resolve.h api to use int, not variant.
2017-09-19 11:42:02 +02:00
Enno Rehling
b4fc7a1ab4
fix coverity nag about spellbooks.
2017-09-18 19:51:47 +02:00
Enno Rehling
02ed1dfe0c
fix get_spellbook with cb_find_str.
2017-09-18 19:35:37 +02:00
Enno Rehling
8c6362002e
fix some niggles, delete invalid test.
2017-09-16 07:37:33 +02:00
Enno Rehling
a8bfa5e095
try fixing familars without a mage.
2017-08-31 21:19:25 +02:00
Enno Rehling
6d1fe2842a
leak: free special directions.
2017-08-25 08:52:15 +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
69ef2c7ce7
Merge branch 'master' into develop
...
Conflicts:
src/magic.c
2017-06-18 01:11:40 +02:00
Enno Rehling
2c9c4c23f0
convert warning to debug output
2017-06-11 14:47:33 +02:00
Enno Rehling
5b807e2057
crash casued by spell conversion.
...
remove unit from faction, not only region!
also remove spammy warning that has no value.
2017-06-04 14:13:05 +02:00
Enno Rehling
3306488641
Merge pull request #695 from ennorehling/feature/refactor-rcspell
...
refactor observers, lighthouses
2017-05-28 12:50:05 +02:00
Enno Rehling
9e213d3bcd
minor optimization and using fraction code
2017-05-26 19:05:46 +02:00
Enno Rehling
18daa9db2f
entirely remove RC_SPELL
2017-05-24 08:52:19 +02:00
Enno Rehling
5d710fa79f
merge spell callback changes.
2017-05-01 19:13:40 +02:00
Enno Rehling
fa7a3e246b
eliminate spell->id.
...
clean up some spell functions used by more than one spell.
2017-05-01 17:04:28 +02:00
Enno Rehling
80d696d02a
remove the funcpointer from struct spell.
2017-04-30 22:15:18 +02:00
Enno Rehling
724a41ac85
refactor: pass function name to callback, calculate it in call_spell instead.
2017-04-30 21:38:44 +02:00
Enno Rehling
edd3b36a9f
add a callbacks module.
...
make last-chance spell function in lua for spells with none.
2017-04-30 21:38:44 +02:00
Enno Rehling
294b7bf01e
route all casting through a single cast_spell function.
2017-04-30 10:00:29 +02:00
Enno Rehling
e6f8c943fa
refactor the special fumble functions for spells.
...
removed from struct spell.
funpointers in structs are bad, mkay.
2017-04-30 03:27:28 +02:00
Enno Rehling
931e705b05
delete unused functions
2017-04-29 20:37:02 +02:00
Enno Rehling
3a985108a6
change all magic resistance to use fractions.
2017-02-24 20:47:47 +01:00
Enno Rehling
27f9490ec1
Merge pull request #661 from ennorehling/develop
...
pedantic gcc compilation
2017-02-18 22:07:12 +01:00
Enno Rehling
b8302b1f15
Merge branch 'develop' of github.com:eressea/server into develop
2017-02-18 22:03:34 +01:00
Enno Rehling
b744b6d601
Merge branch 'master' into develop
2017-02-18 22:02:58 +01:00
Enno Rehling
5796f60f16
spells will always resist magic
2017-02-18 22:00:48 +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
daa7554361
remove race.precombatspell
2017-02-18 18:14:18 +01:00
Enno Rehling
e51742da90
use rc_maxaura wrapper everywhere.
2017-02-03 19:50:48 +01:00
Enno Rehling
7750297dc2
express race.magres as percentage, not probability (double->int)
2017-02-03 10:57:32 +01:00