summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.cc
Commit message (Collapse)AuthorAgeFilesLines
* Apply the recent commits to branch, update the version and change log toj-p-e-g2008-07-311-1/+1
| | | | | | | 0.4.3. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6740 c06c8d41-db1a-0410-9941-cceddc491573
* When DGAMELAUNCH is defined, use gmtime() instead of localtime() so it's ↵dshaligram2008-07-301-1/+1
| | | | | | easier to keep multiple dgl servers in sync. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6733 c06c8d41-db1a-0410-9941-cceddc491573
* Apply my commits r6601, r6604 and r6605 to the 0.4 branch, excludingj-p-e-g2008-07-181-1/+5
| | | | | | | purely cosmetic changes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6606 c06c8d41-db1a-0410-9941-cceddc491573
* Applying r6596 to 0.4.ennewalker2008-07-181-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6597 c06c8d41-db1a-0410-9941-cceddc491573
* Apply r6579 to 0.4.1, and revert my local makefile change (oops!)j-p-e-g2008-07-171-8/+10
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6581 c06c8d41-db1a-0410-9941-cceddc491573
* Apply some more commits to bring 0.4 up to date.j-p-e-g2008-07-101-4/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6484 c06c8d41-db1a-0410-9941-cceddc491573
* Another clean up, and add some new weapon speech.j-p-e-g2008-07-071-5/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6439 c06c8d41-db1a-0410-9941-cceddc491573
* Add a function x_chance_in_y(x,y) to replace the variousj-p-e-g2008-07-061-4/+4
| | | | | | | | random2(y) < x checks, e.g. x_chance_in_y(weight, totalweight). This should make things a bit more readable. Apply it to a number of files. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6428 c06c8d41-db1a-0410-9941-cceddc491573
* Many code cleanups, mostly involving using stack_iterator andharanp2008-07-021-15/+9
| | | | | | | radius_iterator instead of the previous setup. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6347 c06c8d41-db1a-0410-9941-cceddc491573
* Redraw the player's experience level in the right place.dolorous2008-06-301-3/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6255 c06c8d41-db1a-0410-9941-cceddc491573
* Properly redraw the player's skill level, experience level, etc. after dolorous2008-06-301-5/+8
| | | | | | | losing a level due to draining. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6253 c06c8d41-db1a-0410-9941-cceddc491573
* Disallow quivering equipped items. (You can still (fi)re your wieldedj-p-e-g2008-06-261-10/+7
| | | | | | | | weapon if you insist, you just can't quiver it.) And another general clean-up. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6149 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 1996837: Allow equipping spellcasters with ammunition on generation.j-p-e-g2008-06-191-13/+11
| | | | | | | Fix 1997179: Merge zombies correctly in the monster list. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5977 c06c8d41-db1a-0410-9941-cceddc491573
* For jewellery with pluses and wands, only make an ident note when thezelgadis2008-06-191-2/+1
| | | | | | | | | | | | first item of the type is identified, not when the charges/pluses of any item of the type is identified. Make sure that artefacts have nothing to do with the identification level of jewellery by making versions of set_ident_type() and get_ident_type() which accept a full item_def as a parameter. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5973 c06c8d41-db1a-0410-9941-cceddc491573
* Fix bug where dumping the character to file would turn off note taking forzelgadis2008-06-141-7/+12
| | | | | | | | | | the rest of the game session. Make a note if the user starts the game in wizard mode, when wizard mode is entered, and when death is escaped via wizard mode. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5812 c06c8d41-db1a-0410-9941-cceddc491573
* Use INSTANT_DEATH instead of -9999 where applicable.dolorous2008-06-081-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5568 c06c8d41-db1a-0410-9941-cceddc491573
* Change level up message (don't mention class anymore). Announce thatdploog2008-05-311-1/+1
| | | | | | | level 27 is the last one. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5370 c06c8d41-db1a-0410-9941-cceddc491573
* Yet another session of comment/whitespace cleanups.j-p-e-g2008-05-271-4/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5291 c06c8d41-db1a-0410-9941-cceddc491573
* Make Xom's amusement at collateral damage take good neutral monsters dolorous2008-05-201-1/+1
| | | | | | | into account. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5154 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fixes.dolorous2008-05-201-5/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5152 c06c8d41-db1a-0410-9941-cceddc491573
* Spelling fix.dploog2008-05-141-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5046 c06c8d41-db1a-0410-9941-cceddc491573
* Add more comment fixes.dolorous2008-05-141-7/+8
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5045 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fix.dolorous2008-05-141-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5044 c06c8d41-db1a-0410-9941-cceddc491573
* Properly take item quantities into account when they're destroyed on the dolorous2008-05-141-1/+1
| | | | | | | floor. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5043 c06c8d41-db1a-0410-9941-cceddc491573
* Consolidate routines for elements' destroying items on the floor.dolorous2008-05-141-14/+71
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5038 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fix.dolorous2008-05-051-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4879 c06c8d41-db1a-0410-9941-cceddc491573
* Move your_hand() from spells4.cc to misc.cc.dolorous2008-05-041-1/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4870 c06c8d41-db1a-0410-9941-cceddc491573
* Add partial resistance to the list of canned messages.dolorous2008-05-011-5/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4792 c06c8d41-db1a-0410-9941-cceddc491573
* Add spacing fixes.dolorous2008-05-011-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4791 c06c8d41-db1a-0410-9941-cceddc491573
* Add more minor cosmetic fixes.dolorous2008-05-011-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4790 c06c8d41-db1a-0410-9941-cceddc491573
* Add more minor cosmetic fixes.dolorous2008-04-271-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4685 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up follower and cleansing flame routines some more. If you dolorous2008-04-191-3/+3
| | | | | | | | worship a good god, cleansing flame will no longer damage neutral monsters, since attacking neutrals offends the good gods. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4393 c06c8d41-db1a-0410-9941-cceddc491573
* Another code cleanup.j-p-e-g2008-04-151-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4244 c06c8d41-db1a-0410-9941-cceddc491573
* Adjust cleansing flame damage. It's now consistent between the player dolorous2008-04-111-5/+9
| | | | | | | | | and monsters; it now damages non-evil and non-unholy monsters (but only at a 50% rate); and, if you worship a good god, your followers resist it. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4204 c06c8d41-db1a-0410-9941-cceddc491573
* Add more whitespace fixes.dolorous2008-04-111-25/+25
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4202 c06c8d41-db1a-0410-9941-cceddc491573
* Revert previous change, as it's erroneous; only evil god worshippers dolorous2008-04-111-1/+1
| | | | | | | feel TSO's wrath. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4201 c06c8d41-db1a-0410-9941-cceddc491573
* Make players who worship non-good gods vulnerable to cleansing flame. dolorous2008-04-111-1/+1
| | | | | | | | Note that neutral god worshippers should currently only be blasted with it if they draw the Wrath card. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4200 c06c8d41-db1a-0410-9941-cceddc491573
* FR 1927675: Change message for jellies corroding itemsj-p-e-g2008-03-281-2/+4
| | | | | | | | | | | | | | | from "Your Foo is eaten away!" (misleading to newbies) to "The acid corrodes your Foo!" FR 1926880: Auto-id "Gourmand when eating chunks while not hungry (unless already a chunklover otherwise). Should there be any case where can_ingest is called as a check, without actual eating (suppress_msg == true, I'd guess) the identification should be restricted to actual eating. I haven't found any, though. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3911 c06c8d41-db1a-0410-9941-cceddc491573
* More progress on TSO. His retribution is now as follows:dolorous2008-03-111-1/+2
| | | | | | | | | | | | | | | | | | * 33% chance of summoning daevas. * 33% chance of blasting you with cleansing flame. If you worship an evil god, you are now vulnerable to cleansing flame even if you're not undead or demonic; it seems fitting, especially as many living evil monsters seem to be priestly types. (The code for the blast is currently based on a modified version of Xom's divine lightning.) * 33% chance of booming voice. This is currently identical to Zin's version, except that the message is different. His smiting has been removed. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3593 c06c8d41-db1a-0410-9941-cceddc491573
* Identify post-mortem inventory prior to chardump, so morgue.txtj-p-e-g2008-02-021-12/+12
| | | | | | | will contain the id information. (David) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3387 c06c8d41-db1a-0410-9941-cceddc491573
* Implemented dispel undead for monsters.dshaligram2008-01-271-7/+1
| | | | | | Cold resistance was broken, fixed. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3349 c06c8d41-db1a-0410-9941-cceddc491573
* Added help for stash-search (dpeg).dshaligram2008-01-261-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3338 c06c8d41-db1a-0410-9941-cceddc491573
* [1861488] Fixed passwall bugs.dshaligram2008-01-251-8/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3330 c06c8d41-db1a-0410-9941-cceddc491573
* Smooth out TSO's draining protection to work with fractional piety for dolorous2008-01-201-2/+27
| | | | | | | both the raw damage and the experience loss. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3312 c06c8d41-db1a-0410-9941-cceddc491573
* As brought up during the good god overhaul discussion a few months ago, dolorous2008-01-161-8/+0
| | | | | | | | | | | adjust TSO's life protection to work as follows: put it in player_prot_life() so it's displayed just as Zin's mutation protection is; give one, two, or three levels of it depending on piety (the values are 50, 100, and 150 for now); and add a description of it to the religion screen. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3284 c06c8d41-db1a-0410-9941-cceddc491573
* More resist fixes.dshaligram2008-01-101-63/+42
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3242 c06c8d41-db1a-0410-9941-cceddc491573
* First cut at new multilevel resists for monsters, needs a lot of work - ↵dshaligram2008-01-091-1/+1
| | | | | | suggestions welcome. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3232 c06c8d41-db1a-0410-9941-cceddc491573
* Monsters get multilevel resists (incomplete). Monster data needs to bedshaligram2008-01-091-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | adjusted per monster to hand out the right resists. The current MR_RES_FIRE gives one level of resistance only. Added a real ghost structure, discarded the old ghost values array. Adjusted bones file format so bones will work out-of-the-box with Hearse. Breaks bones format, older bones will be rejected. Fixed some maps with bad DEPTHs. Added more safe answers in Y/N prompts, added a check to make it less likely that Crawl will spin in a tight loop reading input from a closed tty. (Experimental) !a will override existing foe of friendlies in LOS. Blademasters no longer pick up stuff to throw (Erik). Zombies of swimming things are also swimming things. Currently applies only to zombies explicitly placed in .des files, since fish zombies cannot be generated otherwise (can of worms). Morgue is now saved before showing the inventory and other boring end-of-game stuff. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3231 c06c8d41-db1a-0410-9941-cceddc491573
* Remove Zin's protection from draining attacks, as well as piety gain for dolorous2008-01-051-1/+1
| | | | | | | | killing demons and undead. TSO is now the only good god that retains these things, as they suit him better. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3209 c06c8d41-db1a-0410-9941-cceddc491573
* Add one more cleanup of protection from harm. Since there's more than dolorous2007-12-011-8/+2
| | | | | | | | | one type of it now, expand god_protects_from_harm() to include the logic for when certain gods do it. Also, as brought up on crawl-ref-discuss, make Elyvilon do it both casually and during prayer. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2959 c06c8d41-db1a-0410-9941-cceddc491573