summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/skill_menu.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove stuffNicholas Feinberg2014-07-291-2/+2
| | | | | | | .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
|
* Remove a spare set of braces.Neil Moore2014-06-111-2/+0
|
* Convert crosstraining into an enhancer bonusBrendan Hickey2014-06-121-49/+15
| | | | | Remove traditional crosstraining. Replace it with a 20% skillpoint enhancer bonus.
* Remove more antitraining.Neil Moore2014-06-101-20/+3
| | | | | Including skill descriptions, the skill menu flag, the penalty multiplier constant, and a comment.
* Remove Anti-trainingBrendan Hickey2014-06-111-24/+2
| | | | | | | | We made the decision a while ago to remove anti-training. This had come up in discussions about changing crosstraining and it seemed that no one actually likes anti-training. Rather than blocking on cross-training, let's just put this in.
* Allow toggling skill practicing in tutorial/hints mode again.Steve Melenchuk2014-05-191-1/+4
| | | | | | | Broken by ecaf8b2. It's a sad state of affairs that nobody thought this was a bug for almost three years.
* Remove decks of dungeons and a number of now-unused cardsChris Campbell2014-05-091-2/+2
| | | | | | | Decks of dungeons were no longer gifted and only generated very rarely. Most of the cards in it (as well as some cards just removed from wonders) were either uninteresting or problematic for various reasons. The removed cards are Experience, Sage, Water, Glass, Trowel, Minefield.
* Show * crosstrain marker more often (floatingatoll, #8235)Neil Moore2014-03-051-3/+29
| | | | | | | | | | | | | | | | | If the crosstraining-enhanced skill was displayed in the menu for being trainable, but had less than 1.0 skill levels, the crosstrain-granting skill would not get the '*' marker (unless the menu was set to show all). Now show the marker whenever the menu shows the enhanced skill. Doing that without duplicating the menu logic from _show_skill in crosstrain_other required moving crosstrain_other into skill_menu.cc (which was the only thing that called it). It could be made static then, but several utility functions (and a constant) in skills2.cc had to be made non-static, so perhaps it's a wash. Also make the same adjustment to antitrain_other, even though currently that is irrelevant: you must have at least 1.0 skill for antitraining to have an effect.
* Fix display of enhanced skills that didn't break level boundaryPekka Lampila2013-12-311-2/+3
| | | | Same goes for reduced skills
* Drop pointless empty lines after or before a brace.Adam Borowski2013-12-211-1/+0
| | | | | I left them only where the contents is not indented, like in a namespace or a template.
* 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.
* Make warning in skill menu stand out moreChris Oelmueller2013-12-121-1/+1
| | | | When attempting to leave skill menu while not having any skill selected.
* Indentation fixes.Adam Borowski2013-12-041-1/+1
|
* Manually fix a few more instances of return (...)Neil Moore2013-11-151-1/+1
| | | | | These weren't caught by util/unbrace because they weren't at the beginning of the line.
* Drop unnecessary parentheses from return statements.Adam Borowski2013-11-151-1/+1
|
* Enable automatic bypassing of the skill menu for potions of experience via lua.elliptic2013-11-031-0/+10
| | | | | | | If the player defines a lua function auto_experience(), this function will be called when the player uses a potion or card of experience and the skill menu will be skipped (distributing exp to the skills that are currently turned on) if the function returns true.
* Replace 'you.penance' checks with function callsBrendan Hickey2013-07-281-1/+1
| | | | Replace you.penance[FOO] with player_under_penance[FOO].
* Correct a message on the skill screen when you have drained skillsDracoOmega2013-07-061-3/+9
|
* Set restricted skills to disabled by default with potion/card of experience.Raphael Langella2013-06-071-1/+4
|
* Allow potions/cards of exp train restricted skillsPekka Lampila2013-06-061-0/+7
|
* Always study all manuals in the inventoryPekka Lampila2013-06-061-2/+3
| | | | | | Multiple manuals for different skills can be used at once. If there are multiple manuals for the same skill, the one with least charges is used up first.
* Don't spam "You cannot train any new skill." over and over.Adam Borowski2013-03-271-0/+3
| | | | | | | | | | | While this message cannot be totally ignored, as it warns about wasting xp, usually it means you could potentially learn a spell you don't want just to place xp in its skill. That firestorming conjurer may have better things to do than lugging a weapon of yet another type, or learning a cold spell. I made this message repeat itself: * when you reload the game * after exiting the 'm' screen
* Show manual bonus even alongside antitraining '*'.Neil Moore2012-12-181-16/+20
| | | | Fixes #6457. (Or at least the visual part)
* Indentation fixes.Adam Borowski2012-12-051-1/+1
|
* Don't lose the skill training when disconnected during !exp (#6361).Raphael Langella2012-11-041-7/+6
| | | | | When loading the save, go back to the skill menu. The title is a bit generic since we can't know if the XP was from a card or a potion.
* Don't show the skill menu when quaffing exp with all skills at 27.Adam Borowski2012-10-251-9/+8
|
* Remove unnecessary includes from header files.Jay3.14152012-10-231-3/+5
| | | | | | | | | | 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.
* Fix SkillMenu crashes.Neil Moore2012-10-091-0/+7
| | | | | Not everything was being reset, causing crashes the second time the menu was entered.
* Skill menu: map shift-click and right-click to single select.Raphael Langella2012-10-081-2/+24
| | | | Does the same as shift-letter.
* Make the SkillMenu object a global variable.Raphael Langella2012-10-081-33/+43
| | | | Better that than a static member of 2 (and soon 3) other classes.
* Scale the skill menu tiles.Raphael Langella2012-10-081-21/+30
| | | | | Scale up with the tile_cell_pixels option, and scale down when the resolution is too low (instead of disabling tiles).
* Use std namespace.Raphael Langella2012-08-261-23/+23
| | | | | | | | | | | | | 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.
* New skill menu colors (#4399).argonaut2012-08-211-10/+10
| | | | | | | | | | | | Aptitude is white (was red), anti-training is red (was magenta), skill penalty is magenta (was red). Reasons are: red is bad, aptitude should have a neutral colour. Usually, magenta is worse than red, and skill penalty is worse than anti-training. Also, we have a better symmetry with cross/anti-training and green/red. Signed-off-by: Raphael Langella <raphael.langella@gmail.com>
* Don't force Troglodytes to train magic skills.Neil Moore2012-08-031-1/+2
| | | | | | | | Also, remove a few special cases that considered Spellcasting to be non-magic below level one for Troglodytes; this hasn't been necessary since scrolls stopped training Spellcasting in ee84c39. This reverts commit 1d240c20e937d950ff3de459d85665fcc06969ff.
* Cut down on transitively including directn.hAdam Borowski2012-06-201-0/+2
| | | | | It's a big header, hardly ever needed, yet it was pulled even for low-level files that don't deal with the game itself like lib${UI}.cc
* Accept !experience only on space, esc, or enter.Neil Moore2012-05-041-6/+7
| | | | | | | | Even with 2eae938, it was exiting on keypresses such as '?', which is not so great. It would be nice if help were available here, or at least a message along the lines of "Press Enter to accept."
* Don't accept !experience on pressing a bad letter/number.Neil Moore2012-05-041-0/+5
| | | | Fixes #5637.
* Use shift+letter instead of ctrl+letter to single-select skills.Raphael Langella2012-04-241-5/+5
| | | | | | ctrl+letter doesn't work for several letters in console and in webtiles. If more than 26 skills can be trained, the 27th+ are mapped to numbers (and they cannot be single-selected with shift number).
* Skill menu: ctrl+letter to select one skill and select all others.Raphael Langella2012-04-231-0/+5
|
* Unprotect PrecisionMenu::clear_selections.Raphael Langella2012-04-221-5/+0
|
* Fix an inifinite loop in the skill menu when SIGHUP with no active skill.Raphael Langella2012-03-121-0/+3
|
* Fix mangled display of antitrained skills.Adam Borowski2012-02-071-1/+1
| | | | | | The minus sign was doubled, this caused line wrapping which resulted in misaligned display in tiles and the aptitude not being shown at all in console.
* Remove the now useless you.train_set array.Raphael Langella2012-02-011-1/+0
|
* Make it easier to switch between auto and manual skill mode.Raphael Langella2012-01-071-4/+7
| | | | | The activation state of skills is saved separately. Makes sense since they are usually used very differently.
* Show manual bonuses with crosstraining.Neil Moore2012-01-051-14/+32
| | | | | | | Use lightgreen to contrast with the green for crosstraining. Two crosstraining bonuses plus a manual is a +12 aptitude; display this as just "12" to fit. Antitraining plus manual is shown with a lightgreen skill name and a magenta "-0".
* Allow other CRT dialogs to be displayed like a menu in Webtiles.Florian Diebold2011-12-081-0/+4
| | | | | | This mainly means at the moment that the menu is shown as a dialog floating above the normal layer, instead of switching to the separate CRT layer.
* Avoid a rare unexitable skill menu (Fyren).Neil Moore2011-12-071-1/+4
| | | | | | | | If you had all non-useless skills but one at level 27, and that skill was not currently trainable, you would not be able to leave the skill menu. Fixed #4910.
* Allow reskilling from untrainable skills.Neil Moore2011-11-301-1/+4
| | | | It was already possible to reskill to them.
* Fix inability to train level 0 skills with experience potions/cards (|amethyst)Chris Campbell2011-10-271-1/+1
|