summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
Commit message (Collapse)AuthorAgeFilesLines
* Tweak some docs, and add Airstrike to the list of spells that don'tj-p-e-g2009-07-281-0/+5
| | | | | | | require a range check. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10458 c06c8d41-db1a-0410-9941-cceddc491573
* Backport r10426 and r10427.j-p-e-g2009-07-271-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10428 c06c8d41-db1a-0410-9941-cceddc491573
* * Change spell range display to something like @----->..j-p-e-g2009-07-231-3/+2
| | | | | | | | | This should be a bit clearer and is closer to the power display that also uses dots for potential not yet reached. * Fix 2824220: Magic mapping revealing real terrain tiles. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10388 c06c8d41-db1a-0410-9941-cceddc491573
* Backport prompt for Mephitic Cloud when targeting self to 0.5.j-p-e-g2009-07-231-0/+10
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10383 c06c8d41-db1a-0410-9941-cceddc491573
* Apply my previous commit to 0.5.j-p-e-g2009-07-041-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10097 c06c8d41-db1a-0410-9941-cceddc491573
* * Add SDL licence, update docs (yet again).j-p-e-g2009-06-111-1/+9
| | | | | | | | | | | * Add range flash to 'z'. * Default HISCORE_WEAPON_DETAIL to true. * Rename CREDITS to CREDITS.txt to make it more accessible to Windows users. :p I guess changes.stone_soup should also be renamed, maybe to changelog.txt. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9956 c06c8d41-db1a-0410-9941-cceddc491573
* Remove the 0 MP check for the 'z' command.j-p-e-g2009-06-081-6/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9923 c06c8d41-db1a-0410-9941-cceddc491573
* Revert spell casting sound system to 0.4 behaviour, since the new soundzelgadis2009-06-021-0/+5
| | | | | | | system is incomplete. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9881 c06c8d41-db1a-0410-9941-cceddc491573
* Reduce screen-flicker and clearing of the message window when re-doing thezelgadis2009-05-281-2/+4
| | | | | | | | | | | previous command (`) (at least for actions involving selecting an item from inventory, selecting an ability to use, selecting a spell to cast, and selecting a spell to memorize). Not tested with the tiles build. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9839 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 'z' aborting for the Dig spell with no monsters in sight.j-p-e-g2009-05-221-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9797 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-1/+5
| | | | | | | | | | 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
* Add Evaporate to the list of spells that get a bonus of 1 when checkingj-p-e-g2009-05-181-0/+1
| | | | | | | | range against distance to monsters, so z doesn't bail out if a monster is *just* outside the range but would be hit by the cloud. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9792 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix Bat Form restrictions not applying to choice by clicking (Tiles).j-p-e-g2009-05-181-1/+9
| | | | | | | * Allow </> as synonyms for left/right hand in swap_rings(). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9791 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
* * Some more tweaks to the spellcasting interface.j-p-e-g2009-05-041-2/+2
| | | | | | | | | * Colour items out of range darkgrey, like we do for floor/monsters. * Fix berserk monsters choosing one of the nearest monsters randomly. (Seriously, I must have been half asleep when I wrote that.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9733 c06c8d41-db1a-0410-9941-cceddc491573
* A few tweaks to the range checks for z.j-p-e-g2009-05-041-6/+18
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9731 c06c8d41-db1a-0410-9941-cceddc491573
* Some spellcasting modifications, as discussed on c-r-d.j-p-e-g2009-05-031-36/+140
| | | | | | | | | | | | | * Spells are marked grey if you lack the necessary magic or if there are no visible monsters within range. * z bails out if there are no monsters in range * Z is the same as the old z behaviour * Wands now need to be e(V)oked. Feedback welcome! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9727 c06c8d41-db1a-0410-9941-cceddc491573
* Check for the ogre genus in more places, in case another ogre species is dolorous2009-04-291-1/+1
| | | | | | | ever added. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9701 c06c8d41-db1a-0410-9941-cceddc491573
* [2771954] Fixing spell key reassign menu, which no longer allowed ↵ennewalker2009-04-181-0/+2
| | | | | | reassignment and only showed descriptions. This is a partial revert of r9589. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9619 c06c8d41-db1a-0410-9941-cceddc491573
* * After some thought, remove the description toggle from the spell menu asj-p-e-g2009-04-061-8/+1
| | | | | | | | | | 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
* Fix 2726622: untransforming not prompting for safe-inscribed equipmentj-p-e-g2009-04-061-6/+6
| | | | | | | | | | | | Also, when transforming voluntarily (i.e. not via Xom or by drawing a card) you get prompted for the loss of safe-inscribed equipment. If you opt out, it costs neither turn nor mana. There's an edge case when you change from one transformation to another one: if that fails for whatever reason you lose the turn (due to untransforming) and the spell fizzles (including mana loss). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9588 c06c8d41-db1a-0410-9941-cceddc491573
* * When Xom decides to cast Magic Mapping or send you on a teleportationj-p-e-g2009-03-291-2/+0
| | | | | | | | | | | | 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
* Add a few more Xom messages. Also, since he already has a mass dolorous2009-03-201-1/+1
| | | | | | | | confusion effect, replace Mass Confusion with Cause Fear in his random spell list. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9520 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix 2687930: Shorten the spell menu more, and don't call update_title() j-p-e-g2009-03-161-3/+3
| | | | | | | | at '?' as apparently all it does is hide the first spell line. * Uncomment the autoinscription of weapons of distortion in init.txt. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9511 c06c8d41-db1a-0410-9941-cceddc491573
* * Tweak shop command help for Tiles.j-p-e-g2009-03-151-2/+2
| | | | | | | | | * Hook card descriptions into database. This is far from optimal at the moment, e.g. searching for the portal card returns the Portal spell as best match. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9497 c06c8d41-db1a-0410-9941-cceddc491573
* Typo fix.dolorous2009-03-151-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9492 c06c8d41-db1a-0410-9941-cceddc491573
* * Add description toggle (only '?' this time) into spellcasting menu andj-p-e-g2009-03-111-31/+33
| | | | | | | | | | make I use a loop as well, so that z?? and I are now functionally identical. (Which of course brings up the question of whether you really need an additional key to do this. :p) * Simplify a bit. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9413 c06c8d41-db1a-0410-9941-cceddc491573
* Greatly improve 'V' command:j-p-e-g2009-03-101-1/+1
| | | | | | | | | | | | | | | * Add toggle to travel to items. (FR 2180269) (Basically copied from StashSearchMenu, but I couldn't work out how to change the title after the toggle.) * Display monster tiles, yay! * Space allowing, display monsters' description along with 'x' information. (Ironically, though this was copied from Tiles, it only works for ASCII at the moment.) * Right-shift all entry types by 1 instead of just InvEntry, so it's more consistent and looks better on the 'V' screen. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9409 c06c8d41-db1a-0410-9941-cceddc491573
* Change Elyvilon's healing abilities back to Lesser and Greater Healing, dolorous2009-03-021-2/+2
| | | | | | | | respectively, and rename the healing spells to Minor and Major Healing instead. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9308 c06c8d41-db1a-0410-9941-cceddc491573
* When wizard-tweaking object flags, read input in hex, not decimal.haranp2009-02-281-8/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9296 c06c8d41-db1a-0410-9941-cceddc491573
* Point out a! in manual and ??, and note context sensitive help in ??dploog2009-02-281-1/+1
| | | | | | | and I screens. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9268 c06c8d41-db1a-0410-9941-cceddc491573
* Cut 30 obsoleted spells. (Included in docs/obsolete/cut_spells.txt.)j-p-e-g2009-02-261-116/+6
| | | | | | | Breaks saves. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9241 c06c8d41-db1a-0410-9941-cceddc491573
* Add Deep Dwarves patch, with some minor changes.haranp2009-02-231-4/+5
| | | | | | | | | | | | | | | | 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
* Fix warning.haranp2009-02-151-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9096 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [2598159]: conjure flame not respecting range limits.haranp2009-02-141-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9068 c06c8d41-db1a-0410-9941-cceddc491573
* Fix debugging ray zaps (e.g. unknown wands) always setting obvious_effect byharanp2009-02-081-2/+2
| | | | | | | | | | | | | making ZAP_DEBUGGING_RAY no longer an obvious_effect. It might be more correct to restore obvious_effect on a tracer, or at least a player_tracer, but bug 2515082 [and r8500] makes me cautious. Fix healing being too generously identified. Fix wand of healing not working on enemies if you happen to worship Ely. Fixes [2580106]. Also some dead code elimination. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8982 c06c8d41-db1a-0410-9941-cceddc491573
* [2070013]: newly created, animated, etc. friendly monsters now default toharanp2009-02-031-2/+2
| | | | | | | | | | | '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
* Xom-forced spells shouldn't trigger penance. [2509398]haranp2009-01-271-3/+10
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8829 c06c8d41-db1a-0410-9941-cceddc491573
* Make messages for animating single skeletons/corpses versus multiple dolorous2009-01-231-3/+8
| | | | | | | | | ones consistent. Also, display a proper warning message if a player tries to animate a single skeleton/corpse while not actually standing on one. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8707 c06c8d41-db1a-0410-9941-cceddc491573
* Split miscast code off from spl-cast.cc into spl-mis.cczelgadis2009-01-221-2682/+0
| | | | | | | | Get rid of members mon_target and mon_source from MiscastEffect class, replace with methods target_as_monster() and source_as_monster(). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8674 c06c8d41-db1a-0410-9941-cceddc491573
* Allowing Xom to still cast detect spells in the labyrinth.ennewalker2009-01-221-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8673 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify.dolorous2009-01-211-2/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8663 c06c8d41-db1a-0410-9941-cceddc491573
* Add still more monster miscast messages.dolorous2009-01-211-7/+14
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8662 c06c8d41-db1a-0410-9941-cceddc491573
* Actually display the "engulfed in negative energy" miscast messages.dolorous2009-01-211-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8661 c06c8d41-db1a-0410-9941-cceddc491573
* Fix compilation (oops).dolorous2009-01-211-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8659 c06c8d41-db1a-0410-9941-cceddc491573
* Add another monster miscast message.dolorous2009-01-211-2/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8658 c06c8d41-db1a-0410-9941-cceddc491573
* Remove a few more unnecessary casts.haranp2009-01-211-2/+2
| | | | | | | Don't cheat on constness in _mons_has_path_to_player. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8651 c06c8d41-db1a-0410-9941-cceddc491573
* Make the message used for detection spells in non-magic-mappable areas dolorous2009-01-211-1/+1
| | | | | | | match the message used for detection abilities in non-mappable areas. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8643 c06c8d41-db1a-0410-9941-cceddc491573
* [2496621] Disallowing detect spells in non-magic-mappable levels.ennewalker2009-01-211-5/+20
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8642 c06c8d41-db1a-0410-9941-cceddc491573
* Add consistency fixes.dolorous2009-01-201-6/+6
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8632 c06c8d41-db1a-0410-9941-cceddc491573