summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.h
Commit message (Collapse)AuthorAgeFilesLines
* Add snapping turtles, alligator snapping turtles and sea snakes to the ↵Darshan Shaligram2010-01-081-1/+2
| | | | | | Shoals, remove yaktaurs, centaurs and stone giants. Snapping turtles get reaching attacks. Sea snakes get strong venom.
* Merge branch 'master' into ioodAdam Borowski2009-12-301-0/+1
|\
| * Implement fish corpses and kraken zombies.Stefan O'Rear2009-12-301-0/+1
| |
* | Make the "killing friend" conduct, slouch and swapping place treat ↵Adam Borowski2009-12-201-1/+1
|/ | | | projectiles as non-monsters.
* Rename grey snakes to anacondas. Give them constriction, message-only for now.Adam Borowski2009-12-161-1/+3
|
* Make folks pacified via Evilyon neutral-hostile (dpeg).Adam Borowski2009-12-141-1/+1
|
* Use AT_ not AF_ for WEAP_ONLY, so statues won't use bows like a cudgel.Adam Borowski2009-12-111-3/+4
|
* A blank "statue" monster, to be redefined by vaults.Adam Borowski2009-12-111-1/+2
|
* Make ugly_thing_colour_offset() take only a color instead of a monster.David Lawrence Ramsey2009-11-211-1/+1
|
* Convert mons_has_los_ability() to use monster_type instead of int.David Lawrence Ramsey2009-11-191-1/+1
|
* Fix information leakage in detect creatures.Robert Vollmert2009-11-161-0/+1
| | | | | | | | | | Also fix tiles giving more information than console version. There's now mons_detected_base, which assigns a base monster type to every monster type based on the default displayed glyph. It just takes the first entry for a given glyph based on the mon-data.h order, so this may need tweaking in some cases.
* Move general initialization of monster spells into its own function.David Lawrence Ramsey2009-11-141-1/+1
|
* Replace mons_is_magic_user() with monsters::is_magic_user().David Lawrence Ramsey2009-11-101-1/+0
|
* Replace mons_is_pacified with monsters::pacified.Vsevolod Kozlov2009-11-091-1/+0
|
* Replace mons_wont_attack with monsters::wont_attack.Vsevolod Kozlov2009-11-091-1/+0
|
* Comment out the unused monster flag in mon-util.h.David Lawrence Ramsey2009-11-081-1/+1
|
* Replace mons_cannot_act with monsters::cannot_act.Vsevolod Kozlov2009-11-081-1/+0
|
* Replace mons_cannot_move with monsters::cannot_move.Vsevolod Kozlov2009-11-081-1/+0
|
* Replace mons_is_petrifying with monsters::petrifying.Vsevolod Kozlov2009-11-081-1/+0
|
* Merge from chaotic_experiment branch:Eino Keskitalo2009-11-071-1/+0
| | | | Replace mons_is_shapeshifter(const monsters *m) in mon-util.cc with is_shapeshifter() in monster.cc
* Remove mons_is_holy(), as it's redundant.David Lawrence Ramsey2009-11-071-1/+0
|
* Change hard-coded _give_wand exceptions to class flags.Jude Brown2009-11-081-2/+2
| | | | | | | New class flags: M_NO_WAND. Do not give this unique a wand. Currently applied to Gastronok, removing the hard-coded exception. M_NO_HT_WAND: don't give a high-tier wand to this monster, even if their HD is 5 or higher.
* Replace mons_is_summoned with monsters::is_summoned.Vsevolod Kozlov2009-11-071-2/+0
| | | | Signed-off-by: Charles Otto <ottochar@gmail.com>
* Replace uses of mons_is_icy with monsters::is_icy.Vsevolod Kozlov2009-11-071-1/+0
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Replace mons_strict_neutral with monsters::strict_neutral.Vsevolod Kozlov2009-11-071-1/+0
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Replace mons_good_neutral with monsters::good_neutral.Vsevolod Kozlov2009-11-071-1/+0
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Replace mons_neutral with monsters::neutral.Vsevolod Kozlov2009-11-071-1/+0
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Move mons_is_friendly to monsters::friendly.Vsevolod Kozlov2009-11-061-1/+0
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Remove mons_friendly_real and mons_wont_attack_real.Vsevolod Kozlov2009-11-061-2/+0
| | | | | | They were the same as non-_real functions. Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Add actor::petrified, which replaces mons_is_petrified.Vsevolod Kozlov2009-11-061-1/+0
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Remove the rest of the M_EVIL references.David Lawrence Ramsey2009-11-051-1/+2
|
* Since all unholy monsters are considered evil, removeDavid Lawrence Ramsey2009-11-051-1/+0
| | | | mons_is_evil_or_unholy(), and replace it with monsters::is_evil().
* Clean up flight status checks for monsters.David Lawrence Ramsey2009-11-051-8/+9
| | | | | In mon-data.h, remove the M_FLIES and M_LEVITATE flags, and instead use a flight_type variable indicating flight status.
* Create an is_evil() function in the actor interface.David Lawrence Ramsey2009-11-051-1/+0
| | | | Currently, only unholy monsters are marked as evil this way.
* Replace mons_is_caught with monsters::caught.Vsevolod Kozlov2009-11-051-1/+0
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Replace mons_is_paralysed with monsters::paralysed.Vsevolod Kozlov2009-11-051-1/+0
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Move *_res(ist)_magic to relevant classes, provide actor interface.Vsevolod Kozlov2009-11-051-3/+0
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Remove "called from:" comments.Vsevolod Kozlov2009-11-031-133/+0
| | | | | | These were of questionable use and freshness. Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Remove mstuff2.h and mstuff2 referencesMatthew Cline2009-11-031-9/+3
|
* Move checks for a player or monster's being chaotic into anotherDavid Lawrence Ramsey2009-11-011-2/+1
| | | | convenience function in the actor interface.
* Split up monstuff.ccMatthew Cline2009-11-011-11/+2
| | | | | | | 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.
* monster.cc: Split of monsters clasxs methodsMatthew Cline2009-10-311-1/+5
| | | | | First step in splitting up mon-util.cc: move monsters class methods out into monster.cc
* Merge mons_holiness() into monster::holiness(), and add an is_unholy()David Lawrence Ramsey2009-10-311-2/+0
| | | | convenience function.
* Combine mons_res_foo(monsters *m) into monsters::res_foo()abrahamwl2009-10-311-13/+1
| | | | | | | | | | ...and replace all references to mons_res_foo() with res_foo(). Where "foo" is one of the many different things monsters can resist that happened to have a function of that format. TGfR! (Thank God for Regex!) Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Implement [2889948]: In the console version, make (very) ugly thingDavid Lawrence Ramsey2009-10-311-0/+1
| | | | | corpses randomly cycle through all their available colors instead of always being (light)red.
* Combine mons_is_submerged(monsters *m) into monsters::submerged()abrahamwl2009-10-311-1/+0
| | | | | | ...and replace all references to mons_is_submerged() with submerged(). It's a dirty job, but someone's got to do it. (Thank God for regex!)
* Combine mons_is_sleeping(monsters *m) into monsters::asleep()abrahamwl2009-10-301-1/+0
| | | | ...and replace all references to mons_is_sleeping with asleep.
* Convert some ints to monster_type.Robert Vollmert2009-10-271-1/+1
| | | | | | | | | There's a whole lot of places that pass monster_type as int, often with varying meanings for the value -1. This moves some of these to monster_type, introducing MONS_NO_MONSTER and MONS_PLAYER as new invalid special values. Also improve on the autoexclude descriptions.
* Fold mon_can_see_monster and mons_monster_visible into monsters.Robert Vollmert2009-10-221-2/+0
|
* Move mons_player_visible into player::visible_to.Robert Vollmert2009-10-221-1/+0
|