summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove the last references to god_hates_butchery().David Lawrence Ramsey2010-01-141-1/+0
|
* A quick "god gift" Wizard function.Jude Brown2010-01-121-0/+2
| | | | | | | It will probably do nasty things to piety and god gift timeouts, but it's useful for quickly checking what acquirements can be got for different gods, and also testing Okawaru's missile acquirement (which wasn't working with slings before, but is now.)
* Amulet of Faith, mark I.Darshan Shaligram2010-01-101-0/+1
| | | | | | | | | | | | | | 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.
* Remove now-unused function offer_and_butcher_corpse().David Lawrence Ramsey2009-11-211-1/+0
|
* religion: temple_god_list()Matthew Cline2009-11-111-0/+2
| | | | | | New function temple_god_list(), which returns a list of gods whose altars can appear in the main temple, overflow temples, and mini-temples.
* Rename FeawnCharles Otto2009-11-081-3/+3
| | | | | In most places Feawn is now referred to as "Fedhas," its long name (used in the religion screen) is "Fedhas Madash"
* Split away divine retribution into godwrath.ccAdam Borowski2009-11-071-1/+1
|
* Collect attitude changing code.Robert Vollmert2009-11-061-2/+0
|
* Yank some god invocations from religion.cc into godabil.ccAdam Borowski2009-10-221-19/+0
|
* Slightly reduce religion.cc by yanking item-handling stuff to goditem.ccAdam Borowski2009-10-211-30/+0
|
* Add missing Chronos conducts for hasting yourself, casting swiftness,Adam Borowski2009-10-211-0/+1
| | | | using weapons of speed and boots of running.
* Split actors and env from externs.h.Robert Vollmert2009-10-211-1/+2
|
* gods: added "Chronos", the slow godSteven Noonan2009-10-201-0/+3
| | | | | Signed-off-by: Brendan Hickey <brendan@bhickey.net> Acked-by: Steven Noonan <steven@uplinklabs.net>
* Make gods that take corpse offerings do so without the butchery step,David Lawrence Ramsey2009-10-111-1/+2
| | | | | | i.e., allow merely praying over said corpses. Now, the only gods that pay attention to butchery are Kikubaaqudgha and Elyvilon. Also, add several miscellaneous fixes.
* Using Tukima's Dance on a weapon your god hates is a bad thing.Adam Borowski2009-10-071-2/+2
|
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Generalize the check for Vehumet supported spells. Add Shatter and Lee's ↵evktalo2009-09-301-0/+2
| | | | | | Rapid Deconstruction (SPELL_FRAGMENTATION) to the list. Signed-off-by: evktalo <evktalo@users.sourceforge.net>
* Commit several patches:j-p-e-g2009-09-131-0/+4
| | | | | | | | | | | | * patch 2849505 by weyrava: make submerged monsters use the correct colour * patch 2857771 by caotto: another Feawn update * patch 2838771 by camedo: add potions of brilliance/agility * BR 2841651 by bookofjude: allow Merfolk to control-tele into deep water Now we need tiles for the new potions! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10669 c06c8d41-db1a-0410-9941-cceddc491573
* Apply caotto's patch in [2827204] to finish the plant god, with some dolorous2009-07-281-0/+2
| | | | | | | cleanups added by me. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10442 c06c8d41-db1a-0410-9941-cceddc491573
* Handle one more case of Jiyva's altar removal.dolorous2009-07-191-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10335 c06c8d41-db1a-0410-9941-cceddc491573
* Add yet more Jiyva-related cleanups. Make sure his altars are never dolorous2009-07-191-0/+1
| | | | | | | | | | | generated if the royal jelly is dead, you don't worship Jiyva, and you're not under penance from Jiyva; don't destroy Jiyva's altars if the royal jelly dies after you start worshipping him or go under penance from him; and clean up the alternate method for unlocking the Slime Pits. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10332 c06c8d41-db1a-0410-9941-cceddc491573
* Add more Jiyva-related fixes.dolorous2009-07-191-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10326 c06c8d41-db1a-0410-9941-cceddc491573
* Add still more cleanups.dolorous2009-07-181-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10283 c06c8d41-db1a-0410-9941-cceddc491573
* Forward-port 0.5 r10276 to trunk, and add a few more cleanups.dolorous2009-07-181-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10277 c06c8d41-db1a-0410-9941-cceddc491573
* Add the Slime god as per n78291's (Shayne?) patch. Thanks! :Dj-p-e-g2009-07-181-0/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10271 c06c8d41-db1a-0410-9941-cceddc491573
* Make the chance of getting an intact enslaved soul from Yred dependent dolorous2009-07-161-1/+1
| | | | | | | on Invocations skill instead of straight 50%. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10233 c06c8d41-db1a-0410-9941-cceddc491573
* Give Zin a one-shot ability at piety > 160 (cf. TSO's/Lugonu's weapon dolorous2009-07-121-0/+1
| | | | | | | blessings) to remove all mutations. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10173 c06c8d41-db1a-0410-9941-cceddc491573
* * Tweak Xom's ideas about what makes a funny or boring death.j-p-e-g2009-04-221-1/+1
| | | | | | | | | * Add another option (*sigh*) covering whether W=T and P=R. (Defaults to false.) * Various spacing and comment fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9675 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify.dolorous2009-04-181-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9640 c06c8d41-db1a-0410-9941-cceddc491573
* Move the HALF_MAX_PIETY define to religion.h, as it's used with Xom in dolorous2009-04-181-2/+3
| | | | | | | several places outside xom.cc. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9639 c06c8d41-db1a-0410-9941-cceddc491573
* Add spacing fix.dolorous2009-03-131-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9451 c06c8d41-db1a-0410-9941-cceddc491573
* Tiles again:j-p-e-g2009-03-061-0/+1
| | | | | | | | | | | * Store index of last cell clicked on in inventory and suppress item description if you just clicked on it, so you can see the messages describing whatever you just did (should fix 2660578). * Allow right-click as a synonym for '!' when toggling ^, A, m. * Let shift left-click on avatar standing on altar = prayer. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9343 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [2575361]: Properly differentiate between spells a god hates in dolorous2009-02-071-4/+5
| | | | | | | | | general and spells a god dislikes for the purpose of artefact spellbooks, in order to avoid e.g. Elyvilon's hating a book of conjurations. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8950 c06c8d41-db1a-0410-9941-cceddc491573
* Add speech for when the player fails to neutralize holy beings.dolorous2009-01-271-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8830 c06c8d41-db1a-0410-9941-cceddc491573
* Add miscellaneous minor fixes.dolorous2009-01-221-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8670 c06c8d41-db1a-0410-9941-cceddc491573
* Fix bug #2089989: only place friendly god gifts after the player's turn iszelgadis2009-01-121-0/+2
| | | | | | | | | | over, so that any in-progress effects won't hurt them, thus turning them hostile and angering the player's god. Also try to avoid placing god gifts (friendly or hostile) in a damaging cloud, and if it's unavoidable and placing a friendly god gift there would anger the god then don't place them at all. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8426 c06c8d41-db1a-0410-9941-cceddc491573
* "The Wrath" card: never choose Nemelex (to prevent Nemelex from recursivelyzelgadis2008-12-241-1/+1
| | | | | | | | | | forcing the player to draw from his Deck of Punishment), and keep trying different gods until one is found who is willing to punish the player (the good gods will only punish you if you're worshipping an evil god, plus Zin will punish the worshippers of chaotic gods). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7929 c06c8d41-db1a-0410-9941-cceddc491573
* Generalize checks for spellbooks and rods of a particular class, or dolorous2008-12-241-2/+19
| | | | | | | | | | | | which your god disapproves of. Now, if at least half of the spells in a spellbook or rod are in a particular class (this threshold may need adjustment; it's in is_spellbook_type()), the entire item is considered to be, too. This means that artefact spellbooks containing many evil spells may be considered evil items by good gods, as will artefact rods if/when they're implemented. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7927 c06c8d41-db1a-0410-9941-cceddc491573
* Implement reliable protection from harm for Elyvilon (available under dolorous2008-12-211-0/+1
| | | | | | | prayer at high enough piety, but with a significant piety cost). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7898 c06c8d41-db1a-0410-9941-cceddc491573
* First draft of god tension, and of Xom using tension.zelgadis2008-12-191-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7869 c06c8d41-db1a-0410-9941-cceddc491573
* Non-weighted themed randart spellbooks, and prices for randart spellbooks.zelgadis2008-12-051-2/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7746 c06c8d41-db1a-0410-9941-cceddc491573
* Savefile compatibility breakage from keeping track of which spells have beenzelgadis2008-12-041-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | seen. Implemented fixed-level randart spell books, which is all randart spellbooks as of now. All my attempts at sorting the spell list so that spells with the same schools group together have utterly failed. Got rid of the hackish "non-monster origin is stored in item.orig_monnum as (-origin - 2)" logic, replaced with the slightly less hackish "-origin". Added the two enumerations IT_SRC_START and IT_SRC_SHOP to do it. Also, origin_is_god_gift() and origin_is_acquirement() can retrieve the god/source of the item so that you don't have to do the negation and typecasting yourself. Added some new spell flags: * SPFLAG_BATTLE for non-conjuration spells which are still combat/battle related (branding spells and single school attack spells like "Pain"), * SPFLAG_CARD for spells which are card-type effects which don't show up in ordinary spellbooks (Tomb of Doroklohe and (I assume) Disintigrate) * SPFLAG_TESTING for spells which are only used for testing (Debugging Ray) * SPFLAG_DEVEL for spells that are still under development (Crush, Disrupt, and Detect Magic). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7742 c06c8d41-db1a-0410-9941-cceddc491573
* Add some chaos attacks/weapons. Missiles and launchers of chaos fire a bolt ofzelgadis2008-12-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | a random type (including enchantments, which isn't so good since they don't have a visible beam). Might want to add BEAM_CHAOS and make it a beam of that. Weapons of chaos either does a random brand effect (fire, poison, etc) or a random chaos effect (which includes cloning the attack victim). The AF_CHAOS monster attack flavour either does a random monster flavour or chaos effect (same chaos effects as for weapons). The relative frequency of all the different effects/brands/flavours no doubt needs adjustment. All of this is currently only available via Xom. 10% of all common-type demons sent in by Xom will be chaos spawn (the only kind that use AF_CHAOS, and never randomly generated otherwise). All item gifts from Xom which are generated with a brand will have their brand switched to chaos (this should probably be made to happen less than 100% of the time). And finally one of Xom's bad acts is to upgrade a non-branded weapon of a nearby hostile monster to a chaos brand (this might need to be made less (or more) common). Oh, and if a randart has a brand which would be identified if it were merely an ego weapon, it now identifies the RAP_BRAND property of the randart. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7704 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up ability handling to display costs for prayer-activated dolorous2008-11-241-1/+1
| | | | | | | | abilities (Zin's sustenance and Yred's injury mirror) in a less hackish way. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7593 c06c8d41-db1a-0410-9941-cceddc491573
* Generalize the cannibalism checks.dolorous2008-11-231-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7552 c06c8d41-db1a-0410-9941-cceddc491573
* Add penance-related cleanups.dolorous2008-11-191-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7509 c06c8d41-db1a-0410-9941-cceddc491573
* Make some god-related functions static.dolorous2008-11-041-6/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7378 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify yet again.dolorous2008-11-031-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7373 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify again.dolorous2008-11-031-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7372 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify again.dolorous2008-11-031-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7371 c06c8d41-db1a-0410-9941-cceddc491573