summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/chardump.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Added "error" channel for runtime errors, and changed error messages thatzelgadis2008-05-271-1/+1
| | | | | | | | | used the "danger" or "warning" channels to use that. Sending an error message to the error channel has the side effect of interrupting all activity. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5276 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 1914059: randart jewellery inconsistently described as {tried} byj-p-e-g2008-05-251-43/+41
| | | | | | | | | | adding yet another entry to props. FR 1949504: Move version information into the help scroller, yay! It also looks much nicer now (if I may say so). Go, take a look! :) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5234 c06c8d41-db1a-0410-9941-cceddc491573
* Experimentally dump the new overview screen rather than the old one.j-p-e-g2008-05-241-0/+3
| | | | | | | | | | | | | | | | | I'm actually not entirely convinced this is the way to go. a) The new one is more informative, but the dump already contains all that extra information in a much more detail. b) The new one is much more concise, but that's something that's not necessary in the dump. On the plus side, new players doesn't have to get used to two different designs. Anyway, the old dump is still there, and we could use the dump options to let the player choose which one to use. For now, let's try whether it's possible to get used to this one. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5225 c06c8d41-db1a-0410-9941-cceddc491573
* Move the mpr version of the monster list to output.cc and add it toj-p-e-g2008-05-241-2/+10
| | | | | | | | | | | | | | | | | the dumped information in the morgue. Change monster naming to the precise listing of zombie sub types etc. but list monster types in brackets for non-unique named monsters, so you can now find information like the following in your morgue file: "You can see a goblin, an orc, two orc warriors, thirteen friendly orcs, and the friendly Bogrim (orc priest)." Since the concise version of the monster list is still an in-game command ('F'), this also neatly solves the problem of orc players not knowing the type of their followers. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5223 c06c8d41-db1a-0410-9941-cceddc491573
* [1952025] Fix bad text wrapping of randart base item descriptions in chardumps.dshaligram2008-05-041-2/+1
| | | | | | | No longer show the long description of a randart's base item in the dump, instead show the base item name in brackets (such as "[amulet of warding]"). Turfed out things like item weight descriptions that shouldn't infest chardumps anyway. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4863 c06c8d41-db1a-0410-9941-cceddc491573
* Consolidate the mutation-counting routines.dolorous2008-04-251-7/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4628 c06c8d41-db1a-0410-9941-cceddc491573
* Change place_monster_aux to always check nearby squares as if j-p-e-g2008-04-201-1/+1
| | | | | | | | | | | | | first_band_member was false, if the one it was called with is already occupied by the player or another monster. This should fix the problem behind all those bug reports of monsters sharing a square with the player. Might introduce new ones, I guess, though I hope it won't. Also fix a minor display bug in the chardump. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4394 c06c8d41-db1a-0410-9941-cceddc491573
* Allow vampires to mutate when Satiated or higher, and make non-physicalj-p-e-g2008-04-151-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | mutations only apply at these hunger levels, too. Differentiated mutations into physical (affecting a character's appearance and stuff: scales, hooves, wings, ...) and internal (resistances etc.). I guess this is what people usually refer to as "cosmetic", which I think is an inaccurate description since it makes it sound like they were completely superficial and had no real effect. Here's a list of arbitrarily chosen "physical" mutations: * tough skin, all scales, and fur * strong/clever/agile, and weak/dopey/clumsy * deformed * strong but stiff, and flexible but weak * frail, and robust * claws, fangs, hooves, talons, and horns * stinger, wings * blue/green marks Mutations currently not applying are still listed on the 'A' screen, though in darkgrey and in (brackets). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4246 c06c8d41-db1a-0410-9941-cceddc491573
* Another code cleanup.j-p-e-g2008-04-151-20/+21
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4244 c06c8d41-db1a-0410-9941-cceddc491573
* The level-builder now enforces the constraint that every contiguous region ↵dshaligram2008-04-101-8/+14
| | | | | | on a level must include at least one stair (ekiM). This guarantee does not apply to areas inside vaults (the builder assumes vault-designers are sane) and does not apply to certain branches (Swamp, Shoals, the branches of Hell), or the non-Dungeon areas (Abyss, Pan, Bazaars). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4169 c06c8d41-db1a-0410-9941-cceddc491573
* Ha, I knew there was a reason to cleaning up dungeon.cc - learning by j-p-e-g2008-03-311-2/+4
| | | | | | | | | | | | | | | | | | | | | | osmosis... :p Anyway, killing the royal jelly now turns all stone walls on the level into clear rock, together with a cute message. This currently only works if you actually kill it on the bottom level - other than the lua magic, which sets a marker to work no matter where you kill the jelly (I think). Still, it's better than nothing. Instead of introducing a wrapper function I probably should have made replace_area non-static, but I wasn't sure if there might be a better way to do this, and wanted to avoid having to change (and then possibly change back) all calls and their indenting. I would have changed the rune probability as well, but I wasn't entirely sure, how. If I had to guess, I'd say that changing P -> O on the branch map is the way to go. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3986 c06c8d41-db1a-0410-9941-cceddc491573
* "stashes" was both a global variable and a member variable... confusing!pauldubois2008-03-231-1/+1
| | | | | | | Renamed both of them. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3827 c06c8d41-db1a-0410-9941-cceddc491573
* Batch of tiny changes for MSVC compiles.pauldubois2008-03-101-2/+2
| | | | | | | | | | | | | | | Most of these fall into the category: - don't use struct to refer to a class, and vice versa - msvc doesn't like unistd.h or dirent.h Doesn't fix all the struct/class problems; I think I'll silence those for now and move on because it's not all that important. Tested on OS X. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3571 c06c8d41-db1a-0410-9941-cceddc491573
* Fix collision between gotoxy(int,int,int) and DOS djgpp gotoxy().dshaligram2008-01-251-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3337 c06c8d41-db1a-0410-9941-cceddc491573
* [1866013] Fix character dump log typos.dolorous2008-01-091-4/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3229 c06c8d41-db1a-0410-9941-cceddc491573
* Tiles!ennewalker2008-01-051-0/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3194 c06c8d41-db1a-0410-9941-cceddc491573
* Removed: safe_autopickup, safe_zero_exp, lowercase_invocations,haranp2007-11-161-1/+1
| | | | | | | | always_greet, terse_hand, increasing_skill_progress, use_notes, confirm_self_target. (default_autoprayer still exists.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2859 c06c8d41-db1a-0410-9941-cceddc491573
* Gah, yet another minor bugfix to dump_map (third time's the charm)haranp2007-11-081-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2824 c06c8d41-db1a-0410-9941-cceddc491573
* Better map dumping (Darshan)haranp2007-11-081-2/+13
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2823 c06c8d41-db1a-0410-9941-cceddc491573
* Added map dumping (to NAME.map) to the '#' key. The map dump doesn'tharanp2007-11-081-0/+34
| | | | | | | include the hero (i.e., no '@' symbol.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2822 c06c8d41-db1a-0410-9941-cceddc491573
* Merged r2729 (morgue dir creation) from 0.3.haranp2007-11-071-1/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2786 c06c8d41-db1a-0410-9941-cceddc491573
* Menus are now tagged. Menu colours now only apply to a menu with a matchingharanp2007-10-191-0/+2
| | | | | | | | | | | | tag, unless the menu colour tag is empty or "any". Menu colours are specified as tag:colour:pattern, where the "tag:" part is optional (default is empty tag, i.e., all menus.) The following menu tags exist: ability, description, equip, help, inventory, notes, resists, spell, stash. Default .crawlrc should probably be changed (and the docs, too...) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2493 c06c8d41-db1a-0410-9941-cceddc491573
* Minor note formatting improvements (David.)haranp2007-10-161-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2486 c06c8d41-db1a-0410-9941-cceddc491573
* s/Location/Place/ (David)haranp2007-10-161-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2484 c06c8d41-db1a-0410-9941-cceddc491573
* Add past tense to visited branches output, and aj-p-e-g2007-09-211-20/+22
| | | | | | | few corrections. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2172 c06c8d41-db1a-0410-9941-cceddc491573
* Add dump sections for branch/area details for turns andzelgadis2007-09-161-22/+268
| | | | | | | | | | | | experience/kills, with the section names being turns_by_place and kills_by_place. Also includes a "visits" dump section (included in the "misc" section") a brief description of the number of branches/levels/areas/etc you visited. Breaks savefile compatibility. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2102 c06c8d41-db1a-0410-9941-cceddc491573
* In the item selection menu, pressing "." will toggle the next item in thezelgadis2007-09-161-0/+1
| | | | | | | | | | | list; you can press "." repeatedly to select/unselect a number of contiguous items. Also, removed the depedancy upon "menu.h" for formatted_string, since that isn't in menu.h anymore. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2101 c06c8d41-db1a-0410-9941-cceddc491573
* Split off portions of externs.h and enum.h into other files. Thezelgadis2007-09-151-2/+6
| | | | | | | | | | | | | crawl_environment, player and monsters classes have been left in externs.h, which necessitates that all of the enums references by those classes stay in enums.h, since you can't forward declare an enum. However, it's a start. Also, portions of misc.{cc,h} have been split off into traps.{cc,h}, place.{cc,h} and terrain.{cc,h} git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2095 c06c8d41-db1a-0410-9941-cceddc491573
* Added verbose hiscore output to char_dump, andj-p-e-g2007-08-221-26/+68
| | | | | | | | | | | | | | mostly changed morgue information to past time, e.g. "Vehumet was exalted by your worship." (The exception being mutations.) I admit this was very low priority, but it has always bugged me. Included new options (explore_stop for gates and dump hiscore) in the relevant documentation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2027 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed -morgue option being ignored when Crawl is built with Lua bindings (Marc).dshaligram2007-08-171-0/+1
| | | | | | Dropped generation odds of Pan demons post-Orb. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2011 c06c8d41-db1a-0410-9941-cceddc491573
* Finally added vampiric bite attack. Thanks to Jarmoj-p-e-g2007-08-041-1/+4
| | | | | | | | | | for the underlying patch. Only vampires can turn into vampire bats, other species transform into normal bats, so can't draw blood. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1966 c06c8d41-db1a-0410-9941-cceddc491573
* Vampires, yay! Credit mostly goes to Jarmo, thoughj-p-e-g2007-07-141-0/+3
| | | | | | | | | | | | | | | | there are a few traces of things I've changed (that I've included and then commented out). There's still lots of stuff to be added, but they should be playable right now. I notice that their vampiric bite attack needs to be made more probable. Feel free to comment on anything that looks weird, is plain wrong, or goes against the spirit of Crawl/Stonesoup. Positive feedback will be appreciated as well. :) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1870 c06c8d41-db1a-0410-9941-cceddc491573
* Added final score to morguedshaligram2007-07-111-237/+121
| | | | | | | | | | Tuned abjuration parameters slightly: - Monster abjuration attenuates more the more summons it hits. - Upped player abjuration power slightly. May need more tuning. Backlight (corona or glow) makes you extremely unstealthy. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1839 c06c8d41-db1a-0410-9941-cceddc491573
* Step 1 of .des file Lua-isation. The dungeon compiler converts .des files todshaligram2007-06-231-1/+1
| | | | | | | | | | Lua (Lua code can be embedded with {{ <lua code here> }} constructs) that is run to produce the final map. Some maps may be broken, this is untested, lots more work needs to be done. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1629 c06c8d41-db1a-0410-9941-cceddc491573
* Lots of things which used to be members (invis, conf, confusing_touch, etc.)haranp2007-06-231-1/+1
| | | | | | | | are now durations. Removed some unnecessary limitations. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1626 c06c8d41-db1a-0410-9941-cceddc491573
* Correct "artifact" to "artefact".dshaligram2007-06-201-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1607 c06c8d41-db1a-0410-9941-cceddc491573
* A few more char*s fall by the wayside, replaced by strings.haranp2007-06-181-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1598 c06c8d41-db1a-0410-9941-cceddc491573
* Fix for 1726595: notes composed only of whitespace caused a crash.haranp2007-05-301-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1492 c06c8d41-db1a-0410-9941-cceddc491573
* Preliminary integration of Zooko's Xom patch (untested).dshaligram2007-05-281-5/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1489 c06c8d41-db1a-0410-9941-cceddc491573
* Made make_time_string() return std::string, not char*.haranp2007-05-151-5/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1474 c06c8d41-db1a-0410-9941-cceddc491573
* Spell power strings now reflect power caps.haranp2007-05-071-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1413 c06c8d41-db1a-0410-9941-cceddc491573
* Allow Mac users to double-click to launch Crawl:dshaligram2007-05-041-1/+1
| | | | | | | | | - Use argv[0] to figure out where Crawl lives and where to find data files. The Mac Finder sets the working directory to / and the full path to the executable is available in argv[0] when the user double-clicks. - Converted some of the old char*s to std::string. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1407 c06c8d41-db1a-0410-9941-cceddc491573
* Type safety, cast cleanups, etc.haranp2007-05-011-8/+8
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1401 c06c8d41-db1a-0410-9941-cceddc491573
* Removed dud verbose_dump and detailed_stat_dump options, and dead code indshaligram2007-04-291-8/+5
| | | | | | shopping.cc (Haran). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1395 c06c8d41-db1a-0410-9941-cceddc491573
* Cleaned up shop-handling code considerably.haranp2007-04-241-13/+2
| | | | | | | | | | | | | Instead of shops passing around global id_arr arrays, shops use the newly added third argument to item_def::name() which indicates whether to override item ID status. This means that the shop ID SIGHUP protection is now unnecessary; it's been removed. Hopefully I caught all the places where the stash tracker tries to get item names and fixed them, but I might have missed something. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1359 c06c8d41-db1a-0410-9941-cceddc491573
* Eliminated it_name(), in_name(), item_name(). The function to use isharanp2007-04-211-5/+1
| | | | | | | | now item_def::name(). Cleaned up a lot of code in the process. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1341 c06c8d41-db1a-0410-9941-cceddc491573
* Added ice statues.dshaligram2007-04-091-2/+4
| | | | | | | | | | Monster spells now use spell_type instead of the old mon_spell_type. Fixed buggy behaviour when banished from Labyrinth. DGL_WHEREIS was not including current time, fixed. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1275 c06c8d41-db1a-0410-9941-cceddc491573
* Some more code refactoring in god messages.haranp2007-04-041-12/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1214 c06c8d41-db1a-0410-9941-cceddc491573
* Added open check for .where files.dshaligram2007-03-251-5/+7
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1097 c06c8d41-db1a-0410-9941-cceddc491573
* Applied whereis patch from crawl.akrasiac.org (tracks where the player is indshaligram2007-03-251-0/+17
| | | | | | | | the dungeon). All dgamelaunch patches are conditionalised by DGL_foo #ifdefs. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1096 c06c8d41-db1a-0410-9941-cceddc491573