summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
Commit message (Collapse)AuthorAgeFilesLines
* Backport r10443: generalized way of dealing with "disconnect at --more--"zelgadis2009-07-281-1/+12
| | | | | | | hacks. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10444 c06c8d41-db1a-0410-9941-cceddc491573
* Backport r10247 to 0.5: a couple of bug fixes.j-p-e-g2009-07-161-0/+8
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10248 c06c8d41-db1a-0410-9941-cceddc491573
* Apply my previous commit to 0.5.j-p-e-g2009-07-041-2/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10097 c06c8d41-db1a-0410-9941-cceddc491573
* Get rid of the "chunks about to rot away" warning as it's currently morej-p-e-g2009-06-101-21/+1
| | | | | | | | spammy than useful. It might be okay for trunk (though I don't think we need it) but it feels out of place in 0.5. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9937 c06c8d41-db1a-0410-9941-cceddc491573
* Merge r9885 and r9887 from trunk: replace "your inventory suddenly weighs"zelgadis2009-06-071-16/+103
| | | | | | | with one that's self explanatory. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9918 c06c8d41-db1a-0410-9941-cceddc491573
* Added some new tutorial events (not tested with the tile build):zelgadis2009-05-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* * Add Shock/Lightning Bolt to list of spells that don't abort for 'z' ifj-p-e-g2009-05-201-7/+3
| | | | | | | | | | there are no monsters within range. * Give a message if extending a transformation doesn't make it last long enough for the "about to time out" message. * Extension has no effect on Bat Form. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9794 c06c8d41-db1a-0410-9941-cceddc491573
* Fix pluralization problem when recharging a wand only gives it 1 charge.dolorous2009-05-141-3/+6
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9764 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fixes.dolorous2009-05-081-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9753 c06c8d41-db1a-0410-9941-cceddc491573
* Add spacing fixes.dolorous2009-04-301-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9709 c06c8d41-db1a-0410-9941-cceddc491573
* * Tweak Xom's ideas about what makes a funny or boring death.j-p-e-g2009-04-221-39/+46
| | | | | | | | | * Add another option (*sigh*) covering whether W=T and P=R. (Defaults to false.) * Various spacing and comment fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9675 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [2769326]: Deep dwarf ghosts shouldn't regenerate.dolorous2009-04-181-12/+15
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9629 c06c8d41-db1a-0410-9941-cceddc491573
* When annoying monsters affected by holy word, make them target the holy dolorous2009-04-171-1/+2
| | | | | | | word user instead of the player, as is done with torment already. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9603 c06c8d41-db1a-0410-9941-cceddc491573
* * Add stair repelling as a bad Xom effect.j-p-e-g2009-04-131-5/+5
| | | | | | | * Experimentally make tension increase the odds for good effects. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9600 c06c8d41-db1a-0410-9941-cceddc491573
* * After some thought, remove the description toggle from the spell menu asj-p-e-g2009-04-061-9/+13
| | | | | | | | | | the double toggle makes everything much more complicated, and you can easily access the spell descriptions from the very similar 'I' menu. * Don't offer weapons of unknown brand types for ?recharging. I tested a few combination cases, but I might have overlooked something. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9589 c06c8d41-db1a-0410-9941-cceddc491573
* When tormenting a monster, alert it to the actual sorce of the torment, ratherzelgadis2009-04-061-1/+2
| | | | | | | than assuming the player is always the source. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9587 c06c8d41-db1a-0410-9941-cceddc491573
* * When Xom decides to cast Magic Mapping or send you on a teleportationj-p-e-g2009-03-291-10/+11
| | | | | | | | | | | | journey, use a random sample of level grids as a guesstimate of the explored portion of the level, and reduce chances for mostly explored levels. * Don't attempt to cast spells you wouldn't be able to cast (e.g. the transformations for undead). * Tweak random uselessness messages as per FR 2595700. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9565 c06c8d41-db1a-0410-9941-cceddc491573
* Xom again:j-p-e-g2009-03-281-3/+2
| | | | | | | | | | * tweak values for tension and amusement * Xom only laughs about "funny" deaths * gift_timeout rerolling after a bad act depends on its severity * replace the blink effect with position swapping git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9561 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fixes.dolorous2009-03-141-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9476 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [2686874]: Make torment wake sleeping monsters if it damages them.dolorous2009-03-141-5/+9
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9475 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix wizmode targetting commands not flushing messages correctly.j-p-e-g2009-03-071-13/+19
| | | | | | | | | | | | | * Fix Sif Muna's randart book gifts never containing the Vehumet/Kiku special spells, as was originally intended. (Books found elsewhere will never contain the spells.) * In the highly unlikely case the player already has seen all spells don't crash when attempting to gift a book. Instead, simply make the acquirement fail, but be quiet about "the demon of the infinite void" if it was instigated by Sif Muna. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9368 c06c8d41-db1a-0410-9941-cceddc491573
* Remove gnomes and grey elves. (Can someone check the tiles compile?)haranp2009-03-041-1/+0
| | | | | | | Species-shifts saves. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9328 c06c8d41-db1a-0410-9941-cceddc491573
* * Mention the spell's name in the forget_spell() miscast effect.j-p-e-g2009-02-271-2/+4
| | | | | | | | | * Remove a dangling if-statement in monster_die KILL_RESET check. (It really didn't look like it had any purpose, but if I was wrong please correct me.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9257 c06c8d41-db1a-0410-9941-cceddc491573
* Remove the Book of Healing again, properly this time. Note that the dolorous2009-02-261-1/+1
| | | | | | | spells in it are still available. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9227 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify.dolorous2009-02-251-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9220 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify healing rate calculation for vampires, and make vampires' dolorous2009-02-251-2/+22
| | | | | | | | hunger level affect their stat recovery rate similarly to how it affects their healing rate. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9206 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fix.dolorous2009-02-231-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9176 c06c8d41-db1a-0410-9941-cceddc491573
* Add Deep Dwarves patch, with some minor changes.haranp2009-02-231-6/+10
| | | | | | | | | | | | | | | | Add a new mutation, MUT_SLOW_HEALING, which at level 3 blocks all healing; it can't be acquired randomly, but deep dwarves start with it at level 3. This overrides regeneration, including the god-given kind (Trog's Hand.) Fix mutation listings (hopefully I got this right.) There are still some cases where DD HP shaving is not applied: ability HP costs, Staff of Dispater effect, vampiric draining backlash, Sublimation of Blood spell. Fix dancing weapons leaving mgrd incorrect if their weapon can't be generated. Breaks saves. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9173 c06c8d41-db1a-0410-9941-cceddc491573
* Remove aptitude multipliers when picking skills for randart books sincej-p-e-g2009-02-231-6/+3
| | | | | | | they're also not used for other acquirements. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9172 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix Sif Muna occasionally gifting manuals.j-p-e-g2009-02-221-1/+2
| | | | | | | | | | | | * Change innate gourmand eating behaviour to MUT_GOURMAND (innate only). * Only bother prompting to eat chunks if the player has the gourmand mutation or the carnivorous mutation at level 3, or is wearing an amulet of the gourmand or an unidentified amulet. * Remove gourmand behaviour from Ogres, i.e. only Trolls get the mutation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9149 c06c8d41-db1a-0410-9941-cceddc491573
* For 2089989, reallow friendlies to walk into your damaging clouds inharanp2009-02-211-4/+3
| | | | | | | some cases, regardless of god. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9145 c06c8d41-db1a-0410-9941-cceddc491573
* * Tweak spell number of randart books some more.j-p-e-g2009-02-211-9/+9
| | | | | | | | | | | | * Loosen restrictions on spell levels of unknown spells for normal books, so there are more matches even for untrained schools. * Add a new option dump_book_spells that, if set to true (default), will dump the spells even for non-randart book. Useful if you don't know the books' contents by heart and want to know spells at your disposal without checking some spoilers. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9143 c06c8d41-db1a-0410-9941-cceddc491573
* * Lower randart probabilities for book acquirement.j-p-e-g2009-02-201-15/+15
| | | | | | | | | * Lower number of spells in randart books. * Fix acquirement generating manuals of (null). * Lower chance of randart books being named after Pan lords. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9142 c06c8d41-db1a-0410-9941-cceddc491573
* Book acquirement again:j-p-e-g2009-02-181-29/+34
| | | | | | | | | | * 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 [2581197]: Make glow status consistent with magical contamination by dolorous2009-02-171-3/+3
| | | | | | | fixing off-by-one errors when checking the latter. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9113 c06c8d41-db1a-0410-9941-cceddc491573
* Fix randart books being much too cheap. (Yes, this was actually a bug.)j-p-e-g2009-02-161-1/+4
| | | | | | | | A randart book's rarity is now defined as the average of its three rarest spells. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9101 c06c8d41-db1a-0410-9941-cceddc491573
* Fix warning.haranp2009-02-151-29/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9096 c06c8d41-db1a-0410-9941-cceddc491573
* And Haran is right that deprecated code should be removed rather thanj-p-e-g2009-02-151-158/+4
| | | | | | | commented out. Thus axing the old book acquirement code. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9095 c06c8d41-db1a-0410-9941-cceddc491573
* Remove debugging statements (argh!) and tweak book acquirement chances.j-p-e-g2009-02-151-9/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9094 c06c8d41-db1a-0410-9941-cceddc491573
* Overhaul book acquirement.j-p-e-g2009-02-151-27/+141
| | | | | | | | | | | | | | | 1. Do a skill check to decide on manual vs. spellbook (except for Xom and Sif Muna who never gift manuals). 2. If a spellbook, pick randart or normal books with fixed chances. 3. Make randart themes dependant on actual skills, not aptitudes. 4. For normal spellbooks, pick the book randomly with weights favouring books with many unknown spells of schools you're highly skilled in. (Bye-bye, fixed book acquirement order!) Formulas (as suggested by David) may need tweaking, feedback welcome! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9093 c06c8d41-db1a-0410-9941-cceddc491573
* Remove a great many cases where mgrd is accessed directly in favourharanp2009-02-131-19/+21
| | | | | | | | | | | 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
* Clearing trapping nets moved into player::moveto() and level change.haranp2009-02-121-3/+0
| | | | | | | This fixes some bugs (e.g. Portal spell and nets interact properly.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9036 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fix.dolorous2009-02-081-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8975 c06c8d41-db1a-0410-9941-cceddc491573
* Properly handle holy word when it kills a monster and the monster avoids dolorous2009-02-081-10/+15
| | | | | | | death. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8974 c06c8d41-db1a-0410-9941-cceddc491573
* Add yet more minor cosmetic fixes.dolorous2009-02-081-14/+14
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8967 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes.dolorous2009-02-051-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8908 c06c8d41-db1a-0410-9941-cceddc491573
* After some thought, remove assumptions about armor subtype order again. dolorous2009-02-051-1/+6
| | | | | | | | There are still some left, but they're mostly checks for armor greater than plate mail, and they still work with the current code. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8906 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fix.dolorous2009-02-051-3/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8904 c06c8d41-db1a-0410-9941-cceddc491573
* Partially fix get_random_armour_type being completely broken (e.g. wizardharanp2009-02-041-9/+2
| | | | | | | | | hats and caps can get generated again.) get_random_armour_type makes assumptions about the order of armour_type, which were invalidated by r8681; I'm hesitant to touch the order again for fear of breaking something. dolorous, can you check? git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8891 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up acquirement subtype determination code. (Another goto bites the dust.)haranp2009-02-041-567/+537
| | | | | | | Be a bit more generous regarding books for Evoc and Invoc types. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8890 c06c8d41-db1a-0410-9941-cceddc491573