summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove chain-lightning specific LOS test from beam.cc.Robert Vollmert2009-10-171-2/+9
| | | | | | There's now a spell-specific _lightning_los which may require some fine-tuning -- I'm not quite sure of the intention of the original check.
* Naming consistency.Robert Vollmert2009-10-171-5/+5
| | | | | Mostly rename functions from terrain.h that accept features of typ dgn_feature_type from grid_is_* to feat_is_*.
* Add minor cosmetic fixes.David Lawrence Ramsey2009-10-161-11/+8
|
* Globally replace see_grid by see_cell.Robert Vollmert2009-10-171-4/+4
|
* Fix bug [2874791], Merfolk stat change issuesCharles Otto2009-10-161-11/+24
| | | | | | | | | | | | | Fix some conditions causing permanent stat loss or gain for Mf with stat modifying boots. Unmerge boots when the player starts levitating or flying on a water square. Use move_player_to_grid in blink, semi-controlled blink, and teleportation. Also fix a bug where Mf could random teleport into solid walls.
* Add more minor cosmetic fixes.David Lawrence Ramsey2009-10-131-1/+1
|
* Comments and formatting.Robert Vollmert2009-10-111-2/+2
|
* Patch 2873911 by Jude: add rain cloudsCharles Otto2009-10-101-0/+6
|
* Remove a lot of unneccessary includes.Robert Vollmert2009-10-091-1/+0
| | | | | | | The console version still compiles on Linux; both console and tiles version compile in OS X. I haven't been able to test the DOS and Windows compiles -- please fix or tell me about any errors that show up.
* Split LOS code from view.cc.Robert Vollmert2009-10-081-0/+1
| | | | | | | | | los.cc: basic raycasting algorithm; losight(), see_grid() etc. ray.cc: ray_def implementation. mon-los.cc: monster_los This includes adding a bunch of #includes; there's probably some obsolete includes of view.h now.
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Add yet more minor cosmetic fixes.David Lawrence Ramsey2009-09-251-4/+4
|
* Add more spelling fixes.David Lawrence Ramsey2009-09-241-1/+1
|
* Add spelling fixes.David Lawrence Ramsey2009-09-231-4/+4
|
* * Also allow Maurice to steal the occasional spellbook or piece ofj-p-e-g2009-09-241-1/+6
| | | | | | | | | | | | | jewellery. * As per FR 1937144, leave a purple cloud if the player or a monster blinks or teleports away. For some reason this doesn't yet work correctly with scrolls of blinking, even though wizard blink (which uses the same function) does work. -- (from svn) Signed-off-by: Darshan Shaligram <dshaligram@users.sourceforge.net>
* Commit several patches:j-p-e-g2009-09-131-1/+13
| | | | | | | | | | | | * patch 2849505 by weyrava: make submerged monsters use the correct colour * patch 2857771 by caotto: another Feawn update * patch 2838771 by camedo: add potions of brilliance/agility * BR 2841651 by bookofjude: allow Merfolk to control-tele into deep water Now we need tiles for the new potions! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10669 c06c8d41-db1a-0410-9941-cceddc491573
* As per FR 2837779, change Forescry to Phase Shift (Trl). Same level,j-p-e-g2009-08-141-3/+3
| | | | | | | | | | same effect, but different name, description, and messages. Also, See Invisible is now pure Ench, and has been moved into the Book of Enchantments. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10548 c06c8d41-db1a-0410-9941-cceddc491573
* Fix previous message to actually mention Elyvilon's name (oops).dolorous2009-08-061-1/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10495 c06c8d41-db1a-0410-9941-cceddc491573
* Also experimentally use mpr() instead of simple_god_message() for Ely's dolorous2009-08-061-4/+1
| | | | | | | other no-piety pacification message. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10494 c06c8d41-db1a-0410-9941-cceddc491573
* Experimentally use mpr() instead of simple_god_message() for Ely's no-pietyj-p-e-g2009-08-061-1/+1
| | | | | | | gain "support" when pacifying monsters. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10493 c06c8d41-db1a-0410-9941-cceddc491573
* * Add support for packaging save files with tar. (Patch by Trent W. Buck.)j-p-e-g2009-07-251-2/+5
| | | | | | | | * Fix random blink placing the player in dangerous clouds. * Fix message when trying to place Conjure Flame in a wax wall. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10397 c06c8d41-db1a-0410-9941-cceddc491573
* A number of small bug fixes:j-p-e-g2009-07-171-1/+6
| | | | | | | | | | | | | | | | | | * 2811005: unknown mimics being stabbable * 2818709: restrict monsters picking up stuff to 2 items per turn * 2820097: reintroduce prompts for firing _in the direction_ of allies and fix message * 2821462: returning from tutorial screen swallowing a keypress * 2822771: fire elementals could be placed in shallow water Also, Azrael is no longer generated in the Shoals/Swamp Also, implement the second part of FR 2820876: Xom will no longer confuse the player if there's adjacent deep water or lava. This restriction doesn't apply if Xom is feeling nasty (penance or bored) and there's also no checks for water/lava further away. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10255 c06c8d41-db1a-0410-9941-cceddc491573
* First part of the merger of fixed artefacts into unrandom artefactszelgadis2009-06-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (further changes will be much smaller). Breaks savefile compatibility, and bumps the major savefile version up to 6. Some changes made to some tiles files, but it hasn't been tested with a tiles build. Overview of changes: * Unrand artefacts are now defined in art-data.txt and is turned into C code via util/art-data.pl. This has the dual advantage of being more readable by humans, and that if the unrand data structure changes then you can just change util/art-data.pl and regenerate the C code rather than having to change some 70 different C structs by hand. * util/art-data.pl automatically updates NO_UNRANDARTS, and also automatically generates an enumeration of all the unrands which are equal to their item.special field. * randart.cc and randart.h have been renamed to artefact.cc and artefact.h, since the files covers all types of artefacts, and the differences between randarts, unrandarts and (former) fixed arts have been minimized since the terms were introduced. Also renamed unrand.h to art-data.h * The brands and resistances of former fixed arts are now handled via artefact properties, but the rest of their special behaviours are still hardcoded. * Unrandarts are now distinguished between normal and "special", with the special ones currently just being identical to the list of the formed fixed arts. Special unrandarts are randomly generated less often than normal unrandarts, can be generated in the Abyss if they've been lost, can't be picked up by monsters, and can't be affected by Tukima's Dance. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10035 c06c8d41-db1a-0410-9941-cceddc491573
* Apply tiles inscription fixes to trunk.j-p-e-g2009-06-081-1/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9922 c06c8d41-db1a-0410-9941-cceddc491573
* Since fixed artefacts are going to be folded into unrandarts, and unrandartszelgadis2009-06-081-4/+4
| | | | | | | | | | | have already become almost identical to randarts, change "randart" to "artefact" everywhere except for things that deal exclusively with randarts. Artefact related files will be renamed later. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9921 c06c8d41-db1a-0410-9941-cceddc491573
* * AutoID rings of teleport control after teleporting.j-p-e-g2009-05-301-0/+1
| | | | | | | | | | * Fix 2788773: Infinite scroll uses by clicking on a stack in tiles. * Fix 2792095: Tiled menus possibly containing more than 52 items. * Fix clicking on items not setting just_clicked_on_item until after the effect happened. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9853 c06c8d41-db1a-0410-9941-cceddc491573
* As suggested in [2795535], take current piety into account when dolorous2009-05-241-1/+8
| | | | | | | pacifying monsters. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9813 c06c8d41-db1a-0410-9941-cceddc491573
* Add sanity checks.dolorous2009-05-231-2/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9811 c06c8d41-db1a-0410-9941-cceddc491573
* Indicate via the message whether healing a friendly monster gained piety dolorous2009-05-231-7/+14
| | | | | | | with Elyvilon, based on the previous messages. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9810 c06c8d41-db1a-0410-9941-cceddc491573
* Give an indication of whether pacification raised piety or nor.j-p-e-g2009-05-231-6/+15
| | | | | | | Currently, this seems to hardly ever happen. (?) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9804 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/+7
| | | | | | | | | | 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
* Make Elyvilon's Divine Vigour temporarily increase MP as well as HP.dolorous2009-05-161-0/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9780 c06c8d41-db1a-0410-9941-cceddc491573
* Properly disallow Elyvilon's "Heal Other" abilities when they're aimed dolorous2009-05-161-3/+10
| | | | | | | at the player, just as we do with Lugonu's "Banish" ability. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9778 c06c8d41-db1a-0410-9941-cceddc491573
* Make Trog's Hand grant both regeneration and magic resistance.dolorous2009-05-061-1/+18
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9741 c06c8d41-db1a-0410-9941-cceddc491573
* Add some of the suggested changes to Elyvilon in [2762165]: Lesser Heal dolorous2009-04-191-2/+5
| | | | | | | | | | Other no longer costs piety, but it will no longer work as well on weak monsters. Note that the documentation for Heal Other has not been updated yet. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9655 c06c8d41-db1a-0410-9941-cceddc491573
* Fix assertion when healing a monster as a non-Elyvilonite (oops).dolorous2009-04-191-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9645 c06c8d41-db1a-0410-9941-cceddc491573
* And properly consolidate monster hostility checks.dolorous2009-04-181-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9624 c06c8d41-db1a-0410-9941-cceddc491573
* And do the hostility check before the pacification check, to avoid dolorous2009-04-181-1/+2
| | | | | | | | gaining piety for healing a fellow creature if it wasn't so before being pacified in the same turn. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9623 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [2748638]: Try to pacify monsters before healing them instead of dolorous2009-04-181-20/+24
| | | | | | | | | afterward. Also, do the pacification check only once and use the result both times instead of doing the pacification check twice, as it has a random factor. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9622 c06c8d41-db1a-0410-9941-cceddc491573
* Implement a hack to differentiate between Ely's self healing and healingj-p-e-g2009-04-031-5/+8
| | | | | | | | | | | | | | | | | others. I've added a new targetting mode TARG_NOT_SELF that basically just forces the autotargetting to skip the player in favour of the previous target or, failing that, the nearest monster (no matter whether friendly, hostile or neutral). Both types of ability crop up at the same piety point, and the ability letters are changed accordingly (which is likely to wreak havoc on those relying on their finger memory, but makes more sense and is easier to remember in the long run). I haven't changed/added the ability descriptions. If someone could do that, please? git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9575 c06c8d41-db1a-0410-9941-cceddc491573
* Tweak duration messages a bit, and mention the risk of magic dolorous2009-03-091-2/+2
| | | | | | | | contamination in the description of the Extension spell, as suggested in [1946662]. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9405 c06c8d41-db1a-0410-9941-cceddc491573
* In remove_divine_stamina(), actually set the duration of divine stamina dolorous2009-03-091-0/+1
| | | | | | | to 0 (oops). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9403 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes.dolorous2009-02-261-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9240 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [2598159]: conjure flame not respecting range limits.haranp2009-02-141-56/+50
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9068 c06c8d41-db1a-0410-9941-cceddc491573
* For now, revert r9064, so that Elyvilonites can use wands of healing dolorous2009-02-141-5/+3
| | | | | | | | again, and refix [2594209], to not allow such wands to pacify un-pacifiable monsters. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9067 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [2594209]: Make sure Elyvilonites can only pacify monsters using dolorous2009-02-141-4/+8
| | | | | | | Elyvilon's healing invocations. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9064 c06c8d41-db1a-0410-9941-cceddc491573
* Remove a great many cases where mgrd is accessed directly in favourharanp2009-02-131-5/+4
| | | | | | | | | | | 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-6/+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
* Fix debugging ray zaps (e.g. unknown wands) always setting obvious_effect byharanp2009-02-081-38/+25
| | | | | | | | | | | | | 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
* Fix doubled MSG_OK when cancelling Ely's healing. [2554386]haranp2009-02-011-4/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8871 c06c8d41-db1a-0410-9941-cceddc491573