summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/godprayer.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove 2 more parameters from items()reaverb2014-08-081-3/+3
| | | | | They were only used in one place, and the relevant code was moved to that one place in the previous commit.
* Allow autosacrifice on altars and when silenced (minmay)Neil Moore2014-08-031-4/+4
| | | | In the former case, without displaying the normal altar prompts.
* Remove stuffNicholas Feinberg2014-07-291-1/+2
| | | | | | | .cc, moving its contents into the new stepdown.cc and strings.cc. (The latter also got many donations from libutil.h.) Down with stuff! Up the new flesh!
* Create prompt.ccNicholas Feinberg2014-07-271-0/+1
|
* Separate 'permanent' and 'temporary' monster hit diceNicholas Feinberg2014-07-131-1/+1
| | | | As part of a wider scheme to make draining temporary.
* Remove Qazlal's permanent resistance giftChris Campbell2014-07-131-51/+0
| | | | | | | | A simple resistance is a very boring capstone gift, especially compared to Qazlal's existing temporary resistances which have much more interesting interactions, and the powerful active abilities. Allowing a choice of resistance also resulted in AC almost always being the best option.
* ConstifyNicholas Feinberg2014-07-041-1/+1
|
* Let BLOOD finally have its place in the sunNicholas Feinberg2014-07-011-1/+1
| | | | | | ...by moving bloodspatter functions into their own file. Death to misc.cc! Long live the new file hierarchy!
* Split butchering/bottling into a new fileNicholas Feinberg2014-07-011-0/+1
|
* Prayer tweaksNicholas Feinberg2014-06-301-2/+6
|
* Allow sacrificing corpses on other gods' altars (minmay)Nicholas Feinberg2014-06-301-44/+69
| | | | And other miscellaneous refactorings.
* Remove an unused argument from the items() functiongammafunk2014-06-291-3/+3
|
* Let godless hill orcs convert to priests with (p)Nicholas Feinberg2014-06-261-0/+11
| | | | | | | | Since everyone seemed to assume that's how it worked anyway. (Probably because that's how you convert to altar gods...) Possibly this should be documented in-game. (But would that just confuse players more?)
* Rename 'mesclr()' to 'clear_messages()'reaverb2014-06-221-1/+1
|
* Add a failure check in Necronomicon gifting (floatingatoll, #8417).Shmuale Mark2014-06-181-3/+1
|
* Fix messaging when enchanting weapons via god blessingChris Campbell2014-06-151-2/+2
|
* Plus2: Combine all three enchant weapon scrollsChris Oelmueller2014-06-141-1/+2
| | | | | | | | | | | | | | | New item is just called "scroll of enchant weapon". It increases both accuracy and damage by 1. Enchant weapon III scrolls have been converted to stacks of 2 enchant weapon scrolls where placed in vaults, and if already generated will act like a common "scroll of enchant weapon" as well for sake of simplicity. Scroll weights have been adjusted a bit; this almost certainly needs to be revisited. [Committer's note: merged a few commits into this, where it seemed sensible. Also reworked the scroll weights, but yeah, that needs another pass.]
* Fix weapon listing for god blessingsChris Campbell2014-06-121-1/+1
| | | | | | Not sure if there's a better way of doing this but now all valid weapons are listed for blessing - previously ranged weapons would be listed but only valid under TSO.
* Allow gods to rebrand blessed weapons againChris Campbell2014-06-121-1/+1
|
* Don't crash when unwielding a temp-branded weapon.Neil Moore2014-06-121-1/+4
|
* Allow temporary branding to go over a permanent brand.Shmuale Mark2014-06-121-1/+3
| | | | | | | Toting around an unbranded weapon just to be able to swap to it is no fun, and not even that much more of a difficulty; maybe it just means getting pain out takes 0.7 more turns or so. You still can't overwrite artefacts, of course.
* Revert "Make random_choose_weighted() end on -1 weight"reaverb2014-06-101-1/+1
| | | | | | | This reverts commit 7e81480cda18144ff185f5248639a072b654deff. Turns out I missed some calls to random_choose_weighted(), this change might not even be worth doing.
* Make random_choose_weighted() end on -1 weightreaverb2014-06-101-1/+1
| | | | For consistency with random_choose().
* Remove a now-unused variable.Neil Moore2014-06-071-7/+1
|
* Make Doxygen @returns "@return" for consistancy.reaverb2014-06-051-1/+1
|
* Remove some unused handling for Nemelex item sacrificesChris Campbell2014-05-311-12/+1
|
* Re-order some dubious codeNicholas Feinberg2014-05-301-2/+2
| | | | | Would have caused double messages when under Gozag penance, if that was a thing that existed.
* Correct some doxygen blocks.Neil Moore2014-05-291-1/+1
| | | | | Some of them were missing the /** (or /*!) that makes doxygen consider the comment in the first place.
* Change Nemelex piety gain to piety from exploration.Shayne Halvorson2014-05-281-27/+0
| | | | | Nemelex no longer accepts sacrifices or grants piety for using decks.
* Make corpses and skeletons stationary items (minmay)gammafunk2014-05-261-1/+6
| | | | | | | | | Moving corpses and skeletons to other levels or to other locations within a level is tedious but may be optimal for corpse rot and god abilities like Kiku's corpse prayer. This commit prevents the player from picking up or apporting carrion. It generalizes the code used for nets being stationary, and cleans up and documents various bits of related item pickup code.
* Remove player burden and carrying capacitygammafunk2014-05-261-5/+0
| | | | | | | | | | | Item inventory weights (based on item mass) generally don't lead to meaningful decisions that justify the inventory juggling and interface problems that come from having burden states. The 52-slot limit is a better system for limiting inventory and providing inventory-related decisions because it's not so fine-grained and doesn't require the player to examine weights for each slot. Work is ongoing to improve the slot system by consolidating food types and handling strategic consumables in a different way.
* Improve display and messaging for Gozag's item duplicationChris Campbell2014-05-091-0/+4
| | | | | Give a message if you pray over an unduplicatable item, and specify that artefacts are not allowed on the ^ screen.
* Don't let Gozag duplicate goldChris Campbell2014-05-081-1/+6
|
* Gozag: only duplicate one of a stack of items.Steve Melenchuk2014-05-071-8/+16
| | | | The old behaviour was never intentional.
* Don't allow duplicating the orb of Zot or runesChris Campbell2014-05-071-1/+1
|
* Make a note when duplicating an item under Gozag or gaining Qazlal's ↵Chris Campbell2014-05-071-0/+6
| | | | resistance gift
* Tone down Qazlal's 6* gift.Steve Melenchuk2014-05-071-6/+6
| | | | | Just one pip of the relevant resistances or AC+3, like Elemental Adaptation in permanent form.
* Rewrite Qazlal's 6* elemental protection messages (ChrisOelmueller).Steve Melenchuk2014-05-071-4/+5
| | | | | The original version of these were written when the relevant mutation messages were less clear.
* Qazlal: one-time-only elemental protection gift at 6*.Steve Melenchuk2014-05-071-0/+46
| | | | | | | Choose from rF++, rC++, rElec, or 5 AC (compare the Elemental Staff). Goes away permanently if you abandon Qazlal; ineffective while under penance.
* A few extra bits of Gozag messaging.Steve Melenchuk2014-05-071-0/+2
| | | | | Mainly to avoid the problem of piety being an unthing for Gozag, but there's a bit of a bonus here too.
* Gozag: Duplication.Steve Melenchuk2014-05-071-2/+37
| | | | | As a one-time ability, you can drop any non-artefact on a Gozag altar and pray to be prompted to duplicate the item.
* Refactor _altar_prayer() a bitreaverb2014-05-061-27/+19
|
* Increase the number of curse scrolls from Ashenzari sacrificesChris Campbell2014-03-261-1/+1
| | | | Fixed at 3 (still with random weighting for type), rather than 1-3.
* Reword a Zin messageChris Campbell2014-03-201-2/+1
|
* Remove `auto_list` optionChris Oelmueller2014-03-111-6/+3
| | | | | | | | | | | | | It has been defaulting to `true` for a while now. That setting provides a nicer interface overall and there is little reason to support alter- nate input methods. Some prompts asking for a letter have not been adjusted, for example evoking a rod with multiple spells. Those are hopefully gone soon anyways. [Committer's note: The option had no known uses except by bots, and those could work without it. And, of course, multi-spell rods are gone.]
* Allow prayer while silenced (and into).Shmuale Mark2014-03-111-7/+2
|
* Don't weight Nemelex decks based on the item type sacrificedChris Campbell2014-03-061-95/+1
| | | | | | | Instead just have a fixed weighting for deck types (currently: 40% Destruction, 30% Summoning, 20% Escape, 10% Wonders). Removes the secret tech from Nemelex's ^! screen, and improves the rest of the description there.
* Don't generate racial armourChris Oelmueller2014-03-061-4/+2
| | | | | | | | [It had much the same problems as racial weapons, with only very slightly more significant effects. Some of the old effects of racial armour could potentially be rethought and made into a new armour ego. Beogh still gives a (slightly smaller than before) bonus for armour use, without the orcish requirement. -MarvinPA]
* Let Ashenzari give multiple curse scrolls earlierChris Campbell2014-03-051-1/+1
| | | | Give 1-3 curse scrolls, not based on piety.
* Adjust Ashenzari curse scroll weights, sometimes generate multiple scrollsChris Campbell2014-03-031-15/+30
| | | | | | Look at the number of available armour slots for your species to decide on the weightings for curse scrolls, and generate 1-3 curse scrolls per remove curse scroll, based on piety.