summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-labyrinth.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove 2 more parameters from items()reaverb2014-08-081-1/+1
| | | | | They were only used in one place, and the relevant code was moved to that one place in the previous commit.
* Let BLOOD finally have its place in the sunNicholas Feinberg2014-07-011-1/+1
| | | | | | ...by moving bloodspatter functions into their own file. Death to misc.cc! Long live the new file hierarchy!
* Revert "Make random_choose_weighted() end on -1 weight"reaverb2014-06-101-1/+1
| | | | | | | This reverts commit 7e81480cda18144ff185f5248639a072b654deff. Turns out I missed some calls to random_choose_weighted(), this change might not even be worth doing.
* Make random_choose_weighted() end on -1 weightreaverb2014-06-101-1/+1
| | | | For consistency with random_choose().
* Don't generate racial armourChris Oelmueller2014-03-061-2/+1
| | | | | | | | [It had much the same problems as racial weapons, with only very slightly more significant effects. Some of the old effects of racial armour could potentially be rethought and made into a new armour ego. Beogh still gives a (slightly smaller than before) bonus for armour use, without the orcish requirement. -MarvinPA]
* Fix Lab loot not being placed.Adam Borowski2014-01-201-1/+1
|
* Make portal entrances and exits proper features on their own.Adam Borowski2013-12-181-2/+2
| | | | | Overloading made it impossible to redefine them, assign colours, made it hard to do stuff on C++ side, and stank of elderberries.
* Also drop the "minotaur" and "lab" tags.Steve Melenchuk2013-11-291-2/+3
| | | | | The primary vault in Lab is now the minotaur vault; minivaults in Lab are now taken from minivaults in-depth for Lab.
* Don't allocate pointless iterators.Adam Borowski2013-11-151-1/+1
| | | | | map or set.count() can test the presence of a given key and return 0 or 1 outright.
* Drop a lot of superfluous parentheses.Adam Borowski2013-10-241-1/+1
| | | | | These can be really confusing, especially if there are operators of different priorities, or multiple levels of parentheses, nearby.
* Correct missing #include "foo.h" from foo.ccSamuel Bronson2013-04-061-0/+2
| | | | (Also had to fix a prototype in ctest.h)
* Indentation fixes.Adam Borowski2012-12-051-1/+1
|
* Get rid of several C_SQUARE uses.Adam Borowski2012-11-181-1/+1
| | | | | | | An absolute majority of CPU use in about every test is wasted by radius_iterator and circle_def, which implement both Chebyshev and normal metrics as calls deep inside tight loops. Untangling them is a massive work, so I'm chipping at it by a little from time to time.
* Remove unnecessary includes from header files.Jay3.14152012-10-231-0/+1
| | | | | | | | | | For most header files, this only saves on having to recompile a small number of source files, but there are also a few headers where small changes would now take significantly less time. This is most obvious for the Tiles build for which the dependencies have been greatly reduced, so that the only additional includes when compared to console are strictly library or tile related.
* Use std namespace.Raphael Langella2012-08-261-6/+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-14/+14
|
* Make staves and rods separate object classes.Adam Borowski2012-06-121-1/+2
| | | | | | | | | | | | They have about no overlap, more than both being usable as weapons. A vast majority of uses immediately checked item_is_rod()/item_is_staff(). I kept them shared for acquirement, for now. Also, eliminate rods of smiting -- hardly ever used, problematic theme-wise as they use "divine providence" without worship. Keeping rods of striking for now, could be used to fix artificer problems. Adding/removing rod enums is a mess due to tile handling, renaming ROD_SMITING to ROD_LIGHTNING for now.
* Change 'clobber' to 'check_collision' in _build_secondary_vault and things ↵Vsevolod Kozlov2012-05-241-2/+2
| | | | | | that call it. To make it consistent with the functions called by it.
* Merge branch 'master' into portal_branchesAdam Borowski2012-04-121-1/+2
|\
| * New blood splat tiles (omndra #4612).Raphael Langella2012-04-021-1/+2
| | | | | | | | | | | | | | | | | | Improved colouring and transparency. Consistency with corpse blood colour. More variety of shapes. Some wall bloods have inscriptions. Those ones will only be used on level generation and only on south facing walls, because rotated inscriptions are not so hot. And they are rare.
* | Merge branch 'master' into portal_branchesAdam Borowski2012-02-201-1/+0
|\|
| * Eliminate an almost empty file.Adam Borowski2012-01-031-1/+0
| |
* | Cache absdepth0, now that it has to be calculated.Adam Borowski2012-01-031-2/+1
| | | | | | | | | | The cached value intentionally is stored in env.absdepth0 rather than you.absdepth0 to catch attempts to modify it.
* | Use branch depth rather than absolute depth as the authoritative one.Adam Borowski2012-01-031-1/+2
| |
* | Don't explicitely pass absdepth:branch in the dungeon builder.Adam Borowski2012-01-031-3/+3
|/ | | | | There's no support for producing maps for a level you're not on, around half of functions assumed this.
* Remove no longer necessary casts after random_choose().Adam Borowski2011-10-311-4/+3
|
* Split the labyrinth level builder into dgn-labyrinth.cc.Vsevolod Kozlov2011-06-251-0/+554
The rationale is still that this code is pretty isolated, and that dungeon.cc is better when shorter.