Commit Graph

20 Commits

Author SHA1 Message Date
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 6417f55ec6 specify levels with magic attacks (step one to removing spell->level) 2012-05-24 10:24:37 -07:00
Enno Rehling ff33af3c65 ship and building owners encapsulated in accessors
tests added
2012-05-17 15:23:15 -07:00
Enno Rehling d12fe2dbed begin making shipowner use ship->owner.
fix a broken test caused by locale_string returning null.
2012-05-17 00:13:30 -07:00
Enno Rehling ecbe770fce rename _log_error to log_error and get rid of the cumbersome #define 2012-05-16 16:52:01 -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 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 c10e2552ad get_spellfromtoken needs a mage, not any unit. 2012-05-09 13:06:16 -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 496aa22e65 fixes for -ansi -pedantic 2011-03-07 17:29:19 +01:00
Enno Rehling 9c8779b303 indentation rules, slightly updated 2011-03-07 08:24:52 +01:00
Enno Rehling fb7a642d47 indentation rules, strictly applied 2011-03-07 08:02:35 +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 665d4aec4d Test framework broken, we were adding the wrong spell with the right name. 2011-02-26 10:07:49 -08:00
Enno Rehling b2d6203cec 1. spell_list was pretty much used everywhere in the code, and is now also a quicklist.
2. Cleaned up the bindings for quicklist to Lua.
2011-02-26 00:26:14 -08:00
Enno Rehling 0c2ccf2d20 We do not require unit_list, quicklists are the future. 2011-02-23 23:26:15 -08:00
Enno Rehling beec74e0c6 Clearing every mage's spell-list before each turn is counter-productive. It destroys tests, and it doesn't let us have special spells added per-unit. 2010-08-08 23:39:21 -07:00
Enno Rehling a5e712580f undo more CRLF screwups. 2010-08-08 01:14:01 -07:00
Enno Rehling 14b3ed309f use external folder for all libraries (VS2010)
new repository structure
2010-08-07 23:05:54 -07:00
Enno Rehling 72505ab8f3 moving to a new repository layout.
step 1: shared folder.
2010-08-07 22:07:17 -07:00