summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_feat.cc
Commit message (Collapse)AuthorAgeFilesLines
* Allow tiles to destroy only some items.Stefan O'Rear2009-12-301-3/+2
|
* A start at a dLua spells library.Jude Brown2009-12-251-1/+1
| | | | | | | | | | | Provides wrappers for non-player Toxic Radiance and Ozocubu's Refrigeration. These are basically just an adjustment of kill categories and messages to allow them to be used as background effects in WizLabs (Ozocubu's and Olgreb's). Hopefully a wrapper for monster (and possibly player)-cast bolt structures can also be included, which could then be accessed with the (planned) Lua traps functionality.
* Extend lua feat library for feat_is_door.Jude Brown2009-12-191-0/+2
|
* Remove unnecessary header-header includes.Robert Vollmert2009-11-271-0/+1
|
* New Lua library: feat.Jude Brown2009-11-271-0/+87
Provides wrappers for all of the feat_is_XXX functions from terrain.cc, as well as a few other functions. Also provides a macro which can wrap a function to take: * a set of co-ordinates (parsed with grd(coord_def(x, y))) * a string (parsed with dungeon_feature_by_name) * an integer (cast into dungeon_feature_type, can be fetched from dgn.grid(x, y)) All of the feat library functions can be used in this manner. For example: * feat.is_wall(x, y) * feat.is_wall(dgn.grid(x, y)) * feat.is_wall(7) * feat.is_wall("rock_wall")