summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tutorial.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Unify check for unknown staircases in is_unknown_staircase.Robert Vollmert2009-10-171-3/+2
|
* More renaming and reorganization of feature checks.Robert Vollmert2009-10-171-2/+2
| | | | | | | | | There were a couple of functions is_something(dgn_feature_type feat) defined in travel.cc that were otherwise independent of travel. For consistency, move these to terrain.cc and rename to feat_is_something. One might also consider renaming the various feat_is_whatever functions to just is_whatever.
* Naming consistency.Robert Vollmert2009-10-171-5/+5
| | | | | Mostly rename functions from terrain.h that accept features of typ dgn_feature_type from grid_is_* to feat_is_*.
* Globally replace see_grid by see_cell.Robert Vollmert2009-10-171-1/+1
|
* Remove a lot of unneccessary includes.Robert Vollmert2009-10-091-2/+0
| | | | | | | The console version still compiles on Linux; both console and tiles version compile in OS X. I haven't been able to test the DOS and Windows compiles -- please fix or tell me about any errors that show up.
* Split LOS code from view.cc.Robert Vollmert2009-10-081-0/+1
| | | | | | | | | los.cc: basic raycasting algorithm; losight(), see_grid() etc. ray.cc: ray_def implementation. mon-los.cc: monster_los This includes adding a bunch of #includes; there's probably some obsolete includes of view.h now.
* Revert "Modify a few tutorial messages according to the z/Z changes" from ↵evktalo2009-10-061-3/+3
| | | | | | master too. This reverts commit eb076f4e8e72b8c9f839892bf8d1aba4838bf06a.
* Modify a few tutorial messages according to the z/Z changes.evktalo2009-10-061-3/+3
| | | | | Signed-off-by: evktalo <evktalo@users.sourceforge.net> (cherry picked from commit ba32b4c6d13011afc9e89b01c9a4aba693f2a7b0)
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* move 'Kills.h' -> 'kills.h', 'Kills.cc' -> 'kills.cc' for file naming ↵Steven Noonan2009-09-291-1/+1
| | | | | | consistency Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Add a yes_or_no prompt if you attempt to leave the Dungeon and picked upj-p-e-g2009-07-191-1/+1
| | | | | | | the Orb at one point, but are not carrying it now. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10320 c06c8d41-db1a-0410-9941-cceddc491573
* A number of small bug fixes:j-p-e-g2009-07-171-2/+0
| | | | | | | | | | | | | | | | | | * 2811005: unknown mimics being stabbable * 2818709: restrict monsters picking up stuff to 2 items per turn * 2820097: reintroduce prompts for firing _in the direction_ of allies and fix message * 2821462: returning from tutorial screen swallowing a keypress * 2822771: fire elementals could be placed in shallow water Also, Azrael is no longer generated in the Shoals/Swamp Also, implement the second part of FR 2820876: Xom will no longer confuse the player if there's adjacent deep water or lava. This restriction doesn't apply if Xom is feeling nasty (penance or bored) and there's also no checks for water/lava further away. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10255 c06c8d41-db1a-0410-9941-cceddc491573
* Detected secret doors are now treated as a distinct new door type, soj-p-e-g2009-07-111-1/+2
| | | | | | | | | | | | that stupid monsters will continue to ignore them as long as they've never been opened. Shifts wall and door types of existing save files. Also apply patch by one the "nobodies" to make bloody tiles show up again. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10167 c06c8d41-db1a-0410-9941-cceddc491573
* First part of the merger of fixed artefacts into unrandom artefactszelgadis2009-06-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (further changes will be much smaller). Breaks savefile compatibility, and bumps the major savefile version up to 6. Some changes made to some tiles files, but it hasn't been tested with a tiles build. Overview of changes: * Unrand artefacts are now defined in art-data.txt and is turned into C code via util/art-data.pl. This has the dual advantage of being more readable by humans, and that if the unrand data structure changes then you can just change util/art-data.pl and regenerate the C code rather than having to change some 70 different C structs by hand. * util/art-data.pl automatically updates NO_UNRANDARTS, and also automatically generates an enumeration of all the unrands which are equal to their item.special field. * randart.cc and randart.h have been renamed to artefact.cc and artefact.h, since the files covers all types of artefacts, and the differences between randarts, unrandarts and (former) fixed arts have been minimized since the terms were introduced. Also renamed unrand.h to art-data.h * The brands and resistances of former fixed arts are now handled via artefact properties, but the rest of their special behaviours are still hardcoded. * Unrandarts are now distinguished between normal and "special", with the special ones currently just being identical to the list of the formed fixed arts. Special unrandarts are randomly generated less often than normal unrandarts, can be generated in the Abyss if they've been lost, can't be picked up by monsters, and can't be affected by Tukima's Dance. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10035 c06c8d41-db1a-0410-9941-cceddc491573
* Apply my recent commits to trunk.j-p-e-g2009-06-141-9/+22
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9978 c06c8d41-db1a-0410-9941-cceddc491573
* Make Escape at the tutorial prompt take you back to the race selection dolorous2009-06-091-0/+1
| | | | | | | screen. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9927 c06c8d41-db1a-0410-9941-cceddc491573
* Forward-port applicable fixes from 0.5 r9896 to trunk.dolorous2009-06-051-26/+104
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9897 c06c8d41-db1a-0410-9941-cceddc491573
* * Change "Your inventory suddenly weighs less" message to messages whichzelgadis2009-06-031-8/+0
| | | | | | | | | | are more self explanatory. * Remove tutorial event explaining the "Your inventory suddenly weighs less". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9885 c06c8d41-db1a-0410-9941-cceddc491573
* Apply r9879 to trunk, minus harpies.j-p-e-g2009-06-011-8/+26
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9880 c06c8d41-db1a-0410-9941-cceddc491573
* Apply 0.5 r9875 to trunk.dolorous2009-06-011-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9877 c06c8d41-db1a-0410-9941-cceddc491573
* Apply r9873 to trunk.j-p-e-g2009-06-011-25/+71
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9874 c06c8d41-db1a-0410-9941-cceddc491573
* Add a tutorial trigger for the highly unlikely case the playerj-p-e-g2009-05-261-0/+41
| | | | | | | | | | | | | | | encounters a monster (oklob plant, hostile statue) during the tutorial that triggers an autoexclusion. There really needs to be an in-game way of explaining what they're for when such an autoexclusion happens to the player for the first time, particularly for the tiles build where excluded grids are visibly different from non-excluded ones. I'm afraid the FAQ is too obscure for this one, as well. Maybe add something to descriptions of monsters that have an exclusion centered on them? git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9831 c06c8d41-db1a-0410-9941-cceddc491573
* Add a few more tutorial tweaks.dolorous2009-05-251-5/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9828 c06c8d41-db1a-0410-9941-cceddc491573
* * More tutorial tweaks (tiles, mostly).j-p-e-g2009-05-251-114/+162
| | | | | | | | * Allow (r)eplacing an existing inscription as a shortcut to (c)learing + (i)nscribing. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9827 c06c8d41-db1a-0410-9941-cceddc491573
* Add more typo and wording fixes.dolorous2009-05-251-51/+51
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9825 c06c8d41-db1a-0410-9941-cceddc491573
* Typo fixes.dolorous2009-05-251-6/+6
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9824 c06c8d41-db1a-0410-9941-cceddc491573
* Added some new tutorial events (not tested with the tile build):zelgadis2009-05-251-13/+260
| | | | | | | | | | | | | | | | | | | | | | | | * Auto-explore hint (200 turns after level map hint). * Explanation of the "Your equipment suddenly weighs less" message. * Explanations of trap and heap branding (non-tile builds only). * A note that monsters that have moved out of LOS haven't just vanished. * Events for gaining an ability from a mutation and gaining one from an item which was just equipped, separate from the event for the first divinely granted ability. * An explanation that shouting monsters have just noticed you, plus that their shout is likely to attract the attention of other monsters. * A "seen portal vault entrance" event, since the entry to the sewers can appear on DL 3 through 6, and there's also a very small chance of a Zigguart entrance apearing as early as DL 3. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9823 c06c8d41-db1a-0410-9941-cceddc491573
* Tutorial changes:zelgadis2009-05-241-1/+11
| | | | | | | | | | | | - If a friendly monster is enslaved/charmed, note that it is only *temporarily* friendly, and that it will become hostile when its friendliness wears out. - Make sure TUT_MONSTER_FRIENDLY is fired for summoned friendly monsters, not just for enslaved/charmed monsters. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9816 c06c8d41-db1a-0410-9941-cceddc491573
* Oops, wands are now e'V'oked, not 'Z'apped.zelgadis2009-05-241-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9814 c06c8d41-db1a-0410-9941-cceddc491573
* Tutorial changes:zelgadis2009-05-241-16/+65
| | | | | | | | | | | | | * Note items which give abilities or resistances even if they're not equipped. * Don't give conjurers the item note about heavy armour for non-body armour, but do give a note about shields making casting harder. * Miscellaneous other improvements. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9812 c06c8d41-db1a-0410-9941-cceddc491573
* Some tutorial additions:zelgadis2009-05-231-15/+138
| | | | | | | | | | | | | | | | | | | * In tutorial messages about butchering a corpse, give additional info if you're unable to butcher because you're wielding a cursed non-chopping weapon or because you have no chopping weapons. * In the tutorial message about being burdened or having a full pack, mention that you can easily find items you've left on the ground by using the "search stashes" command, and also warn that items left on the ground can be picked up and used by monsters. * When giving detailed info on an examined staircase, mention if the staircase is one that you have not yet passed through. * A new tutorial-end hint about the #crawl IRC channel on freenode. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9798 c06c8d41-db1a-0410-9941-cceddc491573
* Update tutorial information, inscription warnings and tooltips for wands j-p-e-g2009-05-041-12/+24
| | | | | | | and misc. items. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9732 c06c8d41-db1a-0410-9941-cceddc491573
* Add spacing fixes.dolorous2009-04-301-5/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9709 c06c8d41-db1a-0410-9941-cceddc491573
* Removing vestigial code to set option for showing all items. All items are ↵ennewalker2009-03-291-6/+0
| | | | | | shown now, regardless of the option, so there's no need to set it for tutorials. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9570 c06c8d41-db1a-0410-9941-cceddc491573
* * For flavour, let Xom laugh himself silly whenever a follower dies.j-p-e-g2009-03-191-10/+9
| | | | | | | | | | | | * Fix Xom being amused about rotten corpses being butchered. (As opposed to clean corpses becoming rotten while butchered, which is how it was originally intended.) * Xom no longer is amused if you deliberately hit yourself with a missile/wand/spell in safe surroundings. (Identifying wands that way or zapping /random effects is still considered amusing.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9519 c06c8d41-db1a-0410-9941-cceddc491573
* Generalize the menu toggle from InvMenu to Menu and use it to properlyj-p-e-g2009-03-111-2/+2
| | | | | | | | tie ability descriptions into the menu. Still haven't worked out how to update the titles, though. :( git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9412 c06c8d41-db1a-0410-9941-cceddc491573
* Fix recursive loops for flushing messages when more() is calling getch()j-p-e-g2009-02-281-2/+3
| | | | | | | | | | by adding a boolean to keep track on whether we already called flush_prev_message() this round, reset once a new message is pushed into prev_message. There's probably a better solution, but this one works well enough. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9285 c06c8d41-db1a-0410-9941-cceddc491573
* Change Transmutation -> Transmutations for consistency withj-p-e-g2009-02-221-1/+1
| | | | | | | Translocations and because it sounds a bit better. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9150 c06c8d41-db1a-0410-9941-cceddc491573
* Book acquirement again:j-p-e-g2009-02-181-1/+1
| | | | | | | | | | * Weigh magic skills stronger to bias against manuals. * Fall through to randart (theme) books if all spells are known. * Allow spell school combinations (Conj/Fire) in naming randarts after hell lords and others. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9122 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [1974594]: tutorial item description going off the bottom of the screen.haranp2009-02-171-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9119 c06c8d41-db1a-0410-9941-cceddc491573
* Making tutorial and named monster tags consistent. Also, making tooltips ↵ennewalker2009-02-141-1/+1
| | | | | | not disappear until the mouse moves to another square, to address [2564067]. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9062 c06c8d41-db1a-0410-9941-cceddc491573
* Remove a great many cases where mgrd is accessed directly in favourharanp2009-02-131-23/+13
| | | | | | | | | | | of monster_at(). The hope is to eventually remove mgrd completely (in favour of scanning through the monster list, or a different datastructure which gets updated automatically when monsters move), and thus fix all the mgrd-out-of-sync bugs in one fell swoop. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9056 c06c8d41-db1a-0410-9941-cceddc491573
* Properly use default parameters when displaying comma-separated lists.dolorous2009-02-121-2/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9048 c06c8d41-db1a-0410-9941-cceddc491573
* Code cleanups, mainly in clouds.haranp2009-01-311-0/+23
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8865 c06c8d41-db1a-0410-9941-cceddc491573
* Rename Transmigration -> Transmutation.j-p-e-g2009-01-111-1/+1
| | | | | | | | Move randart spellbook tiles into subfolder /artefact, like for other artefacts. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8415 c06c8d41-db1a-0410-9941-cceddc491573
* [2495836] Show names for friendly uniques during arena mode. Also, add a ↵ennewalker2009-01-101-0/+1
| | | | | | tile_tag_pref option. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8383 c06c8d41-db1a-0410-9941-cceddc491573
* Add the last of the apostrophe-related fixes. Words that end in "x" dolorous2009-01-061-2/+3
| | | | | | | | | | | | | | | will now get proper "'s" endings; simple_monster_message() and simple_god_message() will now replace all "s's" with "'s" (there's no need to worry about the "its" rule here, since invisible monsters are excluded from the former, and no gods are named "It" or are invisible with regard to the latter); and the tutorial will now generically apostrophize the one god name it has (since doing the aforementioned replacement would take too long on the tutorial text). The high score message still appends "'s" unconditionally to user names, but they may not be English, so that seems okay to me. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8281 c06c8d41-db1a-0410-9941-cceddc491573
* Adding REVISION() macro to all source files.ennewalker2009-01-041-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8217 c06c8d41-db1a-0410-9941-cceddc491573
* Apply a patch by castamir to fix a multitude of typos.j-p-e-g2008-12-281-6/+6
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8005 c06c8d41-db1a-0410-9941-cceddc491573
* Add a FAQ part to the database, which can be accessed from the helpj-p-e-g2008-12-261-2/+2
| | | | | | | | | | | | | screen. This is intended as a pointer for general questions, not for complicated information about rare, specific occurences. Feel free to change stuff, or add more. The Q:keyword/A:keyword solution is pretty rough, but I couldn't get the database not to turn the questions into all lowercase otherwise. If someone knows of a better method, I'm all ears! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7981 c06c8d41-db1a-0410-9941-cceddc491573