summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_dgnmon.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!
* The great mon-stuff migration.Shmuale Mark2014-06-221-1/+1
| | | | | | | | | A good deal of functions move to the two new files, mon-poly and mon-message. Of the others, some go to where they are used, some to mon-util, and a few are made member methods of monster. This probably breaks Xcode compilation, and I'm not able to test the changes I made to MSVC that will (hopefully) keep it working.
* Formatting fixes (add braces).Neil Moore2014-05-121-0/+6
| | | | This fixes all the instances caught by unbrace.
* Drop double newlines where they seem to serve no purpose.Adam Borowski2013-12-211-1/+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.
* Don't recompile world when random-pick.h gets changed.Adam Borowski2013-11-251-0/+1
| | | | Also, drop one copy of monster distribution data.
* Axe a buttload of useless #includes.Adam Borowski2013-11-031-1/+0
| | | | | Can't test Android, MSVC or Mac, but a very brief glance at the diff suggests it's unlikely they're affected.
* Fix a monster_type misbuild with clang-3.3.Adam Borowski2013-04-261-2/+4
| | | | | Again, a magic value of -1. It was also wrongly checked in a few error handling routines, rendering them inoperative even with gcc.
* Fix crash when vaults specify "nothing" as part of a random monster set.Steve Melenchuk2013-03-211-1/+7
| | | | This was causing meatsprint to crash at the first tick.
* Merge branch 'master' into mon-pickAdam Borowski2012-11-041-5/+5
|\ | | | | | | | | Merge commits instead of rerere suck, but not being able to comfortably use the test rig sucks even more.
| * Use std namespace.Raphael Langella2012-08-261-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Get rid of a crapload of uselessly passed level_number.Adam Borowski2012-11-041-1/+1
|/ | | | | | | | | | Also, get rid of one of three copies of '8'/'9' logic. Also, fix the depth of place: not being heeded for some purposes. Technically, there is one actual change: shallow items in Ziggurats had a fixed level of 27, they now use 27 + depth in Zig. Not noticeable as most nearby items use level 351 anyway.
* Allow bands in random monster lists.Neil Moore2012-07-071-5/+0
|
* Some more return deparenthesization.Adam Borowski2012-07-051-1/+1
|
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-13/+13
|
* Merge branch 'master' into portal_branchesAdam Borowski2012-03-261-5/+5
|\ | | | | | | | | This includes fixes for 64834896234968 places in master that add new uses of LEVEL_FOO and so on.
| * Use monster_type nearly everywhere.Adam Borowski2012-03-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | Omitted: * mspec.type (uses a lot of magic values in the negatives) * item_def.orig_monnum (todo, +1 trick) A few minor problems are fixed here: * renamed gas spores passed mindex for monster_type * demon summoning would break on addition/deletion of demon types * vaults spawning zombified uniques would fail to mark them as used
| * Expose mid rather than mindex to dlua.Adam Borowski2012-02-231-4/+4
| |
* | Merge branch 'master' into portal_branchesAdam Borowski2012-02-201-8/+7
|\|
| * Make dgn_place_monster() return monster*Adam Borowski2012-01-051-4/+3
| | | | | | | | | | This is what most uses want. Only left with mindex() is to_respawn[] in the arena, no idea what it is needed for.
| * s/(mons_spec)\.mid/$1.type/Adam Borowski2012-01-051-5/+5
| |
| * Clean some menv idx / mid confusion.Adam Borowski2012-01-051-3/+3
| | | | | | | | | | The word "mid" is used for three things: monster id, indices into the menv array, monster types. This removes (some of?) the second.
* | Use branch depth rather than absolute depth as the authoritative one.Adam Borowski2012-01-031-4/+3
| |
* | Get rid of level_type, unify BRANCH_*, LEVEL_* and portal vaults.Adam Borowski2011-11-041-7/+6
|/
* cppcheck: fix inefficient checking for emptiness.Adam Borowski2011-07-051-3/+3
| | | | | On some STL structures size() is slow. I did not bother limitting sed, so innocent bystanders got pulled into the machine, but there's no loss.
* Rename MONS_(PANDEMONIUM|HELL)_DEMON to MONS_(PANDEMONIUM|HELL)_LORD.David Lawrence Ramsey2011-06-201-1/+1
|
* 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.
* Don't restrict set_random_mon_list() to portal vaults only.Adam Borowski2011-03-141-19/+0
| | | | | | | Encompass vaults are valid users too -- like, non-fire monsters shouldn't generally spawn on minmay_sea_of_fire except for stairs. And even regular vaults might reasonably use it with some care, especially if the old selector is included as an alternative ("gnoll / place:D:4").
* Ensure a space after "return".Adam Borowski2010-12-161-2/+2
| | | | It should never masquerade as a function call.
* Rename class "monsters" to "monster".Robert Vollmert2010-09-051-2/+2
|
* Fix portal vaults failing validation.Darshan Shaligram2010-07-241-1/+1
|
* Rename hilariously misnamed you.your_level to you.absdepth0.Adam Borowski2010-02-101-1/+1
|
* 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.
* Remove header includes from mon-place.h.Robert Vollmert2009-11-271-0/+1
|
* Remove unnecessary header-header includes.Robert Vollmert2009-11-271-0/+1
|
* Add formatting fixes.David Lawrence Ramsey2009-11-211-2/+2
| | | | This mostly puts && and || on the proper lines, per the style guide.
* Rename monspeak/monplace/monstuff to mon-speak/place/stuff.Jude Brown2009-11-121-2/+2
| | | | | I'm pretty sure I've managed to replace every instance of a reference to these files, so I hopefully haven't missed anything.
* Move utility functions from clua.cc to cluautil.cc.Robert Vollmert2009-10-211-1/+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.
* 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 some parts of lua library "dgn" out.Robert Vollmert2009-10-201-0/+267
Specifically, item and monster-related functions to l_dgnit.cc and l_dgnmon.cc.