summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-abil.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* 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-8/+8
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Don't trash player position in _siren_movement_effect.Robert Vollmert2009-11-061-1/+2
| | | | | | | | swap_check's second argument is the monster's possible swap destination, not the position you want to swap from. _siren_movement_effect is likely still broken, since it doesn't take this desired swap target into account.
* Remove mons_friendly_real and mons_wont_attack_real.Vsevolod Kozlov2009-11-061-2/+2
| | | | | | They were the same as non-_real functions. Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Unify mesmerisation code.Robert Vollmert2009-11-051-19/+4
| | | | | | | | There were several places that had copies of the same code, checking whether mesmerisation blocked movement to a given target. The various mesmerisation functions have become methods of player and were moved into behold.cc.
* 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>
* Make many checks for monster (non)existence on squares use monster_at().David Lawrence Ramsey2009-11-051-1/+1
| | | | | | | Not all are changed yet, as there are several index checks still needed for debugging purposes. Also, make many checks for player/monster (non)existence use actor_at().
* Move *_res(ist)_magic to relevant classes, provide actor interface.Vsevolod Kozlov2009-11-051-15/+11
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* New monsters: golden eyes.Jude Brown2009-11-051-11/+45
| | | | | | | 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.
* Make merging slime creatures lose at most 1 turn after the merge.Charles Otto2009-11-051-12/+25
| | | | | If two (or more I guess) slime merge onto a third slime in one turn make the merged slime only lose 1 turn.
* Split up view.cc.Robert Vollmert2009-11-041-0/+2
|
* Fix inconsistencies in checks for monsters' being slime creatures.David Lawrence Ramsey2009-11-041-3/+3
|
* Add minor cosmetic fixes.David Lawrence Ramsey2009-11-041-11/+13
|
* Split game_options from externs.h into options.h.Robert Vollmert2009-11-041-0/+1
|
* Make slime creatures' merge behavior somewhat less aggressive.Charles Otto2009-11-041-13/+34
| | | | | Prevent slime creatures from merging if there is an empty square for them to move on that would reduce the distance to their target.
* arena: respawning slime creaturesMatthew Cline2009-11-021-3/+7
| | | | Deal with two respawning slime creatures merging and then splitting.
* Split up monstuff.ccMatthew Cline2009-11-011-0/+1378
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.