summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/attitude-change.cc
Commit message (Collapse)AuthorAgeFilesLines
* Rename MF_CREATED_FRIENDLY to MF_NO_REWARD, since that's all it's used for ↵Stefan O'Rear2009-12-281-1/+1
| | | | these days.
* Fix the last missing instances of the unclean/chaotic split.David Lawrence Ramsey2009-11-201-6/+6
|
* Split itemprop enums out into itemprop-enum.h.Robert Vollmert2009-11-171-0/+1
| | | | Other headers now don't need to include all of itemprop.h.
* Improve Fedhas' interaction with auto-exclusionsCharles Otto2009-11-131-3/+3
| | | | | | | | | Make neutralization work on monsters that are out of sight, also make it clear auto-exclusions for e.g. oklobs that previously got auto-ann. but are now out of sight. Make the monster_hostile stuff put auto-exclusions on oklobs you have already seen (if it turns them hostile).
* Rename monspeak/monplace/monstuff to mon-speak/place/stuff.Jude Brown2009-11-121-1/+1
| | | | | I'm pretty sure I've managed to replace every instance of a reference to these files, so I hopefully haven't missed anything.
* Convert another 45 monster loops to monster_iterator.Robert Vollmert2009-11-111-143/+126
| | | | | | | A total of 53 have been converted; 39 left, of which some should stay. Now at a net loss of lines of code for monster_iterator. Occurrences of MAX_MONSTERS down to 65 from 116 in *.cc.
* Properly split up unholy and evil items, reworking is_(unholy|evil)().David Lawrence Ramsey2009-11-101-7/+9
| | | | This is mainly for Fedhas, who hates the latter but not the former.
* Replace actor::is_unholy() with actor::undead_or_demonic().David Lawrence Ramsey2009-11-101-1/+1
|
* Replace monsters::is_magic_user() withDavid Lawrence Ramsey2009-11-101-5/+5
| | | | | monsters::is_actual_spellcaster(), as it's simpler, and monsters with the "actual spells" flag should always have spells anyway.
* Replace mons_is_magic_user() with monsters::is_magic_user().David Lawrence Ramsey2009-11-101-1/+1
|
* Add an is_holy() function to the actor interface.David Lawrence Ramsey2009-11-091-5/+5
| | | | | | | | | | | | 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_wont_attack with monsters::wont_attack.Vsevolod Kozlov2009-11-091-6/+6
|
* Rename FeawnCharles Otto2009-11-081-10/+10
| | | | | In most places Feawn is now referred to as "Fedhas," its long name (used in the religion screen) is "Fedhas Madash"
* Replace mons_cannot_act with monsters::cannot_act.Vsevolod Kozlov2009-11-081-1/+1
|
* Merge from chaotic_experiment branch:Eino Keskitalo2009-11-071-2/+2
| | | | 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-5/+5
|
* Avoid an infinite loop in tilse related to Feawn neutralizing plantsCharles Otto2009-11-071-7/+0
| | | | | | | | | | | Avoid an infinite loop caused caused by calling remove_auto_exclude on plants that get neutralized by Feawn. feawn_neutralise is called via viewwindow, and it was calling remove_auto_exclude, in tiles remove_auto_exclude calls viewwindow creating an infinite loop. Instead of calling remove_auto_exclude directly I added an attitude check to maybe_remove_autoexclusion which is (safely) called from viewwindow already.
* Replace mons_is_summoned with monsters::is_summoned.Vsevolod Kozlov2009-11-071-2/+2
| | | | Signed-off-by: Charles Otto <ottochar@gmail.com>
* Replace mons_neutral with monsters::neutral.Vsevolod Kozlov2009-11-071-1/+1
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Move mons_is_friendly to monsters::friendly.Vsevolod Kozlov2009-11-061-2/+2
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Collect attitude changing code.Robert Vollmert2009-11-061-0/+962