Enno Rehling
0af5df470b
managed to commit some broken tests, and travis let them pass. something is wrong with the CI tests.
2015-08-07 18:30:02 +02:00
Enno Rehling
816243d2d7
magicians can always identify their own curse-effects.
...
magic-resistance on a building is always visible to anybody, just like it is on units.
2015-08-07 15:52:10 +02:00
Enno Rehling
397a157fdc
Merge branch 'develop' into feature/bug-1588-magicpower-limit
...
Conflicts:
scripts/tests/e2/init.lua
src/battle.c
src/bind_unit.c
src/kernel/spellid.h
src/magic.c
src/magic.h
2015-08-06 19:16:05 +02:00
Enno Rehling
4c877288d3
remove spellid.h, it represents an outdated way of doing things.
...
merge the enum into combatspells, and reduce it to the spells actually used here.
2015-08-06 17:57:51 +02:00
Enno Rehling
21a81bd307
cleanup: struct declaration, more static.
2015-07-12 14:24:46 +02:00
Enno Rehling
05f444bab1
Merge branch 'feature/rename-cerddor' into develop
2015-07-08 17:53:09 +02:00
Enno Rehling
efe2185b13
fix build, eliminate unused variables/functions.
2015-07-08 05:17:10 +02:00
Enno Rehling
6abf8f7adb
bug 1692: rewrite of magicresistance curse-info, especially for buildings (homestome spell).
2015-07-08 05:12:26 +02:00
Enno Rehling
c8ffe8da7a
Bug 2115: fix cerrdor -> cerddor spelling errors.
2015-07-07 20:30:34 +02:00
Enno Rehling
cc3c5580d4
rewrite and unit tests
2015-07-07 20:23:24 +02:00
Enno Rehling
960e0f8024
do not show magic resistance effects to other than the unit's own faction.
...
https://bugs.eressea.de/view.php?id=1692
2015-07-06 16:13:22 +02:00
Enno Rehling
df325b243a
enable stricter conversion checking for gcc < 4.9, fix code
2015-05-15 20:35:36 +02:00
Steffen Mecke
a31898ceb5
fix bug in generic_name, minor improvements
...
Amusingly, names::generic_name used u->no instead of u->number to determine
singular or plural.
2015-02-11 23:10:27 +01:00
Enno Rehling
83e610ee03
Fixing bug 1802 again, CR contains no Monster names.
2015-02-11 07:57:38 +01:00
Enno Rehling
abca25d1d5
fix indentation in every file
...
fix copyright date
remove vi ts=2 code
remove a couple of superfluous extern declarations
2015-01-30 20:37:14 +01:00
Steffen Mecke
27da082cc6
corrected good dreams message
2015-01-12 18:22:00 +01:00
Steffen Mecke
fdac137c0c
magic path warning was wrong way round
2015-01-12 18:21:41 +01:00
Enno Rehling
1ae44db7ca
Bugfix: Untote Helden bekamen keine Beute.
...
https://bugs.eressea.de/view.php?id=1962
2014-12-13 20:16:25 +01:00
Enno Rehling
0967ccaac6
remove even more obsolete datafile version support.
2014-12-12 23:00:30 +01:00
Enno Rehling
d492487a5b
remove support for versions prior to turn 572 (INTPAK_VERSION).
...
reading anything prior stopped working some time ago, let's not kid ourselves.
nobody needs to read those datafiles, they are more than 7 years old.
less code is better.
if access to these files is needed, check out an old version from source control.
2014-12-12 22:52:23 +01:00
Enno Rehling
5b9eb9080f
refactoring: move all monster-related code into monster.c
...
make some features depend on being NPCs, not monster faction.
2014-11-11 16:53:56 +01:00
Enno Rehling
27f94783bc
fix gcc build, forward-declare structs in the header.
...
MSVC allows structs to be declared in a function signature, gcc wants
to know about them earlier.
2014-11-01 13:10:22 +01:00
Enno Rehling
1af315ebf2
move magic out of kernel, into src.
...
clean up/remove a ton of includes, especially of types.h (include in header if you need it, not in every .c file).
2014-11-01 12:57:01 +01:00
Enno Rehling
932a615837
refactoring: special directions into their own file (vortex.c).
...
moving spells.c out of spells.
figured that movewhere should be in move.c
2014-08-27 21:30:24 +02:00
Enno Rehling
ecaeba3058
add a test for the vortex special direction before touching that code.
2014-08-27 20:10:17 +02:00
Enno Rehling
a9a0455207
reorganized directory structure.
...
flattening the directory structure, moving some modules to the src/ directory.
making stealth a separate file, under test.
more tests for some stuff.
2014-08-27 06:40:35 +02:00
Enno Rehling
4c00777553
make race::_name a string, not an array of strings. add a test for rc_name.
2014-08-24 23:58:29 +02:00
Enno Rehling
1342b625cc
Merge branch 'master' of github.com:eressea/server
2014-07-24 08:06:27 +02:00
Enno Rehling
955a57273d
code review changes
2014-07-24 08:04:30 +02:00
CTD
4670767a3b
Bug 1690: [E3] +1 Bonus für Zauber von Elfen im Wald
...
Es wurden immer 5 und nicht wie im kommentar beschrieben stufe/spellpwer
* 5 Personen von dem Spruch betroffen.
2014-07-23 10:52:39 +02:00
CTD
4cfa1ec7c3
Bug 1755 Beschworene Skelette mit Ausdauerproblemen
...
Sowohl Beschworenen Untote als auch Monster (Drachen, für Monster-Untote
war es Ok) hatten keine Anpassung ihrer Max-HP nach der Zuweisung von
Skills.
2014-07-18 13:15:18 +02:00
Enno Rehling
c3dfbdea18
eliminate new_race array in favor of a function (TODO: make it fast)
2014-06-29 18:10:02 -07:00
Enno Rehling
d581737744
optimization: caching resource types in get_resourcetype.
...
eliminate some it_find calls.
eliminate static variables, they make testing hard.
2014-06-24 07:42:45 -07:00
Enno Rehling
73da14e305
getting rid of the olditemtypes[] array
...
reduce use of statics
reduce use of item_t enum
2014-06-23 07:28:10 -07:00
Enno Rehling
2c831230a0
Added a test for expensive skills.
...
When resetting the game rules, make sure basic resources (money, hp, person) are initialized.
2014-06-22 07:55:14 -07:00
Enno Rehling
bff25f3c51
move skill_t into a separate file, give it unit tests.
...
name functions the same as we did for keyword/direction earlier.
to do: json configuration and lua test.
2014-06-20 23:59:04 -07:00
Enno Rehling
ceabbebc90
switch remaining flags from unsigned to int.
2014-06-18 20:53:06 -07:00
Enno Rehling
3625ba6a95
remove static variables optimizations, they create global state that is bad for testing
2014-06-17 23:10:55 -07:00
Enno Rehling
64e0c221ec
directions can now be read from json configuration.
...
rename a couple of functions for more consistency across modules.
2014-06-15 22:17:08 -07:00
Enno Rehling
a9f0538d8e
keyword_t and direction_t are moving into their own module.
...
direction parser gets new initialization function, for use in jsonconf later.
add unit tests for directions.
2014-06-15 18:34:39 -07:00
Enno Rehling
3c4b6b9dd4
rename message.[hc] to messages.[hc] in kernel because of naming conflict with util/
...
begin json config files (WIP)
2014-06-09 09:56:49 -07:00
Enno Rehling
7358c48580
removing some naming conflicts that hapen when trying to re-enable amalgamation builds.
2014-04-11 19:41:17 -07:00
Enno Rehling
0ae8737062
rename MIN/MAX to _min/_max
2014-03-16 05:03:17 +01:00
Enno Rehling
9fc926864e
Fixes for Visual C++
...
snprintf and strncasecmp are not that.
_access needs to be fixed on gcc, next.
2014-03-15 12:35:20 -07:00
Enno Rehling
1a7d892a96
use cmake for autoconf, slim down platform.h
2014-03-15 19:29:11 +01:00
Enno Rehling
03c247c788
I am killing the core/ directory.
...
Lots of files are moving to a new location in src/
Some intersting CMake changes.
2014-02-18 05:45:00 +01:00
Enno Rehling
b795602b5d
const-correctness: fumbles are not allowed to change castorder
2014-02-17 02:26:59 -08:00
Enno Rehling
77ab9133c2
use the storage submodule everywhere.
...
make most magic use float instead of double.
2013-12-31 01:06:28 -08:00
Enno Rehling
b4b8c49934
use getters/setters to access unit::race
2013-05-02 03:50:24 +02:00
Enno Rehling
f7edcf589a
update to latest version of the eressea module
...
fixes for bool type
fixes for lua 5.2
fixes for some intermittent tests
2012-07-09 02:51:48 +02:00