Commit Graph

57 Commits

Author SHA1 Message Date
Enno Rehling 5f5b4a3947 there is an old version of tolua on gelbbaer that doesn't do comparisons of
user types. ugh.
2012-06-30 20:29:42 +02:00
Enno Rehling 59665de7ba binding GUARD to lua 2012-06-17 23:13:58 -07:00
Enno Rehling 64a91a75a1 bind regeneration (of health and aura) to Lua 2012-06-17 22:31:30 -07:00
Enno Rehling e579210fec kill the eventbus, it was never used 2012-06-17 18:52:51 -07:00
Enno Rehling 1298684fd9 bind GIVE CONTROL to lua 2012-06-17 17:55:46 -07:00
Enno Rehling 648de4d36c Binding CAST, ENTER, CONTACT to Lua 2012-06-17 17:24:23 -07:00
Enno Rehling 573d4c3e97 binding HELP to Lua 2012-06-17 15:55:23 -07:00
Enno Rehling d02857ebb9 binding COMBATSPELL to Lua 2012-06-17 12:51:48 -07:00
Enno Rehling 9124fe2c6d added promote, renumber, restack to eressea.process interface
fixed a test that relied on no random skill progress
2012-06-16 23:31:25 -07:00
Enno Rehling a662f88868 kill the RESTART order
make more parts of process_order their own function
started writing process_order in Lua, to see how far I've gotten
fix a bug in the logging library
2012-06-16 22:38:44 -07:00
Enno Rehling c98612f44e adding battle and siege to the eressea.process module 2012-06-16 19:14:23 -07:00
Enno Rehling 483615c458 bindings for LEAVE command 2012-06-13 23:28:56 -07:00
Enno Rehling d38c5f5cfb fix production of items in produce()
add use, move and study/teach to bindings
2012-06-12 22:36:29 -07:00
Enno Rehling 6aa08b60fd more process-related bindings and tests 2012-06-10 05:28:19 -07:00
Enno Rehling dafb2fc2ab adding a lot of test coverage
extending the binding generation to more processing functions
2012-06-07 09:47:02 -07:00
Enno Rehling 8b3d735e8c Begin of massive changes to the Lua API.
Everything will live in a single eressea module now, and the global
namespace will no longer be polluted by all kinds of modules and
functions.
Also new: Bindings will be generated by tolua from .pkg files,
starting with settings, eressea (read/write/free_game) and process in
this commit.
2012-06-06 19:29:36 -07:00
Enno Rehling 8327db65b8 I have a slightly broken version of tolua installed which doesn't compare
user types. Working around that bug by comparing integers instead. Sigh.
2012-06-09 09:18:17 +02:00
Steffen Mecke 9d58f65404 fixed bug #1875: demons use their own peasantblood before other unit's 2012-06-09 00:13:13 +02:00
Gerd Wellenreuther 74ddb1f881 Bugfix 1922 entering of RF_BLOCKED regions with ships 2012-06-07 21:06:14 +02:00
Enno Rehling 2bf3c840ae beware: new directory layout, new server 2012-06-05 07:36:05 -07:00
Enno Rehling a6785c6b7b have the bson-attrib tests all in one place so we can choose not to use them 2012-06-05 05:14:24 +02:00
Enno Rehling 3e67e7fb4e Lua unit:cast_spell should only cast spells the unit knows.
do not allow payment for spells cast at level <= 0
2012-05-29 20:58:33 -07:00
Enno Rehling 44e5c60c96 test added: when a spell is not found, we do not have to pay for it 2012-05-29 20:44:25 -07:00
Enno Rehling cb0e406733 repair lua spells (bad stack index)
add a whole bunch more spell tests
allow spell tests to disable fumbles
2012-05-29 18:45:50 -07:00
Enno Rehling 62a91f4558 kill tybied in E3, make common spells the source for random choices 2012-05-26 14:19:35 -07:00
Enno Rehling 5547893be7 fix create_roi function in E3 2012-05-26 10:16:39 -07:00
Enno Rehling d58e853074 allow setting a faction's magic school from Lua 2012-05-25 20:15:57 -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 071f67ea7c use the reportpath from the config file, do not build your own 2012-05-25 18:50:14 -07:00
Enno Rehling bcd6991703 testing spells is a lot easier when you can disable fumbles
all tun_tests tests pass
2012-05-19 18:50:28 -07:00
Enno Rehling 3fa4a31d14 trying to figure out why some run_tests tests are not working 2012-05-20 03:21:38 +02: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 ff51fe6493 added meropis buildings
also fixed a bug that prevented tests with ATTACKs to be executed properly (NewbieImmunity)
2011-03-09 14:49:43 +01:00
Enno Rehling e01c6bb8b1 make merge request sing with Eressea
added a missing file (move_test.c)
changing the way tests are included
making some lua code prettier (too many parens)
2011-03-08 21:06:38 -08:00
Enno Rehling 8714957a61 fixed two bugs: harbours were not unique and multiple instances of unique buildings could still be built 2011-03-09 00:28:37 +01:00
Enno Rehling 1be42e9d50 Make all tests for Eressea pass again, using the config module. 2011-03-06 21:49:01 -08:00
Enno Rehling 8c42643528 added Atlantis ship types 2011-03-06 12:43:18 +01:00
Enno Rehling b0f1445d68 removed all unused items 2011-03-04 20:44:30 +01:00
Enno Rehling 2e547d6ae8 put spoils code into the open source parts of the code.
reduce number of races in Meropis
2011-02-27 00:36:38 -08:00
Enno Rehling 59f3ebef68 fix some tests 2011-02-27 08:51:17 +01:00
Enno Rehling cc9e95a2ab spells.lua is a bad file for example and meropis, it tests things that not every game has.
lua_pushinteger() must be new, I've never used it before.
all tests in meropis and example pass.
2011-02-26 23:21:12 -08:00
Enno Rehling c810b72845 Some test requires that a cart exists.
Meropis gets its own list of items.
2011-02-26 22:57:42 -08:00
Enno Rehling e8d00d8744 test error conditions fixed by the last commit. 2011-02-19 06:15:15 -08:00
Enno Rehling d033e7156c Simple tests for persistent attributes and a fix. 2011-02-19 06:13:24 -08:00
Enno Rehling b07f40c02e test the bson functionality, and provide examples for using it 2011-02-06 08:41:14 +01:00
Enno Rehling d3a7d22253 http://bugs.eressea.de/view.php?id=1679
Applying a patch provided by Solthar: Server will give error when unit is given more than one long order.
I just added a test to this.
2010-11-11 20:11:19 -08:00
Enno Rehling e7ce28a258 http://bugs.eressea.de/view.php?id=1814
fix a quoting bug in the order parser,
add a very basic test to make sure order parsing works.
2010-11-05 22:54:29 -07:00
Enno Rehling 12828f0edd for planes that have no name, do not print a comma after the coordinates (this has irritated me in E3).
also: add tests for this, and add a way to assert on content in reports.
2010-11-05 21:21:49 -07:00
Enno Rehling 0472c35647 * clean up the test setup
* test horses, carts and their capacities
2010-10-31 23:31:56 -07:00
Enno Rehling c5418fc28b E3 does not have a boat, so tests needs to create a canoe sometimes 2010-10-31 19:46:08 -07:00