summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixing warnings.ennewalker2009-01-201-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8610 c06c8d41-db1a-0410-9941-cceddc491573
* Add still more monster miscast messages.dolorous2009-01-201-6/+8
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8608 c06c8d41-db1a-0410-9941-cceddc491573
* Add more monster miscast messages.dolorous2009-01-201-12/+15
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8607 c06c8d41-db1a-0410-9941-cceddc491573
* Expand immolation and cleansing flame as well, so that monsters may be dolorous2009-01-191-1/+1
| | | | | | | | | able to use scrolls of immolation or holy word in the future. Also, add a power parameter to immolation, so that it can be reused for an exploding Tome of Destruction. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8599 c06c8d41-db1a-0410-9941-cceddc491573
* Expand effect applicator functions to take an actor parameter, and use dolorous2009-01-191-1/+1
| | | | | | | | it for holy word in order to generalize it. This way, monsters as well as players may be able to use it in the future. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8598 c06c8d41-db1a-0410-9941-cceddc491573
* Add more monster miscast messages.dolorous2009-01-191-19/+21
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8568 c06c8d41-db1a-0410-9941-cceddc491573
* Attempt to fix [2516521] by setting act_source equal to the target when dolorous2009-01-191-0/+2
| | | | | | | | | | | | | dealing with Zot miscasts and the like, since many actor interfact functions require a valid source on the monster side. This way, for example, divination miscasts will use the monster's own HD when confusing. With kill_category and kill_type set as they are, no one should get improper credit for any kills caused by Zot traps. Also, if the player worships TSO and gets the "poisonous cloud" Zot miscast, any monsters poisoned from it will not trigger the poisoning conduct. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8567 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify.dolorous2009-01-191-6/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8565 c06c8d41-db1a-0410-9941-cceddc491573
* Make draining from spell miscasts take full negative energy resistance dolorous2009-01-191-2/+2
| | | | | | | into account, too. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8564 c06c8d41-db1a-0410-9941-cceddc491573
* Add spacing fixes.dolorous2009-01-181-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8563 c06c8d41-db1a-0410-9941-cceddc491573
* Add spacing fix.dolorous2009-01-181-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8550 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify again.dolorous2009-01-181-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8548 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up manual explosion routines a bit.dolorous2009-01-181-24/+25
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8530 c06c8d41-db1a-0410-9941-cceddc491573
* Tweaks to make it less likely that command repitition will be cancled when it'szelgadis2009-01-181-5/+13
| | | | | | | being used to wizard test Xom acts. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8525 c06c8d41-db1a-0410-9941-cceddc491573
* Consolidate checks for the player's being undead or a demonspawn into dolorous2009-01-181-2/+1
| | | | | | | player_is_unholy(), a la mons_is_unholy(), and use it where possible. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8522 c06c8d41-db1a-0410-9941-cceddc491573
* Fix compilation (oops).dolorous2009-01-171-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8519 c06c8d41-db1a-0410-9941-cceddc491573
* Tweak the miscast message again.dolorous2009-01-171-2/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8518 c06c8d41-db1a-0410-9941-cceddc491573
* Tweak a few monster miscast messages.dolorous2009-01-171-2/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8515 c06c8d41-db1a-0410-9941-cceddc491573
* Move experience draining for players and monsters to the actor dolorous2009-01-171-19/+25
| | | | | | | interface, and use it in necromancy miscasts that drain experience. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8496 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up the previous monster miscast messages a bit.dolorous2009-01-171-5/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8478 c06c8d41-db1a-0410-9941-cceddc491573
* Add more monster miscast messages.dolorous2009-01-171-12/+15
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8477 c06c8d41-db1a-0410-9941-cceddc491573
* Add various beam explosion-related cleanups. Also, make cleansing flame dolorous2009-01-151-2/+1
| | | | | | | | an explosion of BEAM_HOLY around the player instead of an aimable effect. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8467 c06c8d41-db1a-0410-9941-cceddc491573
* Rename Transmigration -> Transmutation.j-p-e-g2009-01-111-2/+2
| | | | | | | | 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
* Display basic resistance information. I'm putting this in so thatharanp2009-01-101-1/+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
* On second thought, remove monsters' glowing on the "distortional energy" dolorous2009-01-101-2/+0
| | | | | | | | | miscast, as it's not used anywhere else the player glows, and the fact that backlight is used on monsters as a substitute for levitation means that monsters glow often enough as a result of miscasts. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8394 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fix.dolorous2009-01-101-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8393 c06c8d41-db1a-0410-9941-cceddc491573
* If a monster gets the "flooded with distortional energies" miscast, make dolorous2009-01-101-11/+16
| | | | | | | it glow, since the player will probably glow from the same effect. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8391 c06c8d41-db1a-0410-9941-cceddc491573
* When doing something after _ouch() in a spell miscast, check for the dolorous2009-01-101-22/+12
| | | | | | | | | | | target's being alive first. Among other things, this fixes an assertion failure when a translocation miscast kills a monster, and then attempts to blink the dead monster afterward. Don't bother to check for being alive if the miscast effect is player-only, of course, since, once the player's dead, the game's over. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8390 c06c8d41-db1a-0410-9941-cceddc491573
* Properly generalize the target in the "space warps crazily" dolorous2009-01-101-17/+17
| | | | | | | translocation miscast. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8389 c06c8d41-db1a-0410-9941-cceddc491573
* Code cleanups again, fix Twist.haranp2009-01-101-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8379 c06c8d41-db1a-0410-9941-cceddc491573
* Fix spell power caps not being respected (looks like a long-standing bug.)haranp2009-01-091-2/+6
| | | | | | | Code quality improvements for Twist. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8358 c06c8d41-db1a-0410-9941-cceddc491573
* Add a few more miscast messages.dolorous2009-01-091-14/+22
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8352 c06c8d41-db1a-0410-9941-cceddc491573
* Cleaned up Apportation, fixed a few bugs in it too.haranp2009-01-091-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8346 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up rotting routines again.dolorous2009-01-081-3/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8341 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fixes.dolorous2009-01-081-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8333 c06c8d41-db1a-0410-9941-cceddc491573
* Don't use the random_uselessness() miscast effect during arena mode.zelgadis2009-01-061-2/+2
| | | | | | | If a melee miscast kills the attacker don't let it get any more hits in. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8261 c06c8d41-db1a-0410-9941-cceddc491573
* Fix spacing of new miscast messages.dolorous2009-01-061-8/+6
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8260 c06c8d41-db1a-0410-9941-cceddc491573
* Add a few more monster miscast messages.dolorous2009-01-061-17/+23
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8259 c06c8d41-db1a-0410-9941-cceddc491573
* Fix potential assertion when doing an ice miscast in arena mode (e.g. 20 dolorous2009-01-061-3/+3
| | | | | | | | chaos spawns vs. 20 glowing shapeshifters), by using the target parameter properly. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8258 c06c8d41-db1a-0410-9941-cceddc491573
* Adding REVISION() macro to all source files.ennewalker2009-01-041-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8217 c06c8d41-db1a-0410-9941-cceddc491573
* Add ASSERT(!crawl_state.arena) to a number of places.zelgadis2009-01-031-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8184 c06c8d41-db1a-0410-9941-cceddc491573
* Expand the setting of spell_type in mgen_data to include all dolorous2009-01-031-10/+13
| | | | | | | | 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
* Range display was always using minimum range. Fixes [2470382], atharanp2008-12-311-3/+5
| | | | | | | least partially. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8064 c06c8d41-db1a-0410-9941-cceddc491573
* Implement divination miscasts for orange statues, fix silver and orange ↵dshaligram2008-12-291-10/+43
| | | | | | statues to attack monsters as they attack the player. Also fix clouds not being cleared on level reset in dungeon.cc. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8017 c06c8d41-db1a-0410-9941-cceddc491573
* Apply a patch by castamir to fix a multitude of typos.j-p-e-g2008-12-281-5/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8005 c06c8d41-db1a-0410-9941-cceddc491573
* Complete rewrite of the beam code, making it considerably saner.haranp2008-12-251-1/+2
| | | | | | | However, there might be quite a few bugs lurking in this rewrite. Sorry. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7975 c06c8d41-db1a-0410-9941-cceddc491573
* Add a hack to make the spell menu titles aligned in the tiles menus. (The ↵ennewalker2008-12-241-0/+15
| | | | | | non-hack version involves much larger changes to the menu system. Eventually...) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7950 c06c8d41-db1a-0410-9941-cceddc491573
* Wording fixes.dolorous2008-12-241-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7934 c06c8d41-db1a-0410-9941-cceddc491573
* Some more level zero (message only) miscast effects.zelgadis2008-12-231-17/+117
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7912 c06c8d41-db1a-0410-9941-cceddc491573
* Two cosmetic-only changes to Xom miscasts:zelgadis2008-12-221-2/+5
| | | | | | | | | | | | | | | 1) For zero-level (message only) miscasts there's a 1 in 20 chance that a non-standard message will be given, like "Your shield spins", "The scales of your dragon armour briefly wiggle", and so on. 2) For all other miscasts the string used for "your hands" will be randomized to only sometimes be normal, to get messages like "Your nose glows momentarily" or "Noxious gasses pour from your feet". This can lead to some bizarre messages like "Sparks play between your ears", but then, this *is* Xom. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7906 c06c8d41-db1a-0410-9941-cceddc491573