summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/xom.cc
Commit message (Collapse)AuthorAgeFilesLines
* Trim unnecessary #includes.Adam Borowski2010-01-131-2/+0
|
* Amulet of stasis, first cut.Darshan Shaligram2010-01-111-1/+1
| | | | | | | | | | | | | | | Amulets of stasis blocks: - Teleport self - Blink in all forms - Slowing - Hasting - Paralysis - Petrify - Berserker rage The amulet auto-ids the first time it triggers. The amulet does not affect existing conditions (such as an existing Haste spell or an existing post-berserk Slow).
* Amulet of Faith, mark I.Darshan Shaligram2010-01-101-3/+3
| | | | | | | | | | | | | | Amulets of faith have these effects: - Piety gain is 1/3 faster. - Gods that protect from harm are more likely to do so (your piety is 1/3rd higher for such checks). - Xom piety walk is 1/3 faster. - Xom is more likely to act. - Removing the amulet leaches away some piety, but will never cause excommunication, or drop piety too close to excommunication. Amulets auto-id if the player already has a religion, or when the player acquires a religion while wearing the amulet.
* Rename transfor.{cc,h} to transform.{cc,h}.Adam Borowski2010-01-071-1/+1
|
* Allow tiles to destroy only some items.Stefan O'Rear2009-12-301-5/+2
|
* Give move/copy_item_to_grid responsibility for hazardous terrainStefan O'Rear2009-12-291-1/+1
| | | | We now have much less duplication of logic, yay.
* Make item_is_critical a method of item_def.Vsevolod Kozlov2009-12-271-1/+1
|
* Raise minimum xp level for Xom's animated weapon event.Johanna Ploog2009-12-191-2/+14
| | | | Under penance, this is always allowed.
* Fix Xom acts also being suppressed for the &X command.Johanna Ploog2009-12-191-2/+2
|
* Fix Xom still banishing at early xp levels when bored.Johanna Ploog2009-12-181-4/+3
|
* Sometimes suppress good Xom events at 0 tension, bad acts at tension > 0.Johanna Ploog2009-12-181-7/+33
| | | | | | | | | | Note that a good act is not changed to a bad one, or vice versa. Rather, Xom simply doesn't act after all, so that overall, bad acts become more likely when the player is just walking around, without actually making the game nastier. This should make the tension effect actually noticeable in-game. Hopefully, this will also reduce the number of item gifts while simply walking around.
* Under Xom's penance, don't limit number of hostile demons summoned.Johanna Ploog2009-12-181-3/+6
|
* Add Xom's pseudo banishment to the list of effect names for debugging.Johanna Ploog2009-12-141-1/+2
|
* Only allow Xom's animate weapon effect for xp 4 and upwards.Johanna Ploog2009-12-141-2/+3
|
* Increase Xom's banishment chances again once xp > 8.Johanna Ploog2009-12-141-7/+43
|
* Remove a debugging statement.Johanna Ploog2009-12-141-2/+1
|
* Limit number of demons summoned by experience level.Johanna Ploog2009-12-141-0/+10
|
* Restrict Xom's banishment effect to xp > 8, or xp > 5 if bored.Johanna Ploog2009-12-141-9/+47
| | | | Also, allow Xom to sometimes revert a banishment right after exacting it.
* Make Xom sometimes (< 5% chance) revive the player after death.Johanna Ploog2009-12-091-0/+119
| | | | | | The chance of this happening depends strongly on tension and mood, as well as type of death. I also tried the normal protection from harm but I figure it's more interesting this way. :D
* Remove redundant #ifdef.Johanna Ploog2009-12-081-6/+1
|
* Add command for wizmode Xom debugging to main.cc. Whoops!Johanna Ploog2009-12-081-1/+17
| | | | | | Looks like whoever committed my patch didn't actually try whether it worked. ;) Also prompt for the number of iterations as is done for the item and fight statistics.
* Reduce dependency on travel.hMatthew Cline2009-11-291-0/+1
| | | | | | | | Removed inclusion of travel.h from most .h files to reduce the number of .cc files dependant on it. This involved moving the level_pos declaration to externs.h, moving the flood_find template to it's own header file, and moving two typedefs from travel.h to travel_defs.h because typedefs can't be forward declared (argh).
* Remove header includes from mon-place.h.Robert Vollmert2009-11-271-0/+2
|
* Remove further header-include. env.h now always directly included.Robert Vollmert2009-11-271-0/+1
|
* Move silenced(pos) to areas.cc.Robert Vollmert2009-11-211-0/+1
|
* Properly mark blessed whips as TSO gifts (Scourges instead of Blades).David Lawrence Ramsey2009-11-191-2/+2
|
* 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.
* Flatten header dependencies a bit.Robert Vollmert2009-11-171-0/+1
| | | | | | This removes a couple of unnecessary includes from header files. I may have missed adding some tiles includes.
* Convert a bunch of coordinate loops to new radius_iterator.Robert Vollmert2009-11-131-6/+3
|
* Add summoner and non_actor_summoner to mgen_dataStefan O'Rear2009-11-121-19/+31
| | | | | Monsters now know who summoned them. This will be important later. Probably breaks something; saves are not one of them.
* Rename SPELL_MASS_SLEEP -> SPELL_ENGLACIATION.Jude Brown2009-11-121-1/+1
|
* Rename monspeak/monplace/monstuff to mon-speak/place/stuff.Jude Brown2009-11-121-2/+2
| | | | | 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-57/+25
| | | | | | | 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.
* Remove a few obsolete includes.Robert Vollmert2009-11-101-2/+0
| | | | Also add a few previously indirect includes.
* Split shouting and stealth code from view.cc.Robert Vollmert2009-11-101-0/+1
|
* Remove option draw_it from viewwindow.Robert Vollmert2009-11-091-1/+1
| | | | | | The only use was just removed. Also move the draw check closer to where it's used.
* 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_wont_attack with monsters::wont_attack.Vsevolod Kozlov2009-11-091-5/+5
|
* Reorder the parameters in mgen_data::hostile_at() to be closer to theDavid Lawrence Ramsey2009-11-081-2/+2
| | | | | order used in mgen_data(), and allow the former to specify the base monster, as the latter does.
* 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.
* Merge from chaotic_experiment branch:Eino Keskitalo2009-11-071-1/+1
| | | | 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/+1
|
* Remove player.h dependency from coordit.h.Robert Vollmert2009-11-081-1/+1
| | | | | | | | | adjacent_iterator had a default center of you.pos(), which is now gone (also the uses of). I was running into circular header dependencies with actor.h including los_def.h including coordit.h including player.h including actor.h.
* Replace mons_is_summoned with monsters::is_summoned.Vsevolod Kozlov2009-11-071-2/+2
| | | | Signed-off-by: Charles Otto <ottochar@gmail.com>
* Replace global see_cell by observe_cell and disambiguate old uses.Robert Vollmert2009-11-061-7/+7
| | | | | | | 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-1/+1
|
* Move mons_is_friendly to monsters::friendly.Vsevolod Kozlov2009-11-061-1/+1
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Rename is_valid_item to item_def::is_valid.Vsevolod Kozlov2009-11-061-2/+2
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Replace mons_is_caught with monsters::caught.Vsevolod Kozlov2009-11-051-2/+2
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Replace uses of player_is_swimming with you.swimming.Vsevolod Kozlov2009-11-051-1/+1
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>