summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-cast.cc
Commit message (Collapse)AuthorAgeFilesLines
* Provide "waste of time" checks for Mislead, fake Mara summon, player ghost.Jude Brown2010-01-161-27/+1
| | | | | This moves the code out of the relevant functions and into the ms_waste_of_time function in mon-util.cc.
* Fix monster-cast Fireball causing suicide.Cryp71c2010-01-091-1/+1
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Throw Icicle should not be a beam for monsters (monsters could fire it ↵Darshan Shaligram2010-01-071-1/+0
| | | | through multiple targets).
* Merge branch 'master' into ioodAdam Borowski2009-12-301-105/+43
|\
| * Implement fish corpses and kraken zombies.Stefan O'Rear2009-12-301-2/+8
| |
| * More call tide fixes: don't flash view if Ilsuiw is not in LOS, apply tide ↵Darshan Shaligram2009-12-301-3/+6
| | | | | | | | reset even if the player is not messaged about it.
| * Add extra check to prevent Ilsuiw using call tide outside Shoals.Darshan Shaligram2009-12-301-9/+10
| |
| * Boost Ilsuiw stats and give her Call Tide, which strongly boosts the tide in ↵Darshan Shaligram2009-12-291-0/+13
| | | | | | | | Shoals, pegs it towards high tide, and includes a local high tide maximum centered on Ilsuiw, which can be double the height of the normal high tide.
| * Merfolk (water/ice) elementalists join the Shoals guard.Darshan Shaligram2009-12-291-1/+17
| |
| * Move and tweak Mislead code.Jude Brown2009-12-281-102/+1
| | | | | | | | | | Newly placed monsters during the mislead status are also given a mislead_as monster type.
* | Merge branch 'master' into ioodAdam Borowski2009-12-271-12/+237
|\|
| * New (rakshasa) unique: Mara, Lord of Ilusions.Jude Brown2009-12-241-12/+237
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This re-uses several ideas from the Emerald Eye FR, and implements the spell "Mislead": this grants the "Misled" status effect to the player, and causes on-level monsters to appear (glyph, name and tile) to be other monsters. Only their appearance is changed. Healing potions and rain remove this status effect. Mara also has a beefed-up version of the Rakshasa clone spell: it instead creates an "exact" clone (slightly altered spells list, and non-unique status for his clones). Only two will ever be created at once. Finally, he has the spell "Summon Player Ghost". This spell creates a ghost of the player (though marked as a summon, meaning that it (shouldn't) register a milestone, though it will be treated as a self-ghost kill) that is hostile. Only one of these should be existant at any one point in time. I'm pretty sure that I haven't broken anything, but would definitely appreciate someone sanity-checking this commit. Known minor issue: Kirke's summon ugly things being cast while having the Misled status causes them to show up with no glyph.
* | Use dprf().Adam Borowski2009-12-201-4/+1
|\|
| * Replace long debug message calls with dprf(), except for cases where a dumb ↵Adam Borowski2009-12-201-4/+1
| | | | | | | | | | | | compiler could call unnecessary functions. For paranoia, I left even any uses of std::string.
* | IOOD as a monster spell.Adam Borowski2009-12-201-0/+9
|/
* Implement Summon Butterflies as a monster spell.Jude Brown2009-12-191-0/+14
|
* Generic fallbacks for non-humanoid wizards casting.Adam Borowski2009-12-111-1/+2
| | | | Also fixes @objective@ in spell messages.
* mons_cast_noise(): wrong key order for poly'd monsMatthew Cline2009-11-271-4/+2
| | | | | | Wizard and priest monsters which kept their spells after polymorphing into a monster without hands had the "targeted" key placed in the wrong order.
* Remove header includes from mon-place.h.Robert Vollmert2009-11-271-0/+3
|
* Remove further header-include. env.h now always directly included.Robert Vollmert2009-11-271-0/+1
|
* Add formatting fixes.David Lawrence Ramsey2009-11-211-2/+11
| | | | This mostly puts && and || on the proper lines, per the style guide.
* Move silenced(pos) to areas.cc.Robert Vollmert2009-11-211-0/+1
|
* Flatten header dependencies a bit.Robert Vollmert2009-11-171-0/+2
| | | | | | This removes a couple of unnecessary includes from header files. I may have missed adding some tiles includes.
* Bug #2896412: Breath broken after polymorphMatthew Cline2009-11-151-21/+52
| | | | | | | | | | | | If a wizard or priest is polymorphed into a monster without hands, then when it casts a spell preserved across the polymorph (rather than any innate ability or spell) then to avoid getting weird messages (like "Harold breaths UNSEEN BEAM at you") the first lookup key for dat/database/monspell.txt is "polymorphed wizard" or "polymorphed priest." NOTE: There should probably be a greater variety of messages depending on shpae, like "quadruped wizard" and "blob wizard".
* Implement spell "blink close".Robert Vollmert2009-11-141-0/+2
| | | | This allows a monster to blink close to its target.
* Rename 'blink * closer' to 'blink * close'.Robert Vollmert2009-11-141-4/+5
|
* Add "blink away" and "blink ranged" to mon-cast.cc.Robert Vollmert2009-11-141-1/+8
|
* Implement "blink other closer" as a monster spell.Robert Vollmert2009-11-141-0/+17
|
* Remove #include <conio.h> from all over the place. Convert COLORS to an enum.Adam Borowski2009-11-141-4/+0
|
* Remove obsoleted los.h includes.Robert Vollmert2009-11-131-1/+0
|
* Replace observe_cell by you.see_cell.Robert Vollmert2009-11-131-2/+2
|
* Replace monster_index with monsters::mindex.Vsevolod Kozlov2009-11-131-5/+5
|
* mon-cast.cc: fix unitialized var warningMatthew Cline2009-11-121-2/+2
|
* New monster spell: Sleep. Give sleep to Aizul.Jude Brown2009-11-131-0/+7
| | | | | | Unlike Ensorcelled Hibernation, Sleep checks MR only, rather than MR and cold resistance. It also does not check monsters having SLEEP_WEARY. It will not act on something that is already sleep.
* Implement monster swiftness, and give it to GastronokStefan O'Rear2009-11-121-0/+6
|
* Add summoner and non_actor_summoner to mgen_dataStefan O'Rear2009-11-121-21/+22
| | | | | Monsters now know who summoned them. This will be important later. Probably breaks something; saves are not one of them.
* Rename SPELL_BACKLIGHT -> SPELL_CORONA, and relevant ZAP/BEAM/DUR.Jude Brown2009-11-121-2/+2
|
* Rename SPELL_SLEEP -> SPELL_HIBERNATE, and relevant ZAP/BEAM.Jude Brown2009-11-121-2/+2
|
* More monster_iterator conversions.Robert Vollmert2009-11-121-23/+15
|
* Rename monspeak/monplace/monstuff to mon-speak/place/stuff.Jude Brown2009-11-121-4/+4
| | | | | I'm pretty sure I've managed to replace every instance of a reference to these files, so I hopefully haven't missed anything.
* Tomb of Doroklohe: delete clouds at the walls; proper message if the tomb is ↵Adam Borowski2009-11-111-0/+3
| | | | visible while being dropped.
* Make actor::heal return bool; move heal_monster to monsters::heal.Vsevolod Kozlov2009-11-101-2/+1
| | | | | | | | monsters::heal and heal_monster used to have slightly different logic for increasing maximum HP. Now the heal_monster logic is used everywhere. player::heal always returns true at the moment, but since its return value is never checked, that does not affect anything.
* Remove a few obsolete includes.Robert Vollmert2009-11-101-1/+0
| | | | Also add a few previously indirect includes.
* Split shouting and stealth code from view.cc.Robert Vollmert2009-11-101-0/+1
|
* Remove option draw_it from viewwindow.Robert Vollmert2009-11-091-1/+1
| | | | | | The only use was just removed. Also move the draw check closer to where it's used.
* Replace mons_is_pacified with monsters::pacified.Vsevolod Kozlov2009-11-091-4/+4
|
* Replace mons_wont_attack with monsters::wont_attack.Vsevolod Kozlov2009-11-091-5/+5
|
* Simplify.David Lawrence Ramsey2009-11-081-5/+8
|
* Ensure that only the Vampire Summon monster spell summons orange rats.David Lawrence Ramsey2009-11-081-2/+6
|
* Split map knowledge and FPROPs.Robert Vollmert2009-11-081-1/+2
| | | | | | | | map_cell no longer has the field "properties", which has been replaced by the unsigned long array env.pgrid. env.map has been renamed to env.map_knowledge. It should really be moved into player.