summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/command.cc
Commit message (Collapse)AuthorAgeFilesLines
* also swap p and ^P (PleasingFungus)Jesse Luehrs2014-08-151-2/+2
|
* adjust a few more wizmode commandsJesse Luehrs2014-08-151-9/+9
| | | | | | | | | | Moving all commands off of ^M, <, and >, since those are menu keys, and so &?< wouldn't do the right thing, for instance. Also trying to move things off of control-key combinations in general where an easy non-control-key combination exists, for easier typing. Finally, moving level-specific wizmode commands (like Shoals tide speed or Lab shifting) onto control-key combinations, since they are less frequently used, to free up normal keys for other commands in the future.
* swap &m/&MJesse Luehrs2014-08-151-1/+1
|
* note &= in the wizmode command listJesse Luehrs2014-08-141-0/+1
|
* allow iterating over branches in a non-enum order (8742)Jesse Luehrs2014-08-021-6/+3
| | | | | | | | | | | | 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.
* Revert "Make Gozag trunk-only"Nicholas Feinberg2014-08-021-2/+1
| | | | | | | Not needed now that we've branched 0.15. This reverts commit 8064468542592958c6ace5dc27aa0fd88cce04a9. This reverts commit 0f053f10eb5bf6e8df296044933b8f82496ce8d3.
* Don't display disabled gods in the ?/ listNicholas Feinberg2014-08-021-1/+2
|
* Remove stuffNicholas Feinberg2014-07-291-1/+3
| | | | | | | .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!
* Move redraw functions from stuff.cc -> output.ccNicholas Feinberg2014-07-281-0/+1
|
* Move letter <-> index from stuff.cc to prompt.cc (wheals)Nicholas Feinberg2014-07-281-0/+1
|
* Display weapon damage on ammoNicholas Feinberg2014-07-101-3/+2
| | | | | | Now that it actually means something reasonable comprehensible. Also refactor some related mulch-description code.
* Rename 'mesclr()' to 'clear_messages()'reaverb2014-06-221-2/+2
|
* New command: show weapons in viewport.Shmuale Mark2014-06-121-0/+9
| | | | | | | | If a monster has a weapon, and you press ctrl-t (by default), you will see, instead of its normal glyph, the glyph for the weapon it is holding. Since this information is already available with 'x' and even more easily in tiles, it's just an interface improvement, and as far as I can tell in my tests there is no information leaked.
* Remove the now-superfluous friendly_pickup command suite.Shmuale Mark2014-05-281-1/+0
| | | | Including the default_friendly_pickup option.
* Chance function(void) to function()reaverb2014-05-241-12/+12
|
* Revert "In tutorial mode, directly show the special help screen when ↵Shmuale Mark2014-05-201-3/+2
| | | | | | | | | pressing "?"." (#5347). It's an admirable thought, but as seen in the issue it has problems with the tutorial text as written, and it doesn't seem too hard to see where to find the list of commands. This reverts commit 92505221fd745c28ebeda071dfd818a879f3d594.
* Formatting fixes (add braces).Neil Moore2014-05-121-0/+2
| | | | This fixes all the instances caught by unbrace.
* Change "hitpoints" to "health" in a few placesChris Campbell2014-05-081-1/+1
| | | | | Crawl mostly uses "health" and "magic", with "HP" and "MP" in a few places where abbreviating is more appropriate.
* Document a missing wizmode commandChris Campbell2014-05-071-0/+1
|
* Generate card <-> deck lists on the fly (#8292).Steve Melenchuk2014-03-191-0/+8
|
* Remove `auto_list` optionChris Oelmueller2014-03-111-40/+3
| | | | | | | | | | | | | It has been defaulting to `true` for a while now. That setting provides a nicer interface overall and there is little reason to support alter- nate input methods. Some prompts asking for a letter have not been adjusted, for example evoking a rod with multiple spells. Those are hopefully gone soon anyways. [Committer's note: The option had no known uses except by bots, and those could work without it. And, of course, multi-spell rods are gone.]
* Remove fake Mara/Rakshasa monsters and associated code, refactor to use ↵DracoOmega2014-03-111-3/+0
| | | | | | | | | | | | | | | | | | | Phantom Mirror There was quite a bit of special case code for the 'fake' monsters which Mara and other rakshasa would create that can be subsumed beneath the general Phantom Mirror effect (which can properly create fake dummies of any type of monster in a unified way). The main practical gameplay difference that will result (aside from bugs introduced by this, of course) is that the true Mara will actually be disguised when he splits, instead of the player knowing for sure which one he is (until two of them blink in the same turn, anyway). This is a Mara buff, but it seems to me that an illusion spell of this nature shouldn't have been so easy to see through in the first place and that this is an overall better state of affairs. (Also, the clones do have less hp than before, if you end up killing the wrong one first).
* Remove unused code writing to spell descriptionsChris Oelmueller2014-02-091-40/+0
| | | | | | Monster spells for instance have been available in ?/s for a while now, but this code hadn't been called for spell lookups in the first place. Not even the command &Z survived from back when this did something.
* Remove special message handling for book+rod spellsChris Oelmueller2014-02-091-10/+4
| | | | | | This was pretty much duplicated code for no gain, and the message didn't even look better in the special-cased version. There is enough space for the extra newline.
* A bit of padding for book/rod names in ?/sChris Oelmueller2014-02-091-6/+6
| | | | This looks much better.
* Add Wizard mode commands to identify/unidentify item types and level items.gammafunk2014-01-301-0/+1
| | | | | | | | | | This binds the commands to & y/Y. We have & i/I, but that only affects inventory items. For various testing purposes, it's nice to be able to mass-identify/unidentify all item types. This command also identifies/unidentifies all inventory items on the level, since items can refuse to unidentify if they exist on the floor, and because level-item identification is also a convenient thing to have. We don't change the identification status of off-level items.
* Add a wizmode command (&p) to list player propsChris Campbell2014-01-151-0/+1
|
* Rename abl-show.{cc,h} to ability.{cc,h}Adam Borowski2013-12-241-1/+1
| | | | The old name was quite puzzling...
* Drop double newlines where they seem to serve no purpose.Adam Borowski2013-12-211-3/+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.
* Drop "&p".Adam Borowski2013-12-181-1/+0
| | | | Redundant with &G for most uses, and &( if you want the feature.
* Fix spelling of "targeting" (#7837)Chris Campbell2013-12-101-13/+13
| | | | See Mantis for discussion.
* Fix slime creature being described as buggy in ?/MPekka Lampila2013-12-031-0/+3
|
* Fix describe menus always displaying --more--Pekka Lampila2013-12-031-2/+1
|
* Fix sorting describe monster list (?/M)Pekka Lampila2013-12-031-4/+4
|
* Drop tagstring.{cc,h}Adam Borowski2013-11-291-1/+0
| | | | A whole file for four lines of code.
* Restrict mpr() to literals only.Adam Borowski2013-11-291-1/+1
| | | | | The translation project is stalled, but this makes all of such static strings trivially gatherable without any extra work.
* Remove mpr_nocap().Adam Borowski2013-11-291-3/+3
| | | | | No particular reason, other than consistency. And all but two used wasteful double-conversion, so this is not a speed regression.
* Replace `mpr(s, ch)` with `mprf(ch, s)`Adam Borowski2013-11-291-11/+11
| | | | | | | | | 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.
* Shorten the last &? straggler.Neil Moore2013-11-161-1/+1
|
* Improve &^[TU] description (ChrisOelmueller)Neil Moore2013-11-161-2/+2
|
* Remove colons in wizmode command overviewChris Oelmueller2013-11-161-79/+79
| | | | Should now fit on 80x24 again, with the exception of `|`.
* More formatting fixes for return (...);Neil Moore2013-11-151-2/+2
|
* Drop unnecessary parentheses from return statements.Adam Borowski2013-11-151-3/+3
|
* Wizmode command &^U for a clua prompt.Neil Moore2013-11-151-1/+2
| | | | Works just like &^T, but uses clua instead of dlua.
* Shorten branch enums.Adam Borowski2013-11-031-1/+1
| | | | | Seriously, even preparing this commit gave me a pain in the triangle between the thumb and index finger's bases and the wrist.
* Document & ^CAdam Borowski2013-11-021-1/+2
|
* Fix amulet ring slot showing on '"'.Adam Borowski2013-10-061-5/+1
|
* Reformat multi-line array literals.Adam Borowski2013-10-051-2/+4
|
* Merge branch 'next'Adam Borowski2013-09-251-14/+16
|\
| * Fix the amulet ring not showing on ".Adam Borowski2013-09-221-2/+3
| |