summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-info.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix 0000188: monster list bug with player ghostJohanna Ploog2010-01-071-9/+8
| | | | | A stupid typo (mine, probably) caused monster names to actually be compared with themselves, so the check would always return false.
* Change "wrath" needles to "frenzy".Jude Brown2010-01-071-1/+3
| | | | | | | | | This introduces a new monster enchantment: ENCH_INSANE (or frenzy), sends the monster neutral and berserk at the same time. The needle now has the effect of causing this enchantment, instead of just sending monsters berserk. It now actually has some use, even if it is slightly risky.
* New (rakshasa) unique: Mara, Lord of Ilusions.Jude Brown2009-12-241-11/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Rename ENCH_NEUTRAL to ENCH_TEMP_PACIF since it's what it does.Adam Borowski2009-12-131-1/+1
| | | | | | Also, keep afflicted monsters from attacking the player. It's bad if they just got "impressed by your words" yet they hunt you and you can't even fight back.
* Remove option target_zero_exp.Robert Vollmert2009-11-241-2/+1
| | | | | | The same effect can now be achieved by overriding ch_target_monster. If anyone wants this, I'm happy to provide lua code.
* Make monster-info pane work in arenaMatthew Cline2009-11-231-1/+11
|
* Convert get_mons_glyph to return a glyph struct.Robert Vollmert2009-11-151-1/+3
|
* Merge spore experiments branch.Charles Otto2009-11-131-0/+3
|\
| * Change the ballistomycete activation mechanicCharles Otto2009-11-111-0/+3
| | | | | | | | | | | | | | Give ballistomycetes a counter, when it's at zero they have the slow spawn rate (are considered inactive), when it's greater than zero they have the fast spawn rate. Killing a ballisto gives +1 to any others on the level, a ballisto spawning a spore subtracts 1 from its own counter
* | Rename can_sleep/put_to_sleep to can_hibernate/hibernate.Jude Brown2009-11-121-1/+1
|/ | | | | | This reflects the fact that these functions are currently only used to player and monster ensorcelled hibernation/metabolic englaciation, and thus both check monster's cold resistance.
* Replace mons_is_petrifying with monsters::petrifying.Vsevolod Kozlov2009-11-081-1/+1
|
* Replace mons_neutral with monsters::neutral.Vsevolod Kozlov2009-11-071-1/+1
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Consolidate player/monster sleep checks.David Lawrence Ramsey2009-11-061-5/+1
|
* Move checks for the berserk state into actor::berserk().David Lawrence Ramsey2009-11-061-2/+2
|
* Move mons_is_friendly to monsters::friendly.Vsevolod Kozlov2009-11-061-1/+1
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Split get_symbol from view.cc.Robert Vollmert2009-11-061-1/+1
|
* Add actor::petrified, which replaces mons_is_petrified.Vsevolod Kozlov2009-11-061-1/+1
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Replace mons_is_caught with monsters::caught.Vsevolod Kozlov2009-11-051-1/+1
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Replace mons_is_paralysed with monsters::paralysed.Vsevolod Kozlov2009-11-051-1/+1
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Split game_options from externs.h into options.h.Robert Vollmert2009-11-041-0/+1
|
* Merge mons_holiness() into monster::holiness(), and add an is_unholy()David Lawrence Ramsey2009-10-311-11/+11
| | | | convenience function.
* Combine mons_is_sleeping(monsters *m) into monsters::asleep()abrahamwl2009-10-301-1/+1
| | | | ...and replace all references to mons_is_sleeping with asleep.
* Add minor cosmetic fixes.David Lawrence Ramsey2009-10-301-3/+1
|
* Merge a change to monster_info that got lost somehow.Charles Otto2009-10-301-0/+5
|
* Fix compilation.David Lawrence Ramsey2009-10-271-0/+1
|
* Add glyph and damage info to monster_info.Robert Vollmert2009-10-271-0/+15
|
* Move monster_pane_info out into mon-info.cc and rename.Robert Vollmert2009-10-271-0/+305
I plan to use monster_info to get monster data out to the player safely via Lua.