Lua: improve level testing
Add des.finalize_level() used for testing in conjunction with des.reset_level(). Add nhc.DLB to return 0 or 1 if DLB was defined at compile-time. Change the test_lev.lua to give more informative messages instead of just lua error when required file doesn't exist. Add bigrm-11 to the level tests.
This commit is contained in:
10
doc/lua.adoc
10
doc/lua.adoc
@@ -352,6 +352,14 @@ Example:
|
||||
des.feature({ type = "throne", coord = {4, 6}, looted = true });
|
||||
des.feature({ type = "tree", coord = {4, 6}, looted = true, swarm = false });
|
||||
|
||||
=== finalize_level
|
||||
|
||||
Only used for testing purposes. See also <<_reset_level>>.
|
||||
|
||||
Example:
|
||||
|
||||
des.finalize_level();
|
||||
|
||||
=== gold
|
||||
|
||||
Create a pile of gold.
|
||||
@@ -613,7 +621,7 @@ Example:
|
||||
|
||||
=== reset_level
|
||||
|
||||
Only used for testing purposes.
|
||||
Only used for testing purposes. See also <<_finalize_level>>.
|
||||
|
||||
Example:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user