summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Consolidate gods' vengeance handling, and don't display a penance dolorous2008-11-031-0/+1
| | | | | | | | | lecture if there's vengeance (so that you don't get "You will pay..." followed by "Beogh whispers, "You will pay..." for destroying an orcish idol; the "You feel guilty." message is enough then). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7367 c06c8d41-db1a-0410-9941-cceddc491573
* Add more spacing fixes.dolorous2008-11-031-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7366 c06c8d41-db1a-0410-9941-cceddc491573
* When a non-good-god-worshipping player or their allies kill a holy dolorous2008-11-031-0/+2
| | | | | | | being, make TSO sometimes avenge it with cleansing flame. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7360 c06c8d41-db1a-0410-9941-cceddc491573
* Make is_follower() return true for all undead slaves under Yred.dolorous2008-10-301-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7305 c06c8d41-db1a-0410-9941-cceddc491573
* Replace Yred's "Control Undead" power with "Enslave Soul", as proposed dolorous2008-10-161-0/+2
| | | | | | | on crawl-ref-discuss. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7263 c06c8d41-db1a-0410-9941-cceddc491573
* Consolidate prayer-ending routines.dolorous2008-10-071-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7177 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify.dolorous2008-10-021-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7080 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify.dolorous2008-09-301-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7074 c06c8d41-db1a-0410-9941-cceddc491573
* Consolidate and clean up Yred's injury mirroring routines.dolorous2008-09-301-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7073 c06c8d41-db1a-0410-9941-cceddc491573
* Properly enforce the limitations of Yred's injury mirroring.dolorous2008-09-301-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7072 c06c8d41-db1a-0410-9941-cceddc491573
* When under penance from Yred, give his servants on the current level a dolorous2008-09-261-0/+1
| | | | | | | chance to randomly abandon you. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7015 c06c8d41-db1a-0410-9941-cceddc491573
* Yred flavor, part 3: forbid the use of holy items (weapons of holy wrath dolorous2008-09-251-0/+1
| | | | | | | and scrolls of holy word) or spells. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6994 c06c8d41-db1a-0410-9941-cceddc491573
* Replace Yred's life saving with injury mirroring, based on the old "pain dolorous2008-09-251-0/+1
| | | | | | | | | | | | mirror" FR with some suggestions from dploog. A monster affected by this will briefly flash blood-red, and each mirroring costs the square root of the damage in piety. It will not damage a monster if the damage kills you first, but that should only have an effect on gameplay in wizard mode if you use it to avoid death, in which case you don't really need it. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6983 c06c8d41-db1a-0410-9941-cceddc491573
* Remove extraneous references to god_gives_permanent_followers().dolorous2008-09-251-1/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6981 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
* Implemented monster spell miscasts. Spell miscasting is now handledzelgadis2008-07-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by the MiscastEffect class, which has helper methods to make most of the non-helper code agnostic with respect to whether the miscaster is the player or a monster. Mummy death curses now affect monsters, and Zot traps now directly affect friendly and good-neutral monsters. In wizard mode you can force the player or a monster to miscast by targeting it and pressing 'M'. Todo/issues/notes: * Clouds now have a killer_type in addition to a kill_category. * There aren't any divination monster miscast effects yet. * Many of the harmless message-only miscast effects are missing monster messages. * If a monster actually miscasts a spell (not getting a mummy death curse or setting off a Zot trap) and this kills both the monster and the player then the wrong monster will be listed in hiscore entry. Since monsters can't do true spell miscasts yet, this can wait. * There was old, non-functioning code making Zot traps heal, haste or turn invisible hostile monsters that triggered it. I fixed it and then commented it out. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6723 c06c8d41-db1a-0410-9941-cceddc491573
* Describe items considered evil by the good gods as such in the inventory dolorous2008-07-101-0/+1
| | | | | | | description screen. This should fix [2014399]. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6474 c06c8d41-db1a-0410-9941-cceddc491573
* Bug 2004786: a lightning bolt bouncing and hitting a monster a second/tird/etczelgadis2008-07-011-0/+2
| | | | | | | | | | time shouldn't be an unchivalrous attack if the first hit wasn't unchivalrous. Before this fix the damage from the first hit from a lightning bolt might make a monster flee, and then the subsequent hits from bounces would be unchivalrous since it was fleeing. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6272 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify.dolorous2008-06-301-1/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6232 c06c8d41-db1a-0410-9941-cceddc491573
* Add gods' powers and abilities to their descriptions, viewable via ^!j-p-e-g2008-06-291-2/+3
| | | | | | | | | (as well as when praying at an altar) and when searching the database. Texts might need to be tweaked a bit but it's a *huge* improvement. (Thanks to whoever had that idea!) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6216 c06c8d41-db1a-0410-9941-cceddc491573
* Make tso_unchivalric_attack_safe_monster() take a monsters* parameter dolorous2008-06-291-1/+1
| | | | | | | instead of an actor* parameter. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6208 c06c8d41-db1a-0410-9941-cceddc491573
* Add various god gift-related cleanups.dolorous2008-06-191-0/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5966 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify.dolorous2008-06-171-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5918 c06c8d41-db1a-0410-9941-cceddc491573
* Fix attack conduct handling to register more than one conduct for an dolorous2008-06-171-1/+3
| | | | | | | | | | | | | | | attack again. For example, if you make an unchivalric attack on a neutral monster, both the "unchivalric attack" and "attack neutral" conducts will be handled again, instead of just the former (big oops). Passing a constant-sized array of god_conduct_triggers and adding wrapper functions to enable and disable them all is not the most elegant solution, but I don't quite have the time or the understanding right now to rewrite the god_conduct_trigger class to handle more than one conduct at once, and this does work in the meantime. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5914 c06c8d41-db1a-0410-9941-cceddc491573
* Move the tutorial descriptions of gods' likes and dislikes intoj-p-e-g2008-06-151-0/+5
| | | | | | | | | | | | | | | functions of their own, and reuse them in the god descriptions ('^' screen, when praying at altars, and when searching the database). What's still missing is some sort of "What this god offers you". The current handling makes gods like Lugonu, who have no restrictions and demand very little, appear like no-brainers, when of course the whole thing is much more complicated. I'll also be adding some extended information for the ^ screen (thus for your own god only). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5870 c06c8d41-db1a-0410-9941-cceddc491573
* Consolidate the checks for gods that give you permanent followers into a dolorous2008-06-141-0/+1
| | | | | | | | | function, and have it take the other good gods into account, since, if you switch from TSO to another good god, you keep all your non-daeva permanent followers. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5821 c06c8d41-db1a-0410-9941-cceddc491573
* Add follower-related cleanups.dolorous2008-06-131-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5797 c06c8d41-db1a-0410-9941-cceddc491573
* Yikes, so many files! And all I did was add more item evaluationj-p-e-g2008-06-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | functions for menu colouring and pickup... Added: emergency_item, good_item, dangerous_item, bad_item, and useless_item, all taking into account player species and mutations, so e.g. =see invisible is useless for Naga, and !poison is always bad but only useless if you don't know Evaporate. Never autopickup useless, dangerous (e.g. ?immolation) or inedible items, and simplify the item colour/pickup options accordingly. I'll have to see if pickup.lua is still even needed after this. Removed the menu_colour_prefix_id option as I can't see any reason to turn it off. Oh, and fixed a bug where Kenku were unable to stop levitating if they gained level 15 while levitating. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5658 c06c8d41-db1a-0410-9941-cceddc491573
* Add missing prototype.dolorous2008-06-011-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5411 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify.dolorous2008-05-311-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5365 c06c8d41-db1a-0410-9941-cceddc491573
* Modify tutorial messages for the new triggers. Thanks again, Matthew! :)j-p-e-g2008-05-291-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5328 c06c8d41-db1a-0410-9941-cceddc491573
* Move set_attack_conducts() to religion.cc, as it really belongs there.dolorous2008-05-251-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5243 c06c8d41-db1a-0410-9941-cceddc491573
* Rearrange the order of a few functions.dolorous2008-05-251-26/+25
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5242 c06c8d41-db1a-0410-9941-cceddc491573
* Run through the god conducts for killing if we make a bad kill of a dolorous2008-05-201-0/+1
| | | | | | | summoned creature (e.g. a living kill while praying to Elyvilon). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5166 c06c8d41-db1a-0410-9941-cceddc491573
* Remove redundant declarations.dolorous2008-05-171-3/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5098 c06c8d41-db1a-0410-9941-cceddc491573
* For TSO, change the "stabbing" conduct to an "unchivalrous attack" dolorous2008-05-171-1/+1
| | | | | | | | | conduct, and exercise it on every stabbing attempt, whether it succeeds or not (and also whether the player is berserk or not, since a berserk player trying to stab seems unchivalrous to me). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5093 c06c8d41-db1a-0410-9941-cceddc491573
* Remove now-unneeded prototype.dolorous2008-05-071-1/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4904 c06c8d41-db1a-0410-9941-cceddc491573
* Add a follower-handling routine for Trog, in case he's ever expanded to dolorous2008-05-071-0/+1
| | | | | | | allow for blessing followers. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4899 c06c8d41-db1a-0410-9941-cceddc491573
* [1956565] Fix issues with monster names.dshaligram2008-05-041-1/+1
| | | | | | | | | Monster names are now stored in the monster struct and saved. Changed some monster-finding functions to return monsters* instead of monster index for type-safety. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4859 c06c8d41-db1a-0410-9941-cceddc491573
* Some cleanup in the blessing routines. j-p-e-g2008-04-241-1/+1
| | | | | | | | | | Possibly fix a crash when calling bless_follower without an argument (it only happened with Beogh and TSO, so this is the most likely candidate). Outsource Boris' "I'll be back" speech. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4591 c06c8d41-db1a-0410-9941-cceddc491573
* * Add a wizard function apply_monster_blessing to allow for easy testingj-p-e-g2008-04-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | of dolorous' fabulous blessing routines. * Allow the possibility of naming monsters: A monster's random name seed is stored in its number property, and the actual name gets picked from randname.txt. (Once this leaves the experimental stage I'll move them into a file of their own.) This means that monster types that already use number for something else (hydras for #heads, manticores for #spikes, or zombies for monster type) cannot be named. Use the new functions for naming orcs blessed by Beogh. Only non-generic orcs may get named, e.g. orcs promoted to priesthood or orc warriors that get their weapon enchanted. I tried to come up with a number of thematic orcish names, and if anyone would like to contribute, they're welcome to do so. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4586 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up follower and cleansing flame routines some more. If you dolorous2008-04-191-1/+1
| | | | | | | | worship a good god, cleansing flame will no longer damage neutral monsters, since attacking neutrals offends the good gods. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4393 c06c8d41-db1a-0410-9941-cceddc491573
* Generalize god_hates_your_god() further.dolorous2008-04-081-1/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4136 c06c8d41-db1a-0410-9941-cceddc491573
* Generalize god_hates_your_god() for use in divine retribution.dolorous2008-04-081-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4135 c06c8d41-db1a-0410-9941-cceddc491573
* Like Beogh, have TSO randomly bless a follower when you kill evil (as an dolorous2008-03-291-1/+1
| | | | | | | | alternative to the health restoration). Also, clean up TSO's other blessing routines again. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3930 c06c8d41-db1a-0410-9941-cceddc491573
* Consolidate and clean up some of the blessing code.dolorous2008-03-291-3/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3928 c06c8d41-db1a-0410-9941-cceddc491573
* Add the beginnings of TSO follower blessings. Assume that followers are dolorous2008-03-281-0/+1
| | | | | | | | | | | any living friendly or charmed monsters. Deliberately don't check for evil or unholy status; that should help shake out cases where you can get them. Currently, only do blessings on followers that kill evil monsters 1/3 of the time, instead of gaining power as they normally would. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3923 c06c8d41-db1a-0410-9941-cceddc491573
* Make Zin take retribution on you if you switch to a chaotic god as well dolorous2008-03-241-0/+1
| | | | | | | | | as an evil god (i.e. Xom), and display a message when switching from a good god to an evil god to indicate pending retribution. TSO still has his usual "you will pay" speech, of course. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3846 c06c8d41-db1a-0410-9941-cceddc491573
* Expand bless_follower() to allow explicitly picking the follower as well dolorous2008-03-231-1/+2
| | | | | | | | | | | | | as picking one randomly, fix a potential problem with the display of the blessing message, and add a piety-dependent chance that followers will be specifically blessed when gaining levels. Hook the last of these up to Beogh for now (since the random chance on piety gain occurs less and less often as piety goes up). TSO should also get this eventually. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3821 c06c8d41-db1a-0410-9941-cceddc491573
* Add somewhat experimental code to bless random followers. Currently, dolorous2008-03-201-0/+2
| | | | | | | | | it's only used for Beogh, and its only effects are full healing and full healing with one or two added hit points. Eventually, it should get more effects, and be expanded for use by TSO. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3752 c06c8d41-db1a-0410-9941-cceddc491573