summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/xom.h
Commit message (Collapse)AuthorAgeFilesLines
* Replace Xom mass inner flame with mass fireball/coronaChris Campbell2014-04-031-1/+1
| | | | | | | Inner flame mostly just encouraged running away until it expired, and works much better as ?immolation's effect. Instead cause multiple fireballs with fairly low damage on non-adjacent monsters, or mass corona for a really impressive display of Xom's destructive might.
* Let Xom occasionally give stealth or make noise upon entering a new levelChris Campbell2014-04-031-0/+1
| | | | | | Only rarely, and only upon entering a level for the first time. Randomly pick between providing a fairly long-duration stealth boost or making a loud noise.
* Clean up and document the xom life-saving functiongammafunk2014-03-181-3/+1
| | | | This function had three unused arguments, which I've removed.
* Chaos champions: Rearrange the Pieces.Steve Melenchuk2014-01-261-0/+1
| | | | | | | | | | | | This is a close analogue of Xom's "rearrange the pieces" effect, only it selects pairs of nearby creatures randomly to swap around rather than swapping you with a nearby target first and then swapping nearby monsters indiscriminately; every nearby creature here is guaranteed to be repositioned (unless there are an odd number of creatures in view, in which case one will be left out). There are also no confusion effects. Chain of Chaos is now unused; it's been suggested it be used for a Xom effect, but I'll leave that to others to figure out.
* Let Xom sometimes summon shadow creatures instead of demonsChris Campbell2013-01-221-1/+1
|
* Remove Xom's hostile animate weaponChris Campbell2013-01-221-9/+8
| | | | | | It was one of the most annoying bad effects but could also be frequently avoided by always remembering to unwield your weapon while resting or exploring.
* Xom effect: blink monsters (either randomly, or towards the player)Chris Campbell2012-10-091-1/+2
|
* Xom effect: assorted single monster enchantments (positive and negative)Chris Campbell2012-10-091-2/+4
|
* Let Xom sometimes unbanish the playerChris Campbell2012-10-091-0/+1
|
* New Xom effect: loud noisesChris Campbell2012-10-091-3/+4
|
* Use std namespace.Raphael Langella2012-08-261-2/+2
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* Make inline functions static.Adam Borowski2012-08-091-1/+1
| | | | | | | | | This avoids unnecessary non-inlined copies. Also, we had a few large functions that had no reason for inlining, let's have them be regular ones. I also made "static inline" always use the same order, for easier grepping.
* Remove Xom annoyance gifts, make item gifts rarerChris Campbell2012-04-011-8/+7
|
* Fix the XOM_LAST_GOOD_ACT enum to account for mass inner flame.David Lawrence Ramsey2012-03-261-1/+1
|
* New Xom effect: Mass inner flameChris Campbell2012-03-261-0/+1
|
* Don't let Xom gift permanent monstersChris Campbell2012-03-261-1/+0
|
* Move all of Xom's divination effects from spells to actual Xom effects.David Lawrence Ramsey2012-02-261-1/+1
| | | | | | | | | | This removes the SPELL_FAKE_MAGIC_MAPPING hack, as well as removing SPELL_DETECT_ITEMS and SPELL_DETECT_CREATURES, since they're only cast via Xom anyway. For now, the effects are added between potion effects and random spellcasting, and there are also new Xom messages for them under the "Xom divination" heading.
* Slightly simplify.Adam Borowski2012-01-251-1/+1
|
* Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-5/+4
| | | | | | | "File:" is shown in your editor's status bar. "Written by:" was used only for the first person who changed a file. We got git for that now, and pre-DCSS history is so woefully inaccurate it doesn't really matter.
* Added Xom effect: coloured smoke trail behind player.valrus2010-10-121-8/+9
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Make describe_xom_favour() and _xom_effect_to_name() return std::string.David Lawrence Ramsey2010-07-171-1/+1
| | | | | | | | This avoids problems with c_str()'s going out of scope, and these two functions are only assigned to std::string variables anyway. Furthermore, this fixes Mantis 1999. Also, constify the return value of _describe_favour_generic().
* Apply patch by Cryptic: New Xom effect "Snakes to sticks".Johanna Ploog2010-01-281-2/+3
| | | | | Turns hostile snakes in los into wooden weapons. Numbers still subject to change.
* Sometimes suppress good Xom events at 0 tension, bad acts at tension > 0.Johanna Ploog2009-12-181-17/+19
| | | | | | | | | | 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.
* Restrict Xom's banishment effect to xp > 8, or xp > 5 if bored.Johanna Ploog2009-12-141-1/+2
| | | | 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/+4
| | | | | | 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 duplicated version of _move_stairs.Robert Vollmert2009-10-161-0/+2
|
* Apply jpeg's patches in [2876380] (automate Xom testing) and [2876688]David Lawrence Ramsey2009-10-111-1/+55
| | | | (new Xom effects), tweaked to fit into current trunk.
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* * Add stair repelling as a bad Xom effect.j-p-e-g2009-04-131-2/+2
| | | | | | | * Experimentally make tension increase the odds for good effects. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9600 c06c8d41-db1a-0410-9941-cceddc491573
* Add some checks to Xom making you cast spells, so you don't attempt toj-p-e-g2009-03-311-1/+1
| | | | | | | | | | | | | e.g. cast a branding spell, or a transformation that will fail for whatever reason. You may still occasionally get a "The spell fizzled" (or whatever) message but that should be rarer now. Apply the same fail chances for Detect Items as for Magic Mapping for fully explored levels, and for low severity make Summon Butterflies more likely to avoid endless attempts of casting Magic Mapping on fully explored levels. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9573 c06c8d41-db1a-0410-9941-cceddc491573
* Fix compilation.dolorous2009-03-281-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9562 c06c8d41-db1a-0410-9941-cceddc491573
* Xom again:j-p-e-g2009-03-281-1/+1
| | | | | | | | | | * tweak values for tension and amusement * Xom only laughs about "funny" deaths * gift_timeout rerolling after a bad act depends on its severity * replace the blink effect with position swapping git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9561 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix Xom's interest wrapping around from 0 to 255. (!!!)j-p-e-g2009-03-261-3/+3
| | | | | | | | | | | | | | | | * In xom_acts, if Xom was bored (and now did something bad) reroll interest. * Greatly decrease amusement derived from the player entering a new level. (However, entering a new level via escape hatch or shaft is REALLY amusing, more so the deeper the shaft.) * Xom may be amused if you are caught in a net and there are hostile monsters around. * Fix draconian tiles not showing up correctly for Detect Creatures. * Improve card descriptions output for Triple Draw/Stack Five. * In inventory, add '&' hotkey for useless (== inedible) chunks. Still needs documentation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9557 c06c8d41-db1a-0410-9941-cceddc491573
* * For flavour, let Xom laugh himself silly whenever a follower dies.j-p-e-g2009-03-191-1/+1
| | | | | | | | | | | | * Fix Xom being amused about rotten corpses being butchered. (As opposed to clean corpses becoming rotten while butchered, which is how it was originally intended.) * Xom no longer is amused if you deliberately hit yourself with a missile/wand/spell in safe surroundings. (Identifying wands that way or zapping /random effects is still considered amusing.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9519 c06c8d41-db1a-0410-9941-cceddc491573
* Zooko's Xom patch (piety handling and whether his acts are good or bad).zelgadis2008-12-131-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7817 c06c8d41-db1a-0410-9941-cceddc491573
* Remove pre-Stone Soup change history from source files, and push it allj-p-e-g2008-09-141-4/+0
| | | | | | | | | | into a file crawlhistory.txt in docs/obsolete. I used a perl script to do this under the assumption that all these change logs used the same system following the keyword "Change History". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6930 c06c8d41-db1a-0410-9941-cceddc491573
* Remove now-redundant prototype.dolorous2008-06-231-1/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6066 c06c8d41-db1a-0410-9941-cceddc491573
* Batch of tiny changes for MSVC compiles.pauldubois2008-03-101-1/+1
| | | | | | | | | | | | | | | Most of these fall into the category: - don't use struct to refer to a class, and vice versa - msvc doesn't like unistd.h or dirent.h Doesn't fix all the struct/class problems; I think I'll silence those for now and move on because it's not all that important. Tested on OS X. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3571 c06c8d41-db1a-0410-9941-cceddc491573
* Made Tome of Destruction more consistent for those with high Evoc.haranp2007-11-131-1/+1
| | | | | | | | | Made manuals visibly different from spellbooks. Also, you can't cancel reading a manual; so you risk wasting it if you read all unIDed books. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2851 c06c8d41-db1a-0410-9941-cceddc491573
* Drawing from Destruction with no monsters nearby does not gain piety.haranp2007-10-251-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2546 c06c8d41-db1a-0410-9941-cceddc491573
* Made Xom be smarter about being amused at losing/missing runes, andzelgadis2007-10-021-1/+2
| | | | | | | | | | | | | | | | | made Xom also be amused at runes being destroyed. Related changes: * Keep track of which items have ever been held by the player with ISFLAG_BEEN_IN_INV. * item_was_destroyed() is called when an item is destroyed (as in dropped in lava, not destroy_item() being called), and item_was_lost() is called if the item was lost (i.e., being left behind in the Abyss). * Keeps track of the number of runes that the character has collected, and how many have been left in the Halls of Zot. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2300 c06c8d41-db1a-0410-9941-cceddc491573
* This commit breaks save file compatability.zelgadis2007-09-301-0/+41
Lots of new things that amuse/stimulate Xom, and a few things which don't amuse him as much anymore. Among the new things is a corpse turning into a skeleton while butchering it; if this is too harsh to do just for Xom's amusement (previously turning into a skeleton while butchering was an ignored case and still produced chunks of flesh) it can be changed back. Also, if a Xom worshiper draws the Blank card, Xom makes it act like a Xom card, since a plain old Blank card is boring. Keep track of which branch the Orb is in, if the player isn't carrying it. Keep track of how/why the player ended up in a particular level type (Abyss, Pan, etc). Changed most "a distortion effect" cause strings for distortion caused tranlsocation miscast effects to something more specific. Added new wizard commands 'C' to curse or uncruse an item, and 'Ctrl-A' to re-generate the Abyss. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2256 c06c8d41-db1a-0410-9941-cceddc491573