Pasi Kallinen
52a15daaf6
Tests: Wishing for sprig of wolfsbane etc
2020-04-21 20:00:26 +03:00
Pasi Kallinen
28c3478ae6
Add test for selection.iterate
2020-04-13 20:29:06 +03:00
Pasi Kallinen
d78dcdcb9b
Allow matching any wall map terrain in lua scripts
...
When matching a terrain, allow using a "w" placeholder that matches
any solid wall:
For example:
local s = selection.match([[w.w]]);
would match all floor locations with a wall to the left and right of it.
The walls can be solid stone, horizontal, vertical, etc.
This applies to selection.match(), selection.filter_mapchar(), and
des.replace_terrain()
2020-04-13 20:00:34 +03:00
Pasi Kallinen
596ba4bb8a
Fix des tests
2020-03-21 14:03:03 +02:00
Pasi Kallinen
2fc9c02f88
lua special level feature flags
...
Allow des.feature() to set rm flags for the special features.
2020-03-06 20:30:15 +02:00
Pasi Kallinen
54ca0c2211
Lua tests for map and room contents
2020-03-04 22:07:10 +02:00
Pasi Kallinen
c9b21e36a7
Add lua selection match method
...
Also improve the replace_terrain command parameters.
2020-03-02 16:17:53 +02:00
Pasi Kallinen
297863d4bc
Fix room tests
2020-03-01 10:28:19 +02:00
Pasi Kallinen
22528d31f5
Allow coord in place of x and y in special level lua script
2020-02-28 22:14:36 +02:00
Pasi Kallinen
816079c8dd
Lua: accept different params for gold function
2020-02-26 17:57:47 +02:00
Pasi Kallinen
dc70132da8
Change lua selection floodfill and add some tests
2020-02-22 18:35:41 +02:00
Pasi Kallinen
fe3dae85d5
Make lua selection filter_mapchar create a new selection
2020-02-22 17:51:29 +02:00
Pasi Kallinen
50eaf95c27
Make lua selection grow create a new selection
2020-02-22 16:58:45 +02:00
Pasi Kallinen
6648ecfe04
Make lua selection randline create a new selection
2020-02-22 16:34:50 +02:00
Pasi Kallinen
b3f337bdf6
Make lua selection rect and fillrect create a new selection
2020-02-22 15:23:30 +02:00
Pasi Kallinen
44f7d44e94
Make lua selection line create a new selection
...
... instead of modifying the one given as a parameter.
Also add some tests for it.
2020-02-22 14:23:36 +02:00
Pasi Kallinen
00a32c6039
Make lua selection percent filter create a new selection
...
... instead of modifying the one given as a parameter.
Also add some tests for it.
2020-02-22 13:31:47 +02:00
Pasi Kallinen
42a05e9595
Make lua selection boolean opers create a new selection
...
... instead of modifying one of the given selections.
Also add tests for the operations.
2020-02-22 12:17:03 +02:00
Pasi Kallinen
e8ee044468
Make lua selection negate return a new selection
...
... instead of modifying the one given as a parameter.
Also add tests for it.
2020-02-22 12:17:03 +02:00
Pasi Kallinen
7e07cef197
Lua struct obj improvements
...
If the core frees the obj struct referred by lua, don't free it,
just mark it as OBJ_LUAFREE - lua will free it in gc once all
the references to it are gone.
2020-01-01 13:25:59 +02:00
Pasi Kallinen
b24f4c5929
Expose traps to lua
2019-12-15 18:16:41 +02:00
Pasi Kallinen
1d9ba3e212
Expose objects array to lua
2019-12-12 13:39:20 +02:00
Pasi Kallinen
027024d27f
More wish parser tests
2019-12-12 07:58:06 +02:00
Pasi Kallinen
7043e2134a
Lua NetHack obj bindings
2019-12-11 20:10:59 +02:00
nhmall
ea17a00310
add some additional pluralization tests, order alphabetically to ease adds
2019-11-18 15:37:27 -05:00
Pasi Kallinen
6f5a50a538
Move and remove test files
2019-11-07 19:32:36 +02:00