Commit graph

170 commits

Author SHA1 Message Date
Enno Rehling
53b9de957c putting the crit-bit tree to use. finding special region resources is faster this way than doing individual strcmp calls. 2012-05-14 16:36:17 -07:00
Enno Rehling
3a8f682bea remove now-obsolete function 2012-05-14 14:16:56 -07:00
Enno Rehling
53bc4eee11 remove viewrange, because it's not used very much (was used for one quest only)
add my crit-bit implementation. to be used soon.
2012-05-14 14:16:02 -07:00
Enno Rehling
e272a00994 add test for that weird function-lookup module before I refactor it. 2012-05-14 13:09:57 -07:00
Enno Rehling
cf6a52bde7 log an error for missing resources 2012-05-12 15:51:28 -07:00
Enno Rehling
08fc39cca7 deal with invalid border types (wisps are getting deleted from Eressea) and disabled spells (again, wisps). 2012-05-12 13:16:07 -07:00
Enno Rehling
88acf39638 spells that have no function in the xml file get one from an array, cleaning up and simplifying that code. 2012-05-09 23:22:54 -07:00
Enno Rehling
12c03644c4 u_hasspell only needs a mage, not a unit 2012-05-09 20:30:26 -07:00
Enno Rehling
882ac9e8e9 pick the correct target region for spells cast by familiars. 2012-05-09 20:23:00 -07:00
Enno Rehling
ee7a35f293 new_castorder is history 2012-05-09 18:42:20 -07:00
Enno Rehling
67ef4c52a3 combat spell functions have the same interface as spells now. 2012-05-09 18:28:33 -07:00
Enno Rehling
06e0d2b3b6 cleaning up castorder, unifying access to target region and caster. 2012-05-09 14:16:41 -07:00
Enno Rehling
02559f6869 refactoring castorder, because it's a bit of a mess of units, fighters, familliars and casters. 2012-05-09 13:46:10 -07:00
Enno Rehling
6dcf6669c3 get_spellfromtoken takes a mage
clarify this code with regards to mages casting through a familiar
2012-05-09 13:18:02 -07:00
Enno Rehling
c10e2552ad get_spellfromtoken needs a mage, not any unit. 2012-05-09 13:06:16 -07:00
Enno Rehling
c41d185cd6 some cleanup 2012-05-09 13:02:08 -07:00
Enno Rehling
c22f49ec36 replace spellid_t with unsigned int
fix finding spells by token
make magic_t an enum
2012-05-09 03:14:54 -07:00
Enno Rehling
ae31948dc5 fix a crash when wolves are cast with too little force 2012-04-16 06:56:44 +02:00
Enno Rehling
80a907d78f repair units that are toads without a time-limit. 2012-04-07 18:11:58 -07:00
Enno Rehling
63799d823d hack to ignore otherfaction attributes if faction stealth is not allowed. 2012-03-04 19:29:32 -08:00
Enno Rehling
52013f0e7c faction stealth is only selectively enabled in E3 2012-03-04 19:21:00 -08:00
Enno Rehling
9640ac19b3 dragon names always contained 2 spaces after the article
http://bugs.eressea.de/view.php?id=1884
2012-03-04 16:42:19 -08:00
Enno Rehling
f7afab976a Merge branch 'master' of gitorious.org:eressea/server 2011-10-28 23:57:30 -07:00
Enno Rehling
e6c094922c update to sqllite 3.7.8 2011-10-28 23:53:28 -07:00
Enno Rehling
d55d62278e fx an off-by-one memcpy error 2011-08-28 06:51:21 +02:00
Enno Rehling
edfa266a32 Fix a crash in turn 733: alps sometimes have weird messages (also, unitmessage is dumb) 2011-08-06 13:56:46 -07:00
Enno Rehling
21b8ab2d31 be nice to your friends, but not your enemies 2011-06-05 12:21:49 -07:00
Enno Rehling
cc870c076c http://bugs.eressea.de/view.php?id=1855
fixing delayed-action potions.
2011-06-04 11:19:44 -07:00
Enno Rehling
bc48f3c29e Merge branch 'master' of gitorious.org:eressea/server 2011-06-04 18:37:27 +02:00
Enno Rehling
2aa3acf56a do not crash when terraforming land regions with road in them (oceans cannot have roads) 2011-06-04 18:37:02 +02:00
Enno Rehling
d4310b1b51 bad magic resistance zone implemented.
this fixes http://bugs.eressea.de/view.php?id=1854
2011-05-15 15:01:09 -07:00
Enno Rehling
58208e0db5 Improve sailing messages to include the region.
http://bugs.eressea.de/view.php?id=1729
2011-05-02 23:34:35 -07:00
Enno Rehling
a2816f1528 fix_familiars had a bug caused by quicklist 2011-05-02 23:27:39 -07:00
Enno Rehling
817f396467 http://bugs.eressea.de/view.php?id=1844
Only use potions that we have the resources for.
2011-04-29 22:49:29 -07:00
Enno Rehling
17d339b196 http://bugs.eressea.de/view.php?id=1851 spy messages have too many arguments 2011-04-29 21:50:12 -07:00
Enno Rehling
3abcbb4717 eliminated region_list use from wormholes
fixed a small memory leak
2011-04-26 21:31:41 -07:00
Enno Rehling
f00f537336 eliminated region_list use from get_island_info 2011-04-26 21:25:47 -07:00
Enno Rehling
6798c497f8 eliminated region_list use from get_island 2011-04-26 21:22:30 -07:00
Enno Rehling
c4cc06a80f get_regions_distance converted to quicklist 2011-04-25 22:30:54 -07:00
Enno Rehling
dbd338c284 eliminate region_list usage from the monster pathfinder 2011-04-25 22:20:01 -07:00
Enno Rehling
9802eecd79 code prettyfication 2011-04-24 16:18:01 -07:00
Enno Rehling
ec9e7bf833 new lighthouse behavior as described in http://bugs.eressea.de/view.php?id=1847 2011-04-24 12:19:34 -07:00
Enno Rehling
28a1e8d3cc E3 rule for dwarf castles should not be default. 2011-04-24 11:42:19 -07:00
Enno Rehling
e7ab2b46ad do not assert on rich units, warn instead 2011-03-27 21:05:22 +02:00
Enno Rehling
813d75f820 fixing spy messages (wrong arguments cause crash). 2011-03-19 11:06:03 -07:00
Enno Rehling
36b58cca6e test that fighters get created properly.
better test initialization code.
2011-03-15 21:04:38 -07:00
Enno Rehling
8d497e4b50 change the way the market tests are included. 2011-03-15 20:00:54 -07:00
Enno Rehling
3493c651f7 test that attackers do not get a building bonus 2011-03-12 17:54:57 -08:00
Enno Rehling
89b3b3161f Add a test for the effect of buildings in battles, and a file to test pieces of the combat code from C in the future.
Add some testing support for terrains and buildings.
2011-03-12 17:01:20 -08:00
Enno Rehling
31edf06d05 just a bit of typecasting 2011-03-12 17:00:16 -08:00