summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.cc
Commit message (Collapse)AuthorAgeFilesLines
* Trim unnecessary #includes.Adam Borowski2010-01-131-1/+0
|
* Make harpies also steal food from the ground at the player's position.Johanna Ploog2010-01-081-4/+4
| | | | | | Previously, players could (and did!) drop all their food before engaging in combat with harpies. As long as they didn't step off the grid, their stash of food was safe. This is now no longer the case.
* Ignore obscured items in the UIStefan O'Rear2009-12-301-0/+4
| | | | I probably missed a few spots.
* Merfolk (water/ice) elementalists join the Shoals guard.Darshan Shaligram2009-12-291-0/+7
|
* Replace long debug message calls with dprf(), except for cases where a dumb ↵Adam Borowski2009-12-201-15/+5
| | | | | | compiler could call unnecessary functions. For paranoia, I left even any uses of std::string.
* Replace static snprintf() with make_sprintf() where the result is ↵Adam Borowski2009-12-171-2/+1
| | | | | | immediately cast to std::string.
* Make Xom sometimes (< 5% chance) revive the player after death.Johanna Ploog2009-12-091-1/+7
| | | | | | The chance of this happening depends strongly on tension and mood, as well as type of death. I also tried the normal protection from harm but I figure it's more interesting this way. :D
* Further rF- message tweak.Jude Brown2009-11-291-2/+2
| | | | Specify who is being burnt terribly. In this case, it is the player.
* Clarify rF- messages (TGW).Jude Brown2009-11-291-3/+3
| | | | | | "It burns terribly" is unclear in some instances, so change to "The fire/the lava burns terribly". Also change "It scalds you terribly" to "The steam scalds you terribly" for steam.
* Remove header includes from mon-place.h.Robert Vollmert2009-11-271-0/+2
|
* Remove further header-include. env.h now always directly included.Robert Vollmert2009-11-271-0/+1
|
* you.never_die: restore stat on stat-deathMatthew Cline2009-11-241-0/+6
|
* you.never_die tweaksMatthew Cline2009-11-241-2/+2
|
* you.never_die (player::never_die)Matthew Cline2009-11-241-0/+9
| | | | | | If the macros DEBUG or WIZARD are defined, then class player will have the member never_die, which if set to true makes any deadly calls to ouch() return without the game ending.
* If you die to disintegration, say "blown up" not "killed".Adam Borowski2009-11-231-0/+7
|
* Move tutorial state out of Options.Robert Vollmert2009-11-161-1/+1
|
* Remove #include <conio.h> from all over the place. Convert COLORS to an enum.Adam Borowski2009-11-141-1/+0
|
* Fix a crash when _passive_freeze is called with NULL auxCharles Otto2009-11-131-1/+1
| | | | | | ouch can get called with a NULL aux parameter (for example by splash_with_acid), passing that null pointer to _passive_freeze was causing a crash.
* Fix passive freeze proccing on tormentStefan O'Rear2009-11-131-3/+6
|
* Remove obsoleted los.h includes.Robert Vollmert2009-11-131-1/+0
|
* Replace observe_cell by you.see_cell.Robert Vollmert2009-11-131-1/+1
|
* Extract and move file deletion on game end.Robert Vollmert2009-11-121-27/+33
| | | | | | | | This should prevent problems with the morgue dump from making a game unlosable, fixing 2782923. Note that the other problem in that bug report (crash of mons_type_name on invalid monster type) has already been fixed.
* Add summoner and non_actor_summoner to mgen_dataStefan O'Rear2009-11-121-1/+1
| | | | | Monsters now know who summoned them. This will be important later. Probably breaks something; saves are not one of them.
* Rename monspeak/monplace/monstuff to mon-speak/place/stuff.Jude Brown2009-11-121-2/+2
| | | | | I'm pretty sure I've managed to replace every instance of a reference to these files, so I hopefully haven't missed anything.
* Split shouting and stealth code from view.cc.Robert Vollmert2009-11-101-0/+1
|
* Make Fedhas worshipers immune to spore food destruction.Charles Otto2009-11-101-0/+8
|
* Remove option draw_it from viewwindow.Robert Vollmert2009-11-091-1/+1
| | | | | | The only use was just removed. Also move the draw check closer to where it's used.
* Replace mons_wont_attack with monsters::wont_attack.Vsevolod Kozlov2009-11-091-1/+1
|
* Simplify the formula for Jiyva-worshipping players' royal jelly spawns.David Lawrence Ramsey2009-11-061-2/+2
|
* Replace global see_cell by observe_cell and disambiguate old uses.Robert Vollmert2009-11-061-1/+1
| | | | | | | Calls to plain see_cell(pos) were replaced with either observe_cell(pos) or you.see_cell(pos). observe_cell where related to drawing the interface and messaging, you.see_cell for game mechanics, and one or the other in less clear cases (targetting, say).
* Rename is_valid_item to item_def::is_valid.Vsevolod Kozlov2009-11-061-2/+2
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Extract morgue file time formatting into make_file_time.Robert Vollmert2009-11-061-13/+4
|
* Move player_res_asphyx/rotting to player::res_asphyx/rotting.Vsevolod Kozlov2009-11-051-1/+1
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Split game_options from externs.h into options.h.Robert Vollmert2009-11-041-0/+1
|
* Implement "Passive Freeze" mutation (DS)Stefan O'Rear2009-11-021-0/+48
|
* Implement conservation mutations for new DSStefan O'Rear2009-11-021-0/+15
|
* Implement 'Icemail' mutation for new DSStefan O'Rear2009-11-021-0/+7
|
* Splitting up stuff.cc.Robert Vollmert2009-10-301-0/+1
| | | | New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
* Convert player::your_name to std::string.Robert Vollmert2009-10-241-8/+8
| | | | Doesn't seem to break anything...
* Get rid of player_monster_visible.Robert Vollmert2009-10-221-1/+1
| | | | | | The special casing for drowning monsters appears to have been obsoloted by checking ENCH_SUBMERGED instead of calling mons_is_submerged.
* Make Chronos account for player's haste/slow/statue form.Adam Borowski2009-10-221-1/+1
|
* Yank some god invocations from religion.cc into godabil.ccAdam Borowski2009-10-221-0/+1
|
* Bypass player death in test mode.Robert Vollmert2009-10-221-2/+2
|
* Chronos' time step.Adam Borowski2009-10-211-0/+2
|
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-1/+0
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Globally replace see_grid by see_cell.Robert Vollmert2009-10-171-1/+1
|
* Add whitespace fixes.David Lawrence Ramsey2009-10-121-1/+1
|
* kill some DEBUG/WIZARD compiler warnings about unused functionsSteven Noonan2009-10-101-1/+2
| | | | | | | | cloud.cc:45: warning: "bool _killer_whose_match(kill_category, killer_type)" defined but not used mutation.cc:1923: warning: "bool _is_random(mutation_type)" defined but not used ouch.cc:891: warning: "void _wizard_restore_life()" defined but not used Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* project-wide: implement use of platform.h detection macrosSteven Noonan2009-10-101-2/+2
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* 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.