summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-cast.h
Commit message (Collapse)AuthorAgeFilesLines
* headers: fix inconsistent struct/class forward declarationsSteven Noonan2009-12-291-1/+1
| | | | | | | Some classes were erroneously referred to as 'struct' in forward declarations, and vice versa. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* New (rakshasa) unique: Mara, Lord of Ilusions.Jude Brown2009-12-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Bug #2896412: Breath broken after polymorphMatthew Cline2009-11-151-2/+3
| | | | | | | | | | | | 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".
* mon-cast: fix is_valid_mon_spell()Matthew Cline2009-11-061-1/+2
| | | | | is_valid_mon_spell() should now correctly return true for non-targetted monster spells.
* Error for non-monster spells in monster specsMatthew Cline2009-11-051-1/+5
| | | | | | Give an error when parsing a monster spec if it lists a spell a monster can't cast, rather than causing an assertion when the monster tries to cast it.
* Split up monstuff.ccMatthew Cline2009-11-011-0/+25
A lot of monstuff.cc was moved into mon-abil.cc (monster abilities), mon-act.cc (the main monster loop), mon-behv.cc (monster behaviour) and mon-cast.cc (monster spells). mstuff2.cc was completely merged into other files.