| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
entrances could be blocked by rock.
shoal-hut.lua test generates 1k Shoal:$ levels and verifies that the levels pass sanity tests.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The first (point_iterator) accepts a table of points (such as the ones
return by dgn.find_marker_positions_by_prop, or any other function which
returns points) and is filterable and stateful.
The second is a quick wrapper over dgn.find_marker_positions_by_prop.
Tweaked rectangle_iterator to supply an "rvi" (return value instead)
which will store the value of the filter instead of expecting the filter
to return a true or false value. Setting this to false will behave as
before; setting it to true allows us to have the filter alter the point
(mons_at, items_at, marker_at_pos, etc).
|
|
|
|
|
|
|
|
| |
Vaults can now include other vaults as a part of their definition. These
subvaults are currently included by tag only and replace glyphs in their
parent vault. See documentation for more details.
Vault:8 has been modified to use subvaults.
|
|
|
|
|
| |
Typo in the variable name ("y" instead of "_y") meant that the center
was always being included, even if it was specifically excluded.
|
|
|
|
|
|
| |
The first will return the first item whose name matches the search term
in the relevant stack, while the second will destroy each item in the
stack. Hopefully the precautions in stack_destroy will be enough.
|
| |
|
|
|
|
|
|
| |
LOS and adjacent iterators were only working if include_center was set
to true; setting it to false (or nil) results in no points being
returned.
|
|
Currently only includes:
rectangle_iterator: iterates points between two corners.
los_iterator: iterates over currently visible points in LOS.
adjacent_iterator: iterates over adjacent points to the center.
Most iterators accept a "filter" parameter that is a function which
should either return true if the point is acceptable for the iteration,
or false if it is not.
los_iterator is currently restricted to player LOS rather than actor or
monster LOS, but could be expanded at a later date.
All of the iterators seem to work as intended: hopefully I haven't made
too many mistakes with them.
|