summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/chardump.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 letter <-> index from stuff.cc to prompt.cc (wheals)Nicholas Feinberg2014-07-281-0/+1
|
* Track eating in action counts.Neil Moore2014-07-051-0/+5
|
* Fold mutation_def::wizname into ::short_desc.Shmuale Mark2014-07-031-1/+2
| | | | | | | | In only a few cases were the strings different, and in even fewer were they significantly so. In general, I used the short_desc for the combined one, since someone running wizmode can presumably look at mutation-data.h, except that "large and strong wings" got changed to "big wings", and "life protection" to "negative energy resistance".
* Remove player burden and carrying capacitygammafunk2014-05-261-20/+0
| | | | | | | | | | | Item inventory weights (based on item mass) generally don't lead to meaningful decisions that justify the inventory juggling and interface problems that come from having burden states. The 52-slot limit is a better system for limiting inventory and providing inventory-related decisions because it's not so fine-grained and doesn't require the player to examine weights for each slot. Work is ongoing to improve the slot system by consolidating food types and handling strategic consumables in a different way.
* Chance function(void) to function()reaverb2014-05-241-1/+1
|
* Track gold paid to Gozag and show it in character dumpsChris Campbell2014-05-071-1/+8
|
* Remove the unused jelly formChris Campbell2014-04-101-0/+2
|
* Rename unchivalric_attack_type and friends.Shmuale Mark2014-03-061-2/+2
| | | | | | The enum values were never checked in any code relating to chivalry, except to see that a value wasn't 0 (ie it was a forbidden stab). A recent bug arose from the bad naming, too.
* Capitalise evoker names in action count dump (ChrisOelmueller)Neil Moore2014-01-201-2/+2
| | | | | | Both ordinary evokers and evocable unrands failed to have their first letter capitalised, inconsistently with everything else in the table.
* Shadow god: Shadow Form.Steve Melenchuk2014-01-101-0/+3
| | | | | | | | For 9 MP, 10 piety, and skill drain, you transform into a swirling mass of dark shadows with immunity to poison, draining, torment, and hostile enchantments as well as 50% damage reduction and a transformation of your bled smoke into miasma (guaranteed on hit). However, you also only deal 50% melee damage and suffer a double-strength spell anti-enhancer.
* Capitalise two sentences in dumps (#7969)Neil Moore2014-01-091-1/+1
| | | | | | They were uncapitalised when the player worshipped TSO, as that god's name does not begin with a capital letter. The in-game messages were fine, because mprf did the capitalisation.
* Fix a typoChris Campbell2013-12-271-1/+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-2/+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.
* Replace `mprf(s)` with `mpr(s)`Chris Oelmueller2013-11-281-1/+1
| | | | Scripted, then manually reviewed.
* Don't bundle all evokables as "miscelanneous" in action counts.Adam Borowski2013-11-161-0/+16
|
* More formatting fixes for return (...);Neil Moore2013-11-151-3/+3
|
* Drop unnecessary parentheses from return statements.Adam Borowski2013-11-151-3/+3
|
* 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.
* Hush a warning on 32 bit.Adam Borowski2013-10-081-2/+2
|
* Reformat multi-line array literals.Adam Borowski2013-10-051-1/+2
|
* Deal with some less+libvte weirdness.Adam Borowski2013-10-041-2/+5
|
* A new build flag: COLOURED_DUMPS.Adam Borowski2013-10-031-1/+42
| | | | | | If set, maps will be colour-coded to show what vaults were placed, and where. Such dumps are fit for viewing on a terminal (via cat or less -R), but not with GUI text viewers. For HTML, you probably want ansi2html.
* If a crash happens during map generation, dump the whole grd.Adam Borowski2013-10-031-0/+2
| | | | Rather than just some useless screenshot, usually from (0, 0).
* Condense some duplicated menu code for formatted_scrollerChris Oelmueller2013-09-211-1/+2
| | | | | | | | | Also re-align, and highlight input keys as in lots of other places. Show this improved -more- line for viewing character notes, too. The TODO was removed as well because the only effect of dynamically changing displayed "help" information like this is player confusion. Static information works better when it comes to legends.
* Refactor 'you.religion' checks.Brendan Hickey2013-07-281-2/+2
| | | | | Pull 'you.religion [!=]= FOO' checks into a function: you_worship(FOO). This change is part of a large plan to clean up religion.
* Turn pairs of assertions with x > min, x <= max into ASSERT_RANGE.Adam Borowski2013-06-081-2/+1
| | | | | The perl regexp to do so is: s&ASSERT\(([^\n]+) >= ([^\n]+)\);\s*ASSERT\(\1 < ([^\n]+)\);&ASSERT_RANGE($1, $2, $3);&sg;
* Make some functions static and fix a DGL compilation warning.Neil Moore2013-05-261-11/+11
|
* Refactor ASSERT(a && b) -> ASSERT(a); ASSERT(b);Brendan Hickey2013-04-281-1/+2
| | | | | | | Convert conjunctive assertions into separate assertions. This ought to be correctness preserving. I ran the stress tests and didn't notice anything unusual. While I have confidence in it, if you are the slightest bit suspicious of this, please roll it back. Found instances with `ASSERT(\([^(|]*\) && \([^)|]*\))` Manually inspected each instance.
* Include debug.h earlier.Adam Borowski2013-04-261-1/+0
| | | | | Via externs.h -> bitary.h, it was effectively included by everything anyway, and this way simplifies include chains.
* Count stabs on the action dump.Adam Borowski2013-03-171-0/+22
| | | | | | | | This implementation breaks them down by UCAT_type, which is probably too detailed. Ideally, I'd want just two categories: sleep/para stabs (ie, those with no roll that deal massive damage) and the rest (a bit of extra damage). It doesn't matter where we coalesce them, though, so it'd be easy to combine the data at output time.
* Fungus FormBrendan Hickey2013-03-151-0/+3
| | | | | | A bad_form that turns you into a wandering mushroom. Player gains confusing touch, a large stealth bonus, and the inability to move when under hostile observation.
* Simplify handling of version info.Adam Borowski2013-03-141-1/+1
| | | | | They're static strings, there's no point in having functions just to malloc and pass them around.
* A more compact format of vault dumps (ChrisOelmueller).Adam Borowski2013-03-141-1/+1
|
* Don't spam Sprint dumps about having visited 1 branch of the dungeon.Adam Borowski2013-03-091-2/+5
|
* Wisp form.Adam Borowski2013-01-041-0/+3
| | | | | | Can't use any items, but unlike old air form, you can pick them up or drop down. No casting. Randomly blinks from time to time. Sometimes moves as if confused, although won't bump into walls or into allies.
* Bad transformations: enums, messages, gear restrictions.Adam Borowski2012-12-311-0/+9
| | | | | | | The forms are: * animated tree * porcupine * jelly
* Revert "Remove unused option to ignore write errors for save fragments."Adam Borowski2012-12-171-1/+1
| | | | | | | Wasn't unused after all. This reverts commit 85c029f90f2150304624966408f27ed03fa557e6. This reverts commit 8f1bf02ff69b91399f66c8542e115848ba0d79bb.
* Fix USE_DGAMELAUNCH compiles.Neil Moore2012-12-171-1/+1
| | | | | This does mean that an error writing timestamps is a more serious problem than it was before 85c029f.
* Fix "You have visited 2 bazaarss.".Adam Borowski2012-10-241-1/+1
| | | | Not that having multiples is any likely now...
* Drop a lot of unnecessary braces.Adam Borowski2012-10-241-2/+0
| | | | | The perl one-liner I use for this had a bug where it didn't match "else" at the end of a line (ie, most of the time).
* 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.
* Fix the action count not showing thrown weapons.Adam Borowski2012-10-051-2/+12
| | | | | | | I added support for fancy unrands (like the knife of Accuracy) as well, although that's probably overkill. Not handled yet: fumbled stuff. Should we mention what exactly was fumbled?
* Add dump_on_save option (elliott).elliptic2012-09-271-5/+5
| | | | | Option defaults to true and automatically creates/updates your character dump whenever you save the game. Patch contributed by elliott.
* Use std namespace.Raphael Langella2012-08-261-92/+83
| | | | | | | | | | | | | 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.
* Drop some unnecessary braces.Adam Borowski2012-08-161-2/+0
|
* Remove the spell_usage dump entry.Adam Borowski2012-08-161-62/+1
| | | | If someone has it in the config, it is silently upgraded to action_counts.
* Don't center the section header for mutation list in character dumps.Adam Borowski2012-07-291-1/+1
| | | | No other section is centered.
* Word-wrap the monster list in character dumps.Adam Borowski2012-07-291-2/+5
| | | | | | | | | | For full-game characters, having a half page of monsters in view isn't uncommon, having to scroll horizontally that far is not fun. Sadly, we don't know how wide the browser window will be so I'm wrapping at oh-so-narrow 80 columns. Also, the wrapper tends to leave dangling articles at the end of a line, this isn't looking good either.