summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_dgngrd.cc
Commit message (Collapse)AuthorAgeFilesLines
* Trim unnecessary #includes.Adam Borowski2010-01-131-1/+0
|
* New Lua library: feat.Jude Brown2009-11-271-13/+2
| | | | | | | | | | | | | | | | | | | 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")
* set_feature_quote, complement to set_feature_desc_long/short.Jude Brown2009-11-151-0/+17
|
* Allow portal vaults to specify fill and border glyph.Jude Brown2009-11-141-93/+0
| | | | | | | | | | | | | Also move dungeon_feature_by_name into terrain.cc, as it does not make sense it being in l_dgngrd.cc. The Lua function "set_border_fill_type(feature)" will replace the default DNGN_ROCK_WALL fill of a portal vault with the specified feature. This could be abused, and should probably only be limited to floor, water and sea, different types of walls, trees and lava; there are no sanity checks for endless traps, statues, stairs, etc. Finally, apply this to the island Trove, giving endless water effect.
* seen_replace_feat(): replace one feat with anotherMatthew Cline2009-11-131-0/+11
| | | | | Replacement for replace_area_wrapper, and a lua accessor for the function. Returns true if the player saw the feature being changed.
* Rename FeawnCharles Otto2009-11-081-1/+1
| | | | | In most places Feawn is now referred to as "Fedhas," its long name (used in the religion screen) is "Fedhas Madash"
* Remove trailing whitespace.David Lawrence Ramsey2009-11-061-2/+2
|
* Ensure that, if Jiyva is dead, no Jiyva altars can be placed in vaults.David Lawrence Ramsey2009-11-061-1/+9
|
* Get rid of multiple-meaning "int object" in env.show.Robert Vollmert2009-11-041-2/+2
| | | | | | | | | | | | | env.show is now a class show_def that stores tagged unions of type show_type. For the moment, there's also env.show_los for use in LOS determination, but that should become an array of boolean at some point. This breaks save compatibility. Tiles and console version build and appear to work fine, but this kind of change is likely to have some side-effects.
* Restore lua binding for in_bounds.Robert Vollmert2009-11-031-0/+10
| | | | It's now in the more fitting l_dgngrd.cc.
* Lua distance bindings, Volcano tweaks, FogMachine message tweaks.Jude Brown2009-11-011-0/+9
| | | | | | | | | | New binding for coord.cc's distance functions (dgn.distance(x1, y1, x2, y2)), lua function "point_in_radius", accepts two dgn.point functions and a radius and returns true if point1 is in radius around point2. Extensive tweaks to FogMachine warning messages: most now accept a "see function" as the final parameter, which should take two parameters: an x and a y. The function should return true if the player can "see" this point. Finally, tweaks to Volcanoes: utilise see_function and dgn.point_in_radius to provide better warning for lake. Utilise greensnark's new slave/master system for chaining FogMachines together in Bunker and Village. Signed-off-by: Darshan Shaligram <dshaligram@users.sourceforge.net>
* Splitting up stuff.cc.Robert Vollmert2009-10-301-1/+2
| | | | New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
* Rename Chronos to Cheibriados. (Jude Brown)David Ploog2009-10-231-1/+1
|
* Allow vaults to place altars of Chronos.David Ploog2009-10-221-1/+1
|
* Move more macros and functions to cluautil.cc.Robert Vollmert2009-10-211-1/+2
|
* Move utility functions from clua.cc to cluautil.cc.Robert Vollmert2009-10-211-0/+1
| | | | | | | | cluautil.cc should eventually contain all of the functions for passing objects from and to lua, at least the shared ones. Also cut down on clua.cc include list.
* cosmetic: strip trailing whitespaceSteven Noonan2009-10-201-15/+15
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Move clua crawl_lib from clua to l_crawl.cc.Robert Vollmert2009-10-201-1/+1
| | | | To avoid name clashes, rename dlua libs from *_lib to *_dlib.
* Split out grid and feature-related bindings.Robert Vollmert2009-10-201-0/+245