summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_dgngrd.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove stuffNicholas Feinberg2014-07-291-0/+1
| | | | | | | .cc, moving its contents into the new stepdown.cc and strings.cc. (The latter also got many donations from libutil.h.) Down with stuff! Up the new flesh!
* Work around a Gozag shop generation crash.Steve Melenchuk2014-06-061-1/+7
| | | | | | | | | Lua layouts that use dgn.grid triggered dungeon_terrain_changed, causing the shop marker for the overview screen to be erased when it wrote a tile to (0, 0). This restores the old dgn.grid behaviour specifically for building dungeon levels.
* Be more careful with Lua dgn.grid() (#8646)Neil Moore2014-06-041-1/+1
| | | | | Use dungeon_terrain_changed instead of setting the grid directly. Among other things, this destroys clouds and destroys or pushes items.
* Drop double newlines where they seem to serve no purpose.Adam Borowski2013-12-211-2/+0
| | | | | Sometimes, they're there to emphasize a break between two sections of code, which is good. In a majority of cases, though, they're just inconsistent.
* Allow specifying layout_chaotic_city material type from LuaPete Hurst2013-05-051-5/+6
| | | | Previously this couldn't be done so materials would be random in Dis.
* Use std namespace.Raphael Langella2012-08-261-8/+6
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-7/+7
|
* Make feature renames local to a vault rather than the whole level.Adam Borowski2012-07-051-18/+1
| | | | | | | | For technical reasons (vault_placement), subvaults use renaming data of the top-level vault, this might be changed one day; that'd require a bit more writing but would allow different renames in different subvaults. TODO: "line of fire blocked by XXX".
* Drop the code for set_feature_desc_long().Adam Borowski2012-03-081-34/+0
|
* Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-4/+4
| | | | | | | "File:" is shown in your editor's status bar. "Written by:" was used only for the first person who changed a file. We got git for that now, and pre-DCSS history is so woefully inaccurate it doesn't really matter.
* Consolidate floor covering descriptionsCharles Otto2010-05-221-1/+1
| | | | | | Do the description text for floor coverings (mold, blood) in exactly one place. Add a different description for the 'glowing mold' that shows up when ballistos die.
* Remove libutil.h from AppHdr.h and include explicitly.Robert Vollmert2010-01-201-0/+1
| | | | | | | Also extract unwind_var template to unwind.h. The latter is now included from AppHdr.h, though it needn't really be. This means it's now possible to use coord_def in libutil.h.
* 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