summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-act.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Different launchers make different amount of noiseMatthew Cline2009-11-071-0/+1
|
* Remove mons_is_holy(), as it's redundant.David Lawrence Ramsey2009-11-071-1/+1
|
* Replace mons_neutral with monsters::neutral.Vsevolod Kozlov2009-11-071-1/+1
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Split up debug.ccMatthew Cline2009-11-061-0/+1
|
* Simplify.David Lawrence Ramsey2009-11-061-1/+1
|
* Use coord_defs in a few more places.David Lawrence Ramsey2009-11-061-1/+1
|
* Replace global see_cell by observe_cell and disambiguate old uses.Robert Vollmert2009-11-061-8/+8
| | | | | | | 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 checks for the berserk state into actor::berserk().David Lawrence Ramsey2009-11-061-5/+5
|
* Move mons_is_friendly to monsters::friendly.Vsevolod Kozlov2009-11-061-10/+10
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Add actor::set_position.Robert Vollmert2009-11-061-5/+5
| | | | | | | | | | | | This should be used instead of setting position directly. actor::position could be made "protected" except for the arena's unwind_var(you.position), which is too difficult for me to fix. The reason behind this change is that actors should get their own LOS, whose origin should be synchronized with the actor's position. This change also removes the non-const "coord_def& actor::pos()" (yuk).
* Remove mons_friendly_real and mons_wont_attack_real.Vsevolod Kozlov2009-11-061-6/+6
| | | | | | They were the same as non-_real functions. Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Rename is_valid_item to item_def::is_valid.Vsevolod Kozlov2009-11-061-1/+1
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Add actor::petrified, which replaces mons_is_petrified.Vsevolod Kozlov2009-11-061-1/+1
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Unify mesmerisation code.Robert Vollmert2009-11-051-6/+2
| | | | | | | | 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-7/+7
| | | | 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().
* Split up view.cc.Robert Vollmert2009-11-041-0/+2
|
* Allow vaults to override monster spells with spells:<xyz>Darshan Shaligram2009-11-041-3/+1
| | | | | | | | | | 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
|
* Add minor cosmetic fixes.David Lawrence Ramsey2009-11-031-1/+3
|
* Apply n78291's patch in [2891024] to fix Jiyva's piety gain.David Lawrence Ramsey2009-11-021-3/+8
|
* Add minor cosmetic fixes.David Lawrence Ramsey2009-11-021-9/+6
|
* Death oozes eating silver and holy wrath items take damage instead of gain hp.Eino Keskitalo2009-11-021-12/+27
| | | | Signed-off-by: Eino Keskitalo <evktalo@users.sourceforge.net>
* Revert "Merge a few bits of Eino's chaotic_experiment branch that make sense"David Lawrence Ramsey2009-11-021-26/+14
| | | | This reverts commit d50bd43ba9936c27f4f90ecd324d14cb52c9f381.
* Merge a few bits of Eino's chaotic_experiment branch that make senseDavid Lawrence Ramsey2009-11-021-14/+26
| | | | | | | | | | | | with the current code: 1. Death oozes eating silver and holy wrath items take damage instead of gaining hp. 2. Mark monsters with Summon Ugly Thing chaotic. Also, until the issue of transformations' being chaotic or not is worked out, don't mark any players as chaotic.
* Split up monstuff.ccMatthew Cline2009-11-011-0/+3617
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.