summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Replace mons_is_magic_user() with monsters::is_magic_user().David Lawrence Ramsey2009-11-101-5/+0
|
* Fix monsters with static spellbooks not getting any spells.Adam Borowski2009-11-101-0/+2
| | | | Praise be to 'git bisect'!
* Remove a few obsolete includes.Robert Vollmert2009-11-101-2/+0
| | | | Also add a few previously indirect includes.
* Remove inside_level_bounds.Robert Vollmert2009-11-101-2/+1
| | | | | This was a weird mix of in_bounds and map_bounds (exclusive top-left, inclusive top-right). Replaced with in_bounds.
* Split shouting and stealth code from view.cc.Robert Vollmert2009-11-101-0/+1
|
* Reorder entries in _get_spellbook_list().David Lawrence Ramsey2009-11-091-22/+22
|
* And add sanity check.David Lawrence Ramsey2009-11-091-5/+6
|
* Simplify.David Lawrence Ramsey2009-11-091-8/+2
|
* Make _get_spellbook_list() return true if we got a list.David Lawrence Ramsey2009-11-091-19/+16
|
* Simplify check for magic-using monsters.David Lawrence Ramsey2009-11-091-8/+2
|
* Add an is_holy() function to the actor interface.David Lawrence Ramsey2009-11-091-1/+1
| | | | | | | | | | | | This is consistent with similar functions in that it checks not only for MH_HOLY holiness, but whether the monster is a priest of a good god (currently, there are none) and whether it uses holy spells (currently, there are none after the changes described below). Minor and Major Healing are now enchantments rather than holy spells. The beam code treats them as such; wands of healing aren't holy items the way e.g. wands of draining are evil items; and unholy monsters (among others, Lom Lobon!) can cast these spells.
* Replace mons_is_pacified with monsters::pacified.Vsevolod Kozlov2009-11-091-5/+0
|
* Replace mons_wont_attack with monsters::wont_attack.Vsevolod Kozlov2009-11-091-8/+3
|
* Move random spellbook selection for monsters into its own function.David Lawrence Ramsey2009-11-091-52/+93
|
* When mutiplying/dividing by slime creatures' number, check if it'sDavid Lawrence Ramsey2009-11-081-3/+3
| | | | greayer than 1, to avoid redundant operations.
* Add a few more sanity checks for slime creatures' number.David Lawrence Ramsey2009-11-081-2/+2
|
* 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.
* Replace mons_cannot_act with monsters::cannot_act.Vsevolod Kozlov2009-11-081-6/+0
|
* Replace mons_cannot_move with monsters::cannot_move.Vsevolod Kozlov2009-11-081-5/+0
|
* Replace mons_is_petrifying with monsters::petrifying.Vsevolod Kozlov2009-11-081-7/+2
|
* Give ogre mages haste otherCharles Otto2009-11-081-0/+5
|
* Merge from chaotic_experiment branch:Eino Keskitalo2009-11-071-5/+0
| | | | Replace mons_is_shapeshifter(const monsters *m) in mon-util.cc with is_shapeshifter() in monster.cc
* New unique: Pikel, the big kobold slaver.Jude Brown2009-11-081-0/+4
| | | | | | | | | | | | Appears from D:4 through D:9, and comes with a band of human slaves. They will turn neutral (and be pacified, granting 1/2 EXP) if you destroy Pikel before destroying them. Pikel generates with a whip (either flaming or pain), and a black robe. The "pikel_band_neutralise()" function is quite hacky and assumes that all MONS_HUMANS with MF_BAND_MEMBER are part of Pikel's band. This should be changed as soon as there is a better way of tracking who is in what band.
* Remove mons_is_holy(), as it's redundant.David Lawrence Ramsey2009-11-071-6/+1
|
* Replace mons_is_summoned with monsters::is_summoned.Vsevolod Kozlov2009-11-071-54/+2
| | | | Signed-off-by: Charles Otto <ottochar@gmail.com>
* Replace uses of mons_is_icy with monsters::is_icy.Vsevolod Kozlov2009-11-071-8/+0
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Replace mons_strict_neutral with monsters::strict_neutral.Vsevolod Kozlov2009-11-071-7/+2
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Replace mons_good_neutral with monsters::good_neutral.Vsevolod Kozlov2009-11-071-7/+2
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Replace mons_neutral with monsters::neutral.Vsevolod Kozlov2009-11-071-8/+1
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Remove trailing whitespace.David Lawrence Ramsey2009-11-061-1/+1
|
* Replace global see_cell by observe_cell and disambiguate old uses.Robert Vollmert2009-11-061-1/+1
| | | | | | | Calls to plain see_cell(pos) were replaced with either observe_cell(pos) or you.see_cell(pos). observe_cell where related to drawing the interface and messaging, you.see_cell for game mechanics, and one or the other in less clear cases (targetting, say).
* Move mons_is_friendly to monsters::friendly.Vsevolod Kozlov2009-11-061-12/+7
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Remove mons_friendly_real and mons_wont_attack_real.Vsevolod Kozlov2009-11-061-11/+1
| | | | | | 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-6/+1
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Simplify.David Lawrence Ramsey2009-11-061-5/+4
|
* Add haste other as a monster spellCharles Otto2009-11-061-0/+41
|
* Since all unholy monsters are considered evil, removeDavid Lawrence Ramsey2009-11-051-5/+0
| | | | mons_is_evil_or_unholy(), and replace it with monsters::is_evil().
* Mark (very) ugly things as having miscellaneous shapes.David Lawrence Ramsey2009-11-051-2/+2
|
* Clean up flight status checks for monsters.David Lawrence Ramsey2009-11-051-87/+81
| | | | | 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-6/+1
| | | | Currently, only unholy monsters are marked as evil this way.
* Replace mons_is_caught with monsters::caught.Vsevolod Kozlov2009-11-051-5/+0
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Replace mons_is_paralysed with monsters::paralysed.Vsevolod Kozlov2009-11-051-6/+1
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Move *_res(ist)_magic to relevant classes, provide actor interface.Vsevolod Kozlov2009-11-051-76/+2
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* New monsters: golden eyes.Jude Brown2009-11-051-1/+2
| | | | | | | Small, blinking, and fast, these eyes come in packs and are found natively in Slime (though somewhat rarely). Their confusion ability does check MR before passing, however, and can be completely avoided by having Clarity.
* Allow each dancing weapon to have its own statsStefan O'Rear2009-11-041-0/+1
|
* Split up view.cc.Robert Vollmert2009-11-041-0/+1
|
* Fix inconsistencies in checks for monsters' being slime creatures.David Lawrence Ramsey2009-11-041-3/+3
|
* Get rid of multiple-meaning "int object" in env.show.Robert Vollmert2009-11-041-1/+1
| | | | | | | | | | | | | env.show is now a class show_def that stores tagged unions of type show_type. For the moment, there's also env.show_los for use in LOS determination, but that should become an array of boolean at some point. This breaks save compatibility. Tiles and console version build and appear to work fine, but this kind of change is likely to have some side-effects.
* Allow vaults to override monster spells with spells:<xyz>Darshan Shaligram2009-11-041-11/+7
| | | | | | | | | | Vaults can now override monster spell sets, or give non-casting monsters spells, and mark monsters as wizard or priest types. The M_ACTUAL_SPELLS, M_SPELLCASTER and M_PRIEST monster class flags are converted into MF_* flags at monster creation/polymorph time, and only the per-monster flags are checked when determining wizard/priestliness. See caveats in level_design.txt.
* Split game_options from externs.h into options.h.Robert Vollmert2009-11-041-0/+1
|