Enno Rehling
9d1b62d463
updating spell-lists is a thing of the past now
...
almost everything uses books, except sc_mage
2012-05-26 00:33:55 -07:00
Enno Rehling
c73297ba44
fix an indexing error in pick_random_spell
2012-05-25 23:47:24 -07:00
Enno Rehling
6482b748c8
remove leveled resources from fixed-level spells
2012-05-25 23:32:03 -07:00
Enno Rehling
6ffe9cac33
these spells are only in the E2 and E3 source
2012-05-25 23:31:37 -07:00
Enno Rehling
bc95ea80fb
espionage messages will now report spellbooks
2012-05-25 23:01:21 -07:00
Enno Rehling
303dd7cc94
creport will now print spellbooks
2012-05-25 22:54:18 -07:00
Enno Rehling
faa72b66b1
untangle the spaghetti a little bit
...
struct spell is now in spell.h where it belongs
some functions have moved as a result
2012-05-25 22:25:23 -07:00
Enno Rehling
8a4c71f430
unit_add_spell gets a level
...
added two tests that fail for get_spellfromtoken if spell is not stored with the unit
2012-05-25 21:49:15 -07:00
Enno Rehling
a015d72add
unit_add_spell gets a level
...
added a test that fails for get_spellfromtoken if spell is not stored with the unit
2012-05-25 21:07:26 -07:00
Enno Rehling
d58e853074
allow setting a faction's magic school from Lua
2012-05-25 20:15:57 -07:00
Enno Rehling
749d71f86d
testing spells in the example server also
...
WIP: create_roi is broken until mages have spellbooks
2012-05-25 19:55:47 -07:00
Enno Rehling
24cba1bea7
testing spells in the example server also
...
WIP: create_roi is broken until mages have spellbooks
2012-05-25 19:55:47 -07:00
Enno Rehling
2bbcfa7e0c
test this spell
2012-05-25 19:55:03 -07:00
Enno Rehling
071f67ea7c
use the reportpath from the config file, do not build your own
2012-05-25 18:50:14 -07:00
Enno Rehling
fc259d232b
fix spellbook entries in at_reportspell (crash)
2012-05-25 18:30:18 -07:00
Enno Rehling
58cbc3ccbc
add some tests for pools, because I found a bug here and we don't want to have that happen again.
2012-05-25 16:15:21 -07:00
Enno Rehling
3b05e2e09e
fix compilation on ubuntu
2012-05-25 15:40:03 -07:00
Enno Rehling
fef92e4971
added more test for pay_spell so I don't break it.
2012-05-25 15:38:24 -07:00
Enno Rehling
88db0a8df7
change_resource did not return new value for some types
2012-05-25 15:35:11 -07:00
Enno Rehling
ae9f12c904
added a test for pay_spell so I don't break it.
2012-05-25 12:46:00 -07:00
Enno Rehling
f5b35a9a2b
equipment sets that include spells now have levels on them and store in a spellbook.
...
add some tests for equipment.
2012-05-25 00:45:12 -07:00
Enno Rehling
8ecda7b203
factions have spellbooks and the read/write function for spellbooks is now accessible from other places (we'll need this for units)
2012-05-24 22:26:05 -07:00
Enno Rehling
707349d014
at_reportspell is now a message about a spellbook-entry, not just a spell
2012-05-24 22:10:18 -07:00
Enno Rehling
6cb4322c1d
rename: spellbook_clear is more accurate
2012-05-24 21:57:23 -07:00
Enno Rehling
b8d8bac9ae
fix trying to add to null-spellbook.
...
all unit tests pass.
2012-05-24 20:35:13 -07:00
Enno Rehling
fdbc7605c5
finally convert this to visual studio 2010
2012-05-24 15:37:33 -07:00
Enno Rehling
6417f55ec6
specify levels with magic attacks (step one to removing spell->level)
2012-05-24 10:24:37 -07:00
Enno Rehling
c3cd519152
specify levels with magic attacks (step one to removing spell->level)
2012-05-24 01:45:13 -07:00
Enno Rehling
3514218dba
factions have working spellbooks
...
update of spellbooks for E3 should be functional
old data file is getting read, and levels guessed?
2012-05-24 00:56:54 -07:00
Enno Rehling
42a0fae762
fix spellbook data for example server
...
remove duplicate spells
2012-05-23 22:24:31 -07:00
Enno Rehling
5ddb77274a
fix spellbook data for example server
...
remove duplicate spells
2012-05-23 22:24:31 -07:00
Enno Rehling
1296e45109
fix spellbook data for E2 and E3
2012-05-23 22:24:00 -07:00
Enno Rehling
f2598e8bdc
comparisons to boolean constants are dumb.
2012-05-23 22:23:32 -07:00
Enno Rehling
d4d39b43e9
add xml spellbooks for the magic schools in E2 and E3
...
this is being read, but not used by the code yet.
2012-05-23 21:50:59 -07:00
Enno Rehling
9c7d2097a5
add xml spellbooks for the six magic schools
...
this is being read, but not used by the code yet.
2012-05-23 21:50:17 -07:00
Enno Rehling
9b3234a067
fix the xmlreader to not assert on invalid data
2012-05-23 21:06:19 -07:00
Enno Rehling
92e96689bb
spellbooks fully operational (and could be loaded from XML definitions if I had them)
...
fixed the cleanup between tests to properly free locales
2012-05-23 20:22:12 -07:00
Enno Rehling
f45a494277
new datafile version: spell names are now unique (or will be soon), and writing the magic school with each is irrelevant.
2012-05-23 15:19:40 -07:00
Enno Rehling
1de726a5b5
add an option to make SQLITE using the library installed on your system (fixed)
2012-05-23 22:55:03 +02:00
Enno Rehling
0151b2d27b
Merge branch 'master' of gitorious.org:eressea/server
2012-05-23 22:52:21 +02:00
Enno Rehling
fa2d31cb9e
add an option to make SQLITE using the library installed on your system
2012-05-23 22:51:52 +02:00
Enno Rehling
db7ed24b3e
adding spellbooks.
...
spellbooks will take the level and magic school out of the spell definitions, and aggregate a list of spells with their minimum levels for learning from. factions will have a list of books they can learn from (different in E2 and E3 already).
2012-05-23 12:42:14 -07:00
Enno Rehling
eea6bdb888
comparison to boolean values is bad form.
2012-05-23 00:09:19 -07:00
Enno Rehling
22ccb5cf95
Merge branch 'master' of gitorious.org:eressea/server
2012-05-22 22:01:57 -07:00
Enno Rehling
56083b1fcf
fixing something. findresourcetype, I think?
2012-05-22 22:01:48 -07:00
Enno Rehling
f2643e79b6
fix find_spell and create_spell to only create each spell once.
...
kill register_spell
make some critbit changes (need to transfer them upstream)
2012-05-22 18:44:54 -07:00
Enno Rehling
31e4a8432b
fix find_spell and create_spell to only create each spell once.
...
kill register_spell
make some critbit changes (need to transfer them upstream)
2012-05-22 18:44:54 -07:00
Enno Rehling
e2a6bbbb72
better command line parsing
...
fix compilation problem
2012-05-22 14:53:46 -07:00
Enno Rehling
1672637b17
better command line parsing
...
fix compilation problem
2012-05-22 14:53:46 -07:00
Enno Rehling
2872dfa772
Added a test that fails for Bug 1909 (findresourcetype is borken)
2012-05-21 21:39:18 -07:00