summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-data.h
Commit message (Collapse)AuthorAgeFilesLines
* Add miscellaneous minor fixes.dolorous2008-07-061-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6422 c06c8d41-db1a-0410-9941-cceddc491573
* Bug 2005002: Allow friendly and neutral-good monsters to cast spells while inzelgadis2008-06-291-181/+238
| | | | | | | | | sanctuary, and allow hostile and neutral monsters to cast spells once outside of sanctuary as long as it won't harm anything inside of sanctuary. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6205 c06c8d41-db1a-0410-9941-cceddc491573
* Add the framework for descriptions for abilities to be read from thej-p-e-g2008-06-181-1/+1
| | | | | | | | | | | | | | ability menu (a!) Currently only contains descriptions for Zin, TSO and "Renounce Religion". Also, now I'm worried that players might accidentally press '?' instead of '!' and then apply an ability when they only wanted to read its description. (Of course, with some of them you can opt out, e.g. because they need targeting, but for others it's a real problem.) There must be a good solution around somewhere. Abilities are not (yet) searchable in the database. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5958 c06c8d41-db1a-0410-9941-cceddc491573
* Added SPFLAG_NEUTRAL for utility spells which should use TARG_ANY.haranp2008-06-151-1/+1
| | | | | | | | Currently only used by Dig. We might want to redo Apportation to use this at some point. [1994284] git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5841 c06c8d41-db1a-0410-9941-cceddc491573
* Implement the Petrify spell in a rather basic variant, and replace the j-p-e-g2008-06-121-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | player spell "Paralyse" with it, i.e. not the wand/potion/misc. effects. Petrify is a 4th level spell of the Enchantment/Transmigrations school (a unique combination, I believe), all other values (incl. the level) were shamelessly stolen from Paralysis. Anyway, it consists of two elements (so I actually added TWO new enchantments), Petrifying and Petrified. A monster that is petrifying cannot move around but can perform actions like hitting adjacent monsters or casting spells at a slowed rate (1.5 of the normal cost). Once this sub-enchantment runs out (happens faster) the monster cannot move or act anymore, so it works like Paralysis. The damage you do during stabbing is one third of what you'd do otherwise, for both states of enchantment, and for both stabbing counts as unchivalric behaviour. It has not been implemented as a monster spell, and ghosts of characters that had it will use Paralyse instead. Consequently, the effect on the player (in self targetting) only handles the Petrified part. Numbers, esp. enchantment timeout, will need tweaking. They're currently Petrifying: cturn = 50 / _mod_speed(10, mons->speed); Petrified: cturn = std::max(8, 150 / (1 + modded_speed(mons, 5))) because I wanted the first to always run out faster than the second, but at the same time make the ratio of Petrifying/Petrified tilt in favour of the first for powerful monsters. The numbers are more or less made up, and tested with different monsters in wizard mode. Still, could be anything between too weak and overpowered, though the latter is more likely. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5761 c06c8d41-db1a-0410-9941-cceddc491573
* Extend monster pathfinding to monsters circumventing pools of deep waterj-p-e-g2008-06-111-1/+1
| | | | | | | | | | | | | | | | | | or lava. I've added some more checks to avoid hampering performance too much, but of course there's still space for improvement. Once per turn check whether the player can see water and/or lava, and only if this is the case run the additional checks (monster habitat, grid_see_grid) when a monster tries to move. Smart monsters that have a ranged attack won't use pathfinding either since they can directly fire at the player. (This is identical to their pre-pathfinding behaviour.) Also fix butterflies really not interrupting resting. (Setting it to 0 doesn't work for some reason.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5737 c06c8d41-db1a-0410-9941-cceddc491573
* Rename SPELL_SUMMON_LARGE_MAMMAL to SPELL_CALL_CANINE_FAMILIAR, to match dolorous2008-06-071-1/+1
| | | | | | | the name used for it elsewhere. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5524 c06c8d41-db1a-0410-9941-cceddc491573
* Rename the "Guardian" spell to "Summon Guardian", as it's more dolorous2008-06-061-1/+1
| | | | | | | descriptive. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5510 c06c8d41-db1a-0410-9941-cceddc491573
* Rename SPELL_SUMMON_SMALL_MAMMAL and SPELL_SWARM to dolorous2008-05-231-2/+2
| | | | | | | | SPELL_SUMMON_SMALL_MAMMALS and SPELL_SUMMON_SWARM, respectively, to match their user descriptions. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5188 c06c8d41-db1a-0410-9941-cceddc491573
* Fix monsters capable of LOS attack behind glass walls being ignored.j-p-e-g2008-05-201-345/+329
| | | | | | | | | | | Fix monsters behind glass walls being autotargetted for spells that need a path. Fix spacing in spl-data.h, and add some comments about commenting to coding_conventions.txt. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5148 c06c8d41-db1a-0410-9941-cceddc491573
* Add more comment fixes.dolorous2008-05-141-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5045 c06c8d41-db1a-0410-9941-cceddc491573
* Change Banishment level to 4, to reflect the recent change of it notj-p-e-g2008-05-121-1/+1
| | | | | | | allowing self-banishment, anymore. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5015 c06c8d41-db1a-0410-9941-cceddc491573
* Drop Ignite Poison to level 6 (jarpiain).dshaligram2008-04-261-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4676 c06c8d41-db1a-0410-9941-cceddc491573
* In enum.h, move "Summon Ugly Thing" to the end of the user spell dolorous2008-04-201-59/+66
| | | | | | | | section, where it probably should have gone in the first place. Also, reorder the spells in spl-data.h to match the order in enum.h. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4400 c06c8d41-db1a-0410-9941-cceddc491573
* For consistency, rename the "Summon Ugly Things" spell to "Summon Ugly dolorous2008-04-191-1/+1
| | | | | | | Thing". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4365 c06c8d41-db1a-0410-9941-cceddc491573
* Increased Tiamat's hp and attack damage a touch.dshaligram2008-03-311-4/+4
| | | | | | Changed spell levels: bolt of fire, cold -> 6, lightning bolt -> 5, ball lightning -> 7. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3988 c06c8d41-db1a-0410-9941-cceddc491573
* Fix compilation (oops).dolorous2008-03-271-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3896 c06c8d41-db1a-0410-9941-cceddc491573
* Mark the "Shadow Creatures" spell as unholy, since weaving together dolorous2008-03-271-1/+1
| | | | | | | | | creatures from shadows and Abyssal matter, as the description mentions, sounds unholy. This means that boggarts are evil, as well, since they cast it. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3895 c06c8d41-db1a-0410-9941-cceddc491573
* Implement "Summon Ugly Things" as a monster spell, roughly equivalent to dolorous2008-03-271-0/+11
| | | | | | | | "Summon Demon" in many ways, as they have similar hit dice, but aren't evil, undead, or demonic. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3890 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes again.dolorous2008-03-241-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3859 c06c8d41-db1a-0410-9941-cceddc491573
* Mark the "Summon Beast" spell as unholy, since beasts are naturally evil dolorous2008-03-221-1/+1
| | | | | | | and demonic. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3803 c06c8d41-db1a-0410-9941-cceddc491573
* Fix inaccurate comment.dolorous2008-02-111-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3430 c06c8d41-db1a-0410-9941-cceddc491573
* Remove GLAMOUR, and introduce RECITE (new Zin invocation)j-p-e-g2008-01-241-9/+0
| | | | | | | | | | | | | | | | | | The latter is a work in progress and may have strange results. It is intended as a multiturn invocation that is interrupted by large hp losses. IMHO, reciting things is an action that needs to take several turns. Each turn an attempt at influencing intelligent monsters is made. They usually fall asleep, are confused or turn berserk. The delay gets cancelled when the player is heavily wounded or when there are no impressionable monsters around anymore. I think the power formula will have to be tweaked. Comments welcome! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3321 c06c8d41-db1a-0410-9941-cceddc491573
* The accuracy of dragon breath is now halved if you're wieldingj-p-e-g2008-01-081-1/+1
| | | | | | | | | | | | | | | | | a weapon of dragon slaying (with the somewhat weak reasoning that a dragon will try to avert its eyes from your awful weapon). From how I read the code this function is only called if you are attacked as monsters will not breathe at other monsters, so that the above check is valid. Also fix 1865179: Airstrike now wakes (and annoys) monsters. 1861118: Evaporate now can be cancelled during potion or direction choice. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3223 c06c8d41-db1a-0410-9941-cceddc491573
* [1862240] Allow mummies to use rods of smiting, removed minimum ↵dshaligram2008-01-021-1/+1
| | | | | | level-restriction for rods. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3171 c06c8d41-db1a-0410-9941-cceddc491573
* s/portaled/portalharanp2007-10-311-8/+8
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2707 c06c8d41-db1a-0410-9941-cceddc491573
* [1757174] Disallow mapping in labyrinths.dshaligram2007-10-241-4/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2536 c06c8d41-db1a-0410-9941-cceddc491573
* Dropped bolt of inaccuracy accuracy. It's probably still be too accurate, givendshaligram2007-09-261-1/+1
| | | | | | | | the nerf to monster EV vs beams. Bumped inaccuracy to level 3. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2215 c06c8d41-db1a-0410-9941-cceddc491573
* 1746240: selective amnesia now level 4.haranp2007-09-171-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2124 c06c8d41-db1a-0410-9941-cceddc491573
* Drop Control Teleport and Controlled Blink by one spell level each.dshaligram2007-07-151-2/+2
| | | | | | | | [1750729] Controlled Blink (the spell) now decays to semi-controlled blink on levels that block teleport control and is less likely to be blocked by the Abyss. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1873 c06c8d41-db1a-0410-9941-cceddc491573
* Added the Portaled Projectile spell, following 1686312.haranp2007-06-271-0/+11
| | | | | | | | | Hopefully I didn't break the fsim_ranged code in the process. PP is now arbitrarily stuck into Spatial Translocations; it will be moved out when we add a Book of Archery. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1670 c06c8d41-db1a-0410-9941-cceddc491573
* Spell power strings now reflect power caps.haranp2007-05-071-2/+208
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1413 c06c8d41-db1a-0410-9941-cceddc491573
* Added ice statues.dshaligram2007-04-091-193/+685
| | | | | | | | | | Monster spells now use spell_type instead of the old mon_spell_type. Fixed buggy behaviour when banished from Labyrinth. DGL_WHEREIS was not including current time, fixed. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1275 c06c8d41-db1a-0410-9941-cceddc491573
* Updated build instructions for DOS, Windows, Linux.dshaligram2007-04-051-5/+5
| | | | | | | | | | | | | | | | | Fixed targeting for Sandblast, Bone Shards, verified that targeting works okay for all spells (woof). Updated level layouts with more random features (David). Made makefile.unix default to using flex instead of lex. Tweaked beam names for dragon breath. s/Paralyze/Paralyse/ Don't show current target for direction-only targeting. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1222 c06c8d41-db1a-0410-9941-cceddc491573
* Move spell targeting before miscast check. Not everything is moved - spellsdshaligram2007-03-141-187/+371
| | | | | | | | | | with weird targeting (like Conjure Flame) still target after the miscast check. Tweaked targeting prompt slightly. Don't dock turn for zapping non-wand. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1039 c06c8d41-db1a-0410-9941-cceddc491573
* Implemented 1633681, Excruciating Wounds spell. Better wording welcome.haranp2007-01-161-0/+7
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@854 c06c8d41-db1a-0410-9941-cceddc491573
* Merged stone_soup r15:451 into trunk.dshaligram2006-11-221-19/+205
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@452 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up a mistake in the SVN import.nlanza2006-08-131-0/+1286
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10 c06c8d41-db1a-0410-9941-cceddc491573