summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
Commit message (Collapse)AuthorAgeFilesLines
* * Another magic mapping fix in cooperation with zebez. Thanks! :)j-p-e-g2009-07-281-3/+6
| | | | | | | | | * Don't make Detect creatures "detect" monsters you can currently see. * Replace rock stair tiles with Eino's escape hatch tiles. * Update change log once again. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10447 c06c8d41-db1a-0410-9941-cceddc491573
* Backport r10397 to 0.5: conjure flame/blink fix, packaging with tar.j-p-e-g2009-07-251-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10398 c06c8d41-db1a-0410-9941-cceddc491573
* * Another patch by zebez: Display fountain tiles for magic mapping.j-p-e-g2009-07-241-1/+1
| | | | | | | | * Fix 2826781: Black background for Detect Items/Creatures tiles after magic mapping. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10393 c06c8d41-db1a-0410-9941-cceddc491573
* Backport r10255 to 0.5.j-p-e-g2009-07-171-2/+2
| | | | | | | Also update change log. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10256 c06c8d41-db1a-0410-9941-cceddc491573
* Apply trunk r10145 to 0.5.dolorous2009-07-111-5/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10146 c06c8d41-db1a-0410-9941-cceddc491573
* Apply r10141 to trunk: Vampiric Draining works against summons, only without ↵evktalo2009-07-111-3/+4
| | | | | | the healing. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10142 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 minor cosmetic fixes.dolorous2009-04-221-5/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9677 c06c8d41-db1a-0410-9941-cceddc491573
* * Tweak Xom's ideas about what makes a funny or boring death.j-p-e-g2009-04-221-2/+1
| | | | | | | | | * 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
* * A few starting choice restriction tweaks.j-p-e-g2009-03-241-2/+3
| | | | | | | | | | | | | | | | | | * Increase probability of Xom acts some more, in particularly tension ones. * Greatly lower the chance of Xom doing a bad act despite xom_is_nice() having been rolled. (Now that Xom's mood is no longer predefined, it's not really necessary anymore.) * When making Xom cast a spell, distinguish between spells that require tension and those that don't. * Monsters that are more than 3 waypoints away from their target grid don't count towards tension. (This applies to monsters attracted by noise to a nearby position, or monsters "tracking" you.) * If there are no monsters within line of sight (including invisible ones), tension will always be zero. (This avoids the mysterious berserk effects while a monster is lurking around the corner.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9543 c06c8d41-db1a-0410-9941-cceddc491573
* Add spacing fixes.dolorous2009-03-151-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9493 c06c8d41-db1a-0410-9941-cceddc491573
* When casting Vampiric Draining, don't mention the monster you're dolorous2009-03-151-2/+1
| | | | | | | | | | | draining. First, it's consistent with Yred's Drain Life; second, it should generally be obvious from the wounding message which monster you're draining; and third, it avoids the message "You feel life coursing from DEAD MONSTER into your body!" if the damage the monster takes before its life force courses into you kills it. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9491 c06c8d41-db1a-0410-9941-cceddc491573
* Add more miscellaneous minor fixes.dolorous2009-03-141-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9483 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fix.dolorous2009-03-141-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9479 c06c8d41-db1a-0410-9941-cceddc491573
* Add more minor cosmetic fixes.dolorous2009-03-131-4/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9440 c06c8d41-db1a-0410-9941-cceddc491573
* Add a few last consistency fixes.dolorous2009-03-131-4/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9439 c06c8d41-db1a-0410-9941-cceddc491573
* Fix Vampiric Drain backlash check.dolorous2009-03-131-5/+8
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9438 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fixes.dolorous2009-03-131-13/+10
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9437 c06c8d41-db1a-0410-9941-cceddc491573
* Fix inconsistencies between Vampiric Draining and Yred's Drain Life: the dolorous2009-03-131-12/+15
| | | | | | | | | former no longer gives 1 HP minimum, but no longer displays the "life coursing into your body" message if you don't gain any HP; and the latter no longer works on summoned monsters. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9436 c06c8d41-db1a-0410-9941-cceddc491573
* Fix comment.dolorous2009-03-131-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9435 c06c8d41-db1a-0410-9941-cceddc491573
* Refix [2686002]: Vampiric draining, if it successfully damages a dolorous2009-03-131-9/+13
| | | | | | | monster, will now always restore a minimum of 1 HP. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9434 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify again.dolorous2009-03-131-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9432 c06c8d41-db1a-0410-9941-cceddc491573
* Revert r9430, as Yred's Drain Life ability has a minimum gain of 3 dolorous2009-03-131-2/+2
| | | | | | | (which, when divided by 2, is always at least 1). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9431 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [2686002]: Vampiric draining (and Yred's Drain Life ability) could dolorous2009-03-131-2/+2
| | | | | | | succeed, but give you 0 HP, so make them give a minimum of 1 HP. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9430 c06c8d41-db1a-0410-9941-cceddc491573
* Since Poison Weapon won't work on crushing-type weapons, don't allow dolorous2009-03-111-4/+5
| | | | | | | randart crushing-type weapons to have the venom brand either. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9415 c06c8d41-db1a-0410-9941-cceddc491573
* Axe some more obsolete functions as well as the rotting ability thatj-p-e-g2009-02-271-47/+0
| | | | | | | isn't used anywhere. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9256 c06c8d41-db1a-0410-9941-cceddc491573
* Change Transmutation -> Transmutations for consistency withj-p-e-g2009-02-221-2/+2
| | | | | | | Translocations and because it sounds a bit better. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9150 c06c8d41-db1a-0410-9941-cceddc491573
* Fix warning.haranp2009-02-151-61/+15
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9096 c06c8d41-db1a-0410-9941-cceddc491573
* Remove a great many cases where mgrd is accessed directly in favourharanp2009-02-131-8/+5
| | | | | | | | | | | 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
* Dancing weapons fix for trunk.haranp2009-02-121-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9033 c06c8d41-db1a-0410-9941-cceddc491573
* Add formatting fix.dolorous2009-02-071-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8959 c06c8d41-db1a-0410-9941-cceddc491573
* [2070013]: newly created, animated, etc. friendly monsters now default toharanp2009-02-031-21/+15
| | | | | | | | | | | 'follow me' behaviour, rather than following your last command (even if was before they were summoned.) Their behaviour can still be changed by giving them commands, of course. The previous behaviour was clearly intentional so I'm not too sure about this change; feel free to revert if I'm missing something. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8886 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify checks for grids containing water.dolorous2009-01-261-3/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8763 c06c8d41-db1a-0410-9941-cceddc491573
* Fix Tukima's Dance crashing if the player is holding no weapon.zelgadis2009-01-171-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8491 c06c8d41-db1a-0410-9941-cceddc491573
* Rename Transmigration -> Transmutation.j-p-e-g2009-01-111-1/+1
| | | | | | | | Move randart spellbook tiles into subfolder /artefact, like for other artefacts. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8415 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2496474: Bardings melding into centaurs.j-p-e-g2009-01-111-1/+1
| | | | | | | | | | Fix 2496520: Quivered weapons getting displayed as melded. Also, summoned monsters can no longer be affected by vampiric draining (spell or brand, vampire bite was already disallowed). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8413 c06c8d41-db1a-0410-9941-cceddc491573
* Display basic resistance information. I'm putting this in so thatharanp2009-01-101-11/+1
| | | | | | | | there'll be a base to work on; of course the format can (and should) be improved. Currently it's one line per resistance. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8396 c06c8d41-db1a-0410-9941-cceddc491573
* Make the position of monster held items (-2, -2) rather than (0, 0), so thatzelgadis2009-01-081-2/+10
| | | | | | | | | | | | | | | any valid item in mitm[] which is still at (0, 0) by the time debug_item_scan() is called must be buggy. Also set the link fields of monster held items to NON_ITEM + 1 + monster_index, so that it's easy to tell which monster is holding any given item; this is used in debug_mons_scan() and monsters::pickup() to do some sanity checking of monster inventory. I've tried to thoroughly test this, but there might still be some bugs left. Breaks savefile compatibility (or, rather, will lead to endless error messages if you use an old save file). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8322 c06c8d41-db1a-0410-9941-cceddc491573
* Comment the previous commit.haranp2009-01-071-0/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8306 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [2483184]: submerged and invisible monsters caused bad messagingharanp2009-01-071-8/+5
| | | | | | | for Oz's Refrigeration. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8305 c06c8d41-db1a-0410-9941-cceddc491573
* Adding REVISION() macro to all source files.ennewalker2009-01-041-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8217 c06c8d41-db1a-0410-9941-cceddc491573
* [2483338] Fixing tiles crash during 'Detect Items' spell.ennewalker2009-01-031-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8174 c06c8d41-db1a-0410-9941-cceddc491573
* Expand the setting of spell_type in mgen_data to include all dolorous2009-01-031-26/+43
| | | | | | | | monster-creating spells, and avoid assertion failures caused by setting an abjuration duration of 0 and a spell_type to something other than 0. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8162 c06c8d41-db1a-0410-9941-cceddc491573
* Add more minor cosmetic fixes.dolorous2009-01-031-7/+11
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8161 c06c8d41-db1a-0410-9941-cceddc491573
* Add more minor cosmetic fixes.dolorous2009-01-011-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8087 c06c8d41-db1a-0410-9941-cceddc491573
* Added BEAM_CHAOS and changed chaos launchers/ammo to use that. Currently onlyzelgadis2008-12-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | chooses a different, random beam flavour (which undoudtedly needs to have their relative weights changed after playtesting) for each square it passes through, but in the future it might do things like bounce off walls at weird angles or animate weapons left laying on the ground. Added CLOUD_CHAOS, though it doesn't do anything yet. Monsters which are marked summoned or otherwise given ENCH_ABJ can also be marked with the type of summoning that happened, which is stored in the until-now-unused ENCH_SUMMON. This is useful for figuring out if a monster has ENCH_ABJ but isn't really summoned (like fire vortices created by Fire Storm or dancing weapons created by Tukima's Dance) so that they won't be affected by abjuration. It's also currently used to do a different "dissapears in a puff of smoke" messages for summoned monsters based on the summoning type, so that monsters summoned by Shadow Creature "dissolve into shadows" and don't leave behind any clouds, and temporary god gift monsters from good gods "dissolve into sparkling lights". In the future it might be used to do temporarily animated corpses, which turn back into a corpse when killed or when the animation runs out. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7778 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify handling of monsters without skeletons. Note that monsters dolorous2008-11-091-1/+1
| | | | | | | | that have skeletons, but cannot be zombified, will now leave skeletons after their corpses rot. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7432 c06c8d41-db1a-0410-9941-cceddc491573
* Add yet more holy being-related cleanups.dolorous2008-10-301-3/+7
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7317 c06c8d41-db1a-0410-9941-cceddc491573
* Add yet another minor cosmetic fix.dolorous2008-10-301-1/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7316 c06c8d41-db1a-0410-9941-cceddc491573
* Add more holy being-related cleanups.dolorous2008-10-301-14/+19
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7315 c06c8d41-db1a-0410-9941-cceddc491573