Enno Rehling
d568e79490
spellbooks contain spellref, not spell *.
...
for order-independent load from XML.
2018-05-05 07:38:11 +02:00
Enno Rehling
08663b6eb5
fix last commit. refactoring with the MSVC IDE is prone to errors.
2018-04-28 15:57:51 +02:00
Enno Rehling
fc4b7ba73d
refactor: extract cycle_route and test it (with PAUSE).
2018-04-22 11:02:05 +01:00
Enno Rehling
9ba255e269
allow a maxnmr setting in eressea.ini to override the nmr.timeout rule.
2018-03-11 19:07:05 +01:00
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
7d789d9896
Merge branch 'develop' of https://github.com/ennorehling/eressea.git
2018-02-14 20:03:11 +01: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
f4be3a1374
remove duplication setstatus -> unit_setstatus
2018-02-14 11:24:38 +01:00
Enno Rehling
398a258658
cppcheck: variable scopes, etc.
2018-02-11 15:57:31 +01:00
Enno Rehling
cfc3171021
constrict the seenspell module a bit more, move functionality inside.
2018-02-08 19:37:47 +01:00
Enno Rehling
ec48017520
move spell reporting attributes to a separate module.
2018-02-08 18:33:58 +01:00
Enno Rehling
df255b886a
verify xml loading, fix remaining files for e2.
2018-02-06 18:46:28 +01:00
Enno Rehling
e233d08e8f
move more reporting code to reports.c
2018-01-26 17:39:15 +01:00
Enno Rehling
4247ef96b1
why are we using the short type?
2018-01-21 11:14:55 +01:00
Enno Rehling
7db82ba21e
refactoring for readability
2018-01-21 11:03:51 +01:00
Enno Rehling
88a96d5723
begin adding tests for skills.
2018-01-21 11:03:49 +01:00
Enno Rehling
71c9b5adef
Fix broken SHOW logic for potions.
2018-01-14 17:40:49 +01:00
Enno Rehling
7a64053dc9
better testing for is_potion (should be a function)
2018-01-14 17:40:49 +01:00
Enno Rehling
2b2a79620c
compiles, test fails, xmlreader includes need fixing
2018-01-14 17:40:48 +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
e4859e68c9
do not use MIN and MAX.
2018-01-01 08:23:52 +01:00
Enno Rehling
a8140f1dc9
rename strlcpy->str_strlcpy, etc.
2017-12-30 19:49:21 +01:00
Enno Rehling
50173d5be3
PATH_MAX and MAX_PATH are crazy.
2017-12-29 11:44:14 +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
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
cba452786f
BUG 2396: insect recruit messages fixed, and tests added.
2017-12-22 11:15:17 +01:00
Enno Rehling
e2f954b7f6
BUG 2392: anyone can use weapons, as long as they have _some_ skill.
2017-12-17 10:16:56 +01:00
Enno Rehling
93613b99af
slprintf is not in BSD (it's theft from samba).
2017-12-11 19:23:56 +01:00
Enno Rehling
17ee0e50b6
cppcheck warnings and scope reductions.
2017-12-08 21:08:11 +01:00
Enno Rehling
05425b5101
pull economy requests into header, rename the struct.
2017-12-04 19:20:48 +01:00
Enno Rehling
290a07e763
Merge branch 'develop'
2017-11-15 20:39:20 +01:00
Enno Rehling
54b016a735
Merge remote-tracking branch 'upstream/develop' into develop
2017-11-15 20:37:46 +01:00
Steffen Mecke
0aa5a64c63
allow empty faction email
2017-11-15 12:12:42 +01:00
Enno Rehling
3b6d7a4055
Merge branch 'develop'
2017-11-12 22:15:47 +01:00
Enno Rehling
2703b01ade
units can rename the ship they are on if their faction owns it.
...
this fixes bug 2384.
2017-11-12 15:01:58 +01:00
Enno Rehling
34808a25c5
Merge branch 'develop'
2017-11-09 18:04:41 +01:00
Enno Rehling
eccf6bef7a
consistent naming of module configurations (singular).
...
add module switch for volcano.
2017-11-06 21:04:30 +01:00
Enno Rehling
7196f799e6
add a terrain_changed function for use with static terrain variables.
2017-11-06 20:29:26 +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
34cd692c2d
remove the locale from orders.
2017-10-13 19:33:28 +02:00
Enno Rehling
ca6cbe5906
fixing commit 1b53128e1a
and adding a test for cansee.
2017-10-13 19:07:57 +02:00
Enno Rehling
1b53128e1a
BUG 2366: Fix cansee for seen_spell regions.
2017-10-10 20:24:20 +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
02cfde0a49
fix create_unit default order memory leak
2017-10-01 17:08:05 +02:00
Enno Rehling
0f10b58167
add tests and rewrite MAKE TEMP
2017-10-01 15:08:26 +02:00
Enno Rehling
423fe65377
move region display to land_region struct, oceans do not have descriptions.
2017-09-16 07:58:57 +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
54b5b09e15
Merge branch 'master' into develop
...
Conflicts:
src/gmtool.c
src/modules/autoseed.c
2017-08-18 20:31:14 +02:00
Enno Rehling
c8b2ce7900
BUG 2356: fix curse read/write
...
rename curse::flags to curse::mask, use c_flags.
fix some curse_type having CURSE_ISNEW fixed.
2017-08-18 19:39:33 +02:00
Enno Rehling
eb1dc731cb
consistently rename ec_flags constants (ECF_*)
2017-07-17 12:33:55 +02:00
Enno Rehling
f934e4d5e3
remove unused ECF_KEEP_ITEM flag.
2017-07-17 12:31:47 +02:00
Enno Rehling
153039fdef
fix gcc compilation, unused variable
2017-05-24 08:58:46 +02:00
Enno Rehling
18daa9db2f
entirely remove RC_SPELL
2017-05-24 08:52:19 +02:00
Enno Rehling
c8e777c6d4
Merge branch 'bug2211_addendum' of https://github.com/stm2/server into stm2-bug2211_addendum
2017-05-21 14:51:13 +02:00
Enno Rehling
d9fca4dcb3
refactor stray fptr variable into callbacks module.
2017-05-08 22:44:18 +02:00
Enno Rehling
bf935f5bb7
gamedate: no negative turns allowed.
...
feed the beast assert.
2017-05-07 16:12:10 +02:00
Enno Rehling
3b9a6e45a1
turns out: btype->age is never used.
2017-04-29 13:53:28 +02:00
Enno Rehling
51c2df62ca
fixing new coverity scan defects
...
167039 Dereference after null check
167038 Unchecked return value
2017-04-16 15:52:34 +02:00
Enno Rehling
d99090ac67
remove additional unused macro constants
2017-03-31 21:29:37 +02:00
Enno Rehling
03653a7338
fix two live warnings (unicode trim and fleechance registration)
2017-03-27 18:07:44 +02:00
Enno Rehling
4c21ff5d63
BUG 2311: enforce all unit limits.
2017-03-11 20:30:17 +01:00
Enno Rehling
21e260907c
BUG 2311: unit limits were not enforced by GIVE.
2017-03-11 20:03:49 +01:00
Enno Rehling
d633c2a9fb
BUG 2310: counting units and people.
...
reduce number of count_all loops made,
make f->num_units and f->num_people be correct.
2017-03-11 19:36:26 +01:00
Enno Rehling
0f2744fcf3
BUG 2285: remove factions' wealthfrom statistics.
2017-03-11 18:10:23 +01:00
Enno Rehling
858074501e
additional comments
2017-03-11 16:37:54 +01:00
Enno Rehling
4d07782e7d
Merge branch 'master' into develop
...
Conflicts:
scripts/tests/e2/init.lua
scripts/tests/e3/init.lua
src/economy.c
src/economy.test.c
2017-03-06 06:27:31 +01:00
Enno Rehling
a265bc9cdb
test giving stuff to 0.
2017-03-03 18:03:34 +01:00
Enno Rehling
45854851ae
bug 2292: allow packice to be guarded again.
...
https://bugs.eressea.de/view.php?id=2292
2017-03-02 18:08:58 +01:00
Enno Rehling
3cb24299fa
bug 2292: only land regions can be guarded.
...
https://bugs.eressea.de/view.php?id=2292
Also adding tests for every other failure reason.
2017-03-02 12:39:21 +01:00
Enno Rehling
9d09574d5e
enable process_orders to be done in steps.
...
by checking before turn_end(), we can sense temporary attributes and curses on a unit before they age away.
2017-02-27 19:35:14 +01:00
Enno Rehling
44c3838d79
WIP: itype->use elimination.
2017-02-27 04:22:28 +01:00
Enno Rehling
b8ffc20d87
remove item_useonother callbacks (use is fine).
...
add a test for foolpotion.
2017-02-26 19:54:58 +01:00
Enno Rehling
bfb5a9b692
set age_unit and name_unit funpointers in rc_create.
...
no more <function/> in XML races.
rename juju-zombie => juju.
2017-02-20 22:07:36 +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
fd9583df3d
fix healing for elves in a forest.
...
rename _magres back to magres.
rc->parameters is not linked to config_changed invalidation.
add tests.
2017-02-03 17:43:40 +01:00
Enno Rehling
21514f3bfe
BESCHREIBE REGION ist jeder Einheit des Regionsbesitzers erlaubt
2017-01-26 18:06:49 +01:00
Enno Rehling
2a1ead6506
BENENNE REGION ist jeder Einheit des Regionsbesitzers erlaubt
2017-01-26 18:06:49 +01:00
Enno Rehling
c0692986b2
make runtests.bat not crash.
...
disable auto-load of config.lua (sob).
free messages and config in config.reset().
2017-01-26 18:06:48 +01:00
Enno Rehling
48ae12b629
emit a password message for newbie factions
2017-01-26 18:06:16 +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
a4badc0a75
remove quicklist shim, use selist everywhere
2017-01-26 17:41:21 +01:00
Enno Rehling
7f9313f1a7
static analysis warnings.
...
PVS-Studio warnings reduced or suppressed.
2016-11-23 18:56:40 +01:00
Enno Rehling
ec4060cb9a
fix curse-vigour calculation math.
...
also fix a ton of small other niggles from pvs-studio.
2016-11-20 19:08:39 +01:00
Enno Rehling
303eb86399
factionid and curseid are also boring.
2016-11-17 21:29:15 +01:00
Enno Rehling
a88bfa7a9a
decluttering config.c (rules go into laws.c)
2016-11-16 22:46:01 +01:00
Enno Rehling
17365edff7
move renumber command to a separate module.
2016-11-15 23:34:20 +01:00
Enno Rehling
772bc427aa
Merge branch 'develop' of github.com:ennorehling/eressea into develop
2016-11-15 20:44:02 +01:00
Enno Rehling
c1f468ceb0
begin to declutter config.c
2016-11-15 20:43:36 +01:00
Enno Rehling
ce4a3c14b3
convert from atoi to atoip.
...
most numbers in commands cannot be negative.
2016-11-14 22:27:44 +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
ff09defa69
prevent badly naming units/factions/regions.
2016-11-11 01:59:43 +01:00
Enno Rehling
03d90c5680
remove BOM from UTF-8 files, replace Umlauts
2016-11-01 17:25:52 +01:00
Enno Rehling
754ad78db7
WIP: remove GUARD_* flags.
...
TODO: does not compile
TODO: write new guard.test.c tests
2016-10-31 07:45:06 +01:00
Enno Rehling
1ea8c80845
test that is_guard changes when armedmen does.
2016-10-29 19:19:11 +02:00