summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/wiz-dgn.cc
Commit message (Collapse)AuthorAgeFilesLines
* allow iterating over branches in a non-enum order (8742)Jesse Luehrs2014-08-021-6/+6
| | | | | | | | | | | | This allows us to have a consistent and logical ordering of branches without requiring the branch enum itself to be reordered (which could have save compatibility implications). The new ordering of branches just moves Depths to the place in the ordering that it already is planned to go on the next major save compat bump, but other changes are possible, if desired. All places in the code that iterate over branches have been updated to use the new iterator except for code dealing with save files, which still uses enum order, so that we can change the display ordering without affecting saves.
* Remove stuffNicholas Feinberg2014-07-291-1/+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!
* Create prompt.ccNicholas Feinberg2014-07-271-0/+1
|
* Allow &Pminivault (Grunt)Neil Moore2014-07-101-6/+4
| | | | | | | If the player specified a minivault with &P, try to build a level containing that minivault. If the level doesn't try to place minivaults (encompass levels) there is no effect, but otherwise the level will be vetoed if the requested vault did not place.
* Simplify.Neil Moore2014-07-101-1/+1
|
* Don't freeze on &Pminivault.Neil Moore2014-07-101-3/+1
| | | | Just fail with a message like we were supposed to.
* Rename 'mesclr()' to 'clear_messages()'reaverb2014-06-221-1/+1
|
* Take the 'trap' out of web traps!Nicholas Feinberg2014-06-181-3/+3
|
* Remove dart traps.Shmuale Mark2014-05-301-1/+7
| | | | | | They had minimal damage and mechanical traps hardly generate anywhere anyway. In ossuaries (the only vaults with them, thank god), they've been mostly replaced with arrow traps or the floor.
* Don't crash when moving after &(rock_wallNeil Moore2014-01-121-0/+2
|
* Schedule DNGN_ENTER_PORTAL_VAULT for removal; other related fixes.Adam Borowski2013-12-191-58/+40
|
* Drop "&p".Adam Borowski2013-12-181-30/+0
| | | | Redundant with &G for most uses, and &( if you want the feature.
* Use history in &(Neil Moore2013-12-111-1/+1
|
* Replace `mpr(s, ch)` with `mprf(ch, s)`Adam Borowski2013-11-291-5/+5
| | | | | | | | | Also simplify quite a few cases. It turns out in >90% cases of non-literals the argument had .c_str(), which meant it was pointlessly malloc()ed and converted from and to std::string. I believe a sprintf is faster, so even the argument of miniscule speed-up doesn't apply.
* Replace `mprf(s)` with `mpr(s)`Chris Oelmueller2013-11-281-1/+1
| | | | Scripted, then manually reviewed.
* Give a number of yesno() prompts default answers for HUP.Adam Borowski2013-11-251-1/+2
|
* Drop unnecessary parentheses from return statements.Adam Borowski2013-11-151-1/+1
|
* Shorten branch enums.Adam Borowski2013-11-031-4/+4
| | | | | Seriously, even preparing this commit gave me a pain in the triangle between the thumb and index finger's bases and the wrist.
* Store the entry level for every branch (rather than just depth).Adam Borowski2013-11-021-4/+3
| | | | | | | | This allows moving branches around without breaking save compat or at least serious hacks. The portal stack can be probably dropped now: two copies of the same level can't exist anyway.
* Rewrite monster_iterator.Adam Borowski2013-10-311-1/+1
| | | | | It degenerated to a simple loop over menv, hardly worth any syntactic sugar. I kept it for now, though.
* Cancel an american speling.Adam Borowski2013-08-241-3/+3
| | | | | | Looks like, unlike "target[t]ing" where a single t is used by many brits and even some aussies, "cancel[l]ing" has double l even for a good deal of americans.
* Make &( call &T instead when invoked for trap featureChris Oelmueller2013-08-181-10/+20
| | | | | | | | debug_make_trap now has a return value and pos argument to match other debug_make_* utilities that also do not use it. Support "any" and "random" as trap name. This also fixes #4734 [moving after &( undiscovered_trap crashes].
* Handle wizmode reporting of multi-god overflow temples better.Steve Melenchuk2013-06-231-3/+9
| | | | | | | Instead of just listing all of the gods on the level in a comma-separated list, comma-separated lists are printed for each temple, and temples are separated with semicolons (so, "Elyvilon, Zin, and the Shining One; Trog and Okawaru; Ashenzari").
* Add MSG_OK when canceling for various promptsPekka Lampila2013-06-101-0/+3
| | | | | Also in a couple of cases add other messages. The goal here is to always print something when a prompt is dealt with.
* Alternate Forest with Crypt.Steve Melenchuk2013-05-261-3/+3
| | | | | | | Forest's entrance depth and absolute depth are now the same as Crypt's. This also adds functionality to move Tomb's entrance to Forest if Crypt isn't placed in the game, so Tomb always exists (at present).
* Use FixedBitArray instead of large arrays of bools.Adam Borowski2013-04-091-1/+1
| | | | | The only cost is having assignments be a function, as you can't overload operator[] to have separate bits be lvalues.
* Unregister vaults when placing a vault via &PDracoOmega2013-03-171-8/+16
| | | | | Since this did not free used vaults, despite essentially regenerating the level (unlike ctrl+r), it was easy to run out of them.
* More properly clean up the old level when using wizmode level teleportDracoOmega2013-01-281-0/+2
| | | | | | | This could cause a crash if an arcane familiar was stranded on an old level and you cast something which would trigger it to fire, but also it seems sensible that other bits of normal level cleanup should be executed after a wizmode level change.
* Get rid of a lot of references to secret doors.Adam Borowski2013-01-061-1/+1
|
* Fix the wizard up/down stairs command to work properly with the new Abyss.David Lawrence Ramsey2013-01-011-4/+3
| | | | | | | Now, &d will move down one level in the Abyss when possible, and &u will move up one level. Since the "abyssal stair" technically only goes down, the latter command actually falls through to the "escape hatch" case; while this does work, there may be a better way to do it.
* Don't keep force_map forever when crashing after &PNeil Moore2012-12-291-0/+5
| | | | Thanks to HangedMan for finding the problem and how to reproduce it.
* & ^K to clear the "used" flag from all vaults.Adam Borowski2012-11-071-0/+9
|
* Remove unnecessary includes from header files.Jay3.14152012-10-231-0/+4
| | | | | | | | | | 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.
* List available shop types when failing to create one in wizmode.Raphael Langella2012-10-031-0/+1
|
* Merge branch 'master' into glasnostAdam Borowski2012-08-311-22/+23
|\ | | | | | | Yay for conflicts galore (wax removal, std:: purge, tileidx changes).
| * Use std namespace.Raphael Langella2012-08-261-22/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Clear tile feature flavour and tile colour on wizmode feature replacement.Steve Melenchuk2012-07-311-0/+2
| | | | | | | | | | | | This makes it consistent with the dungeon builder's replacement of features, and prevents lovely issues like the hatched screenshot associated with #6000 from occurring.
* | Runed doors.Adam Borowski2012-08-311-1/+1
| | | | | | | | | | | | They're meant to stop autoexplore, and maybe request a confirmation for being opened. This is not yet implemented, but we can use them for converting secret doors that were used for marking a place as interesting.
* | Drop the code for displaying/handling/etc secret doors.Adam Borowski2012-07-111-1/+1
|/
* Some more return deparenthesization.Adam Borowski2012-07-051-1/+1
|
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-2/+2
|
* Change 'clobber' to 'check_collision' in _build_secondary_vault and things ↵Vsevolod Kozlov2012-05-241-1/+1
| | | | | | that call it. To make it consistent with the functions called by it.
* Don't list parentless branches on &:Adam Borowski2012-05-021-4/+1
| | | | There's nothing interesting on that display anymore.
* Merge branch 'master' into portal_branchesAdam Borowski2012-04-251-3/+1
|\
| * Simplify map rot code.Adam Borowski2012-04-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | Amnesia traps -- and thus, flat chance maprot -- is long since gone. Of particular interest is the way old forget_map() was called from abyss.cc. We had two functions: forget_map(bool force) forget_map(int chance = 100, bool = false) Guess which one forget_map(true) called? Not that obvious that one prototype was missing... No wonder no sane language has function overloading.
| * Drop pointless braces after if/for/while everywhere.Adam Borowski2012-04-201-2/+0
| |
* | Disregard map uniqueness on &L and &PAdam Borowski2012-04-231-7/+14
| | | | | | | | | | | | This unbreaks subvaulted maps, which would typically run out of legal subvaults. The only restriction is that a single map cannot use the same subvault twice (with no allow_dup), as expected.
* | Delete levels at the proper time, collect most data deletion into one place.Adam Borowski2012-04-181-6/+2
| | | | | | | | | | | | | | | | | | | | | | It was a mess: most portals were kept on the disk, deleted only when you entered a new instance (ie, except for Pan, Abyss, Zigs and trowel cards, never). Associated data was removed at arbitrary times, often prematurely (like, when getting banished, even if you could come back). Not handled yet: * wizmode shenanigans * travel cache
* | Announce that &p succeeded.Adam Borowski2012-04-131-0/+1
| | | | | | | | | | Having the prompt left over makes you wonder what's going on, made worse by the fact that some portals ask further questions.
* | Merge branch 'master' into portal_branchesAdam Borowski2012-04-121-0/+10
|\|