Commit Graph

7131 Commits

Author SHA1 Message Date
Enno Rehling 873e6f8086 remove more static curse_type variables 2016-08-29 20:34:30 +01:00
Enno Rehling f47113e9bd eliminate static curse variables (gbdream & more) 2016-08-29 20:31:18 +01:00
Enno Rehling 1a1ec3f363 cleanup: remove static curse_type variables. 2016-08-29 20:12:31 +01:00
Enno Rehling b43ac6ab27 remove static initialization code 2016-08-29 19:52:43 +01:00
Enno Rehling aa998166e4 optimization: the orcish curse is pretty rare, and we are spending a lot of time on processing it.
remove static variables.
2016-08-29 19:44:43 +01:00
Enno Rehling 8ff26eb0e4 optimization: no need to look for a curse if unit has no attribs. 2016-08-29 19:41:21 +01:00
Enno Rehling 40d9ebfa94 reduce code duplication: itemcloak code was copied between NR and CR. 2016-08-29 19:37:47 +01:00
Enno Rehling 5a73fc80d8 telepath_see is a planned, but never realized, feature. delete it. 2016-08-29 18:20:36 +01:00
Enno Rehling 4bc8817056 remove a TODO that was ill-advised. The reason that "resources" is a list is that it's built incrementally. 2016-08-29 18:15:20 +01:00
Enno Rehling ef44a4534e add a test for copying resources message arguments.
my plan is to add a new argument type for arrays of resources with fewer allocations.
2016-08-29 17:31:09 +01:00
Enno Rehling fb2b6495e5 promote spell.test error logging to a tests.c API, use it for item.test 2016-08-29 15:19:17 +01:00
Enno Rehling 2c5063095d fixed: tests that try to create duplicate spells do not spam stderr. 2016-08-29 14:49:31 +01:00
Enno Rehling c032091b39 new rule: call test_setup to begin test, test_cleanup at end. 2016-08-29 14:21:28 +01:00
Enno Rehling 1c5fcded9f allow control over stderr logging from tests.
separate test_cleanup from test_setup.
2016-08-29 14:09:47 +01:00
Enno Rehling 2eb9b5c5ea delete dead code (dbrace) 2016-08-29 13:49:39 +01:00
Enno Rehling fd273848ae add an assert_alloc macro for allocations that cannot fail. 2016-08-29 09:26:49 +01:00
Enno Rehling 1f3413a9b4 annotations 2016-08-29 08:55:59 +01:00
Enno Rehling 0d609f2115 test magicwalls and strongwalls effects on buildings. 2016-08-29 08:53:09 +01:00
Enno Rehling 23a91be9c1 basic test for skilldiff. 2016-08-29 08:06:33 +01:00
Enno Rehling 194f96c50f eliminate some possible null-pointer exceptions 2016-08-28 21:03:23 +01:00
Enno Rehling 5bc5dbdca1 check for out-of-memory situations. 2016-08-28 20:54:02 +01:00
Enno Rehling 33701ab891 make describe_braineater more generic (describe_race). 2016-08-28 20:44:45 +01:00
Enno Rehling c18d75207e remove a TODO: static return variable from make_names. 2016-08-28 20:31:25 +01:00
Enno Rehling e3b0dfedc9 race naming functions do more work than before. 2016-08-28 20:27:40 +01:00
Enno Rehling 514565d66b move race_name_func registrations into race.c 2016-08-28 20:02:45 +01:00
Enno Rehling 0f3de70ced refactor to push back the const-ness of generated names. 2016-08-28 19:06:14 +01:00
Enno Rehling d1b6629281 extract counting name particles. 2016-08-28 19:00:04 +01:00
Enno Rehling 0ac30c65a1 refactoring prior to removing static variable 2016-08-28 18:15:00 +01:00
Enno Rehling eb8db3bfb9 test undead name generation. 2016-08-28 18:08:52 +01:00
Enno Rehling 020ab942ec add tests for monster naming functions (existence only). 2016-08-28 17:37:08 +01:00
Enno Rehling 534708d83e add a test for DESTROY <limit> ROAD 2016-08-28 16:51:16 +01:00
Enno Rehling a451d61f23 simplify destroy_cmd parsing. 2016-08-28 16:48:06 +01:00
Enno Rehling 808d51429e test destroy_road message arguments. 2016-08-28 16:44:14 +01:00
Enno Rehling b0400a797d when not skilled enough to destroy a road, don't get a destroy_road message.
test destroy_road message.
2016-08-28 16:31:29 +01:00
Enno Rehling 1cdeab5e06 test destroy_road skill scaling and person scaling. 2016-08-28 16:13:26 +01:00
Enno Rehling 1e04e20671 testing destroy_road by way of destroy_cmd.
two simple cases only.
2016-08-28 14:31:25 +01:00
Enno Rehling cf96013e0b better volcano message testing. 2016-08-28 14:06:57 +01:00
Enno Rehling 3bc2221bfe finish testing the (current) volcano_dead message. 2016-08-28 10:08:41 +01:00
Enno Rehling 9400a05a87 test that two different volcano_dead messages are sent for units in different regions.
new test_find_messagetype_ex helper.
2016-08-28 10:05:34 +01:00
Enno Rehling b56c48d95c verify arguments for volcanooutbreak message. 2016-08-27 08:29:01 +01:00
Enno Rehling 6d5e295678 activate, fix and improve volcano test.
reduce number of terrain lookups.
2016-08-26 17:26:26 +01:00
Enno Rehling c3119e4c4a oh, I get it. reduceproduction signals that this volcano recently exploded.
added a test for outbreak and message
2016-08-23 07:53:29 +02:00
Enno Rehling 68f619cb90 test that message is sent when volcano stops smoking 2016-08-23 07:46:55 +02:00
Enno Rehling bdc9af9b69 fix intermittent test for dead code path, all new volcanos have reduceproduction attributes 2016-08-23 07:44:17 +02:00
Enno Rehling 61929ab2d2 test that smoking volcanoes stop smoking 2016-08-23 07:38:44 +02:00
Enno Rehling 4bdc9a5153 extract main volcano loop to volcano module, start adding tests 2016-08-22 21:27:24 +02:00
Enno Rehling 5e5882d674 extracting volcano code into a separate module (step one) 2016-08-21 21:21:56 +02:00
Enno Rehling a47b48cfbf Merge pull request #546 from ennorehling/refactor-maintenance
refactoring maintenance
2016-08-21 20:50:51 +02:00
Enno Rehling a42bd9c3bf remove the BLD_WORKING flag.
it's all about BLD_MAINTAINED now.
fix region.blocked (Lua property).
2016-08-21 20:12:28 +02:00
Enno Rehling d3e05c7ddf merge in and fix the economy tests 2016-08-21 20:04:51 +02:00