summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/godprayer.h
Commit message (Collapse)AuthorAgeFilesLines
* Allow autosacrifice on altars and when silenced (minmay)Neil Moore2014-08-031-1/+1
| | | | In the former case, without displaying the normal altar prompts.
* ConstifyNicholas Feinberg2014-07-041-1/+2
|
* Don't weight Nemelex decks based on the item type sacrificedChris Campbell2014-03-061-1/+0
| | | | | | | 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.
* Fix broken Jiyva bonuses for slurping large stacks (#6655).Neil Moore2013-02-171-1/+2
| | | | | | | | | Jiyva was giving piety for the entire stack, despite only a few of the objects being eaten. This meant it was "optimal" to collect arrows, stones, etc. and pile them into a single huge stack on a difficult level, giving over 10000 HP worth of healing in chunks of hundreds of HP at a time. This was particularly noticeable in Zig Sprint, with the huge piles of ammo in the starting room.
* Fix converting to Zin giving less starting piety if the altar is in the ↵Derrick Sund2012-09-091-1/+1
| | | | Orcish Mines.
* Use std namespace.Raphael Langella2012-08-261-1/+1
| | | | | | | | | | | | | 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.
* A few fixes to greedy_sacrificiable.Raphael Langella2012-08-091-0/+1
| | | | | | | | | Disabling autopickup doesn't disable it. It respects disabled item types for Nemelex. It ignores dropped and thrown items. Might still have some issues with some of the explore_stop options, I haven't tested.
* Make another bunch of functions static or deleted.Adam Borowski2012-03-211-1/+0
| | | | | Looks like get_XXX_path and the like in files.cc could use some drastic simplification, or perhaps even a nuking and rewrite.
* Zin demands a part of your gold on join.Adam Borowski2011-10-061-0/+1
| | | | | You get some piety from it, far less than for regular tithe but more than for altar donations. Unlike the latter, it is capped at +50, though.
* Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-4/+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.
* Rename DUR_PRAYER to DUR_JELLY_PRAYER, as that's what it is.Adam Borowski2011-02-041-1/+0
| | | | | There's a bug, by the way: jelly paralyzation duration has no relation to the status light.
* Remove a remnant of altar item sacrifices.Adam Borowski2010-10-201-1/+0
| | | | The only one left is gold for Zin, and that's not an actual item.
* Food, hp and mp for Jiyvaites on jelly eatingShayne Halvorson2010-10-011-1/+1
|
* ... and check if it works.Adam Borowski2010-09-301-1/+0
|
* Merge Jiyva item sacrifice with offer_items().Robert Vollmert2010-03-031-0/+4
| | | | | | | | Precisely, export sacrifice_item_stack() and use that in _monster_eat_item. Further, update _sacrifice_one_item_noncount to include Jiyva with Nemelex-like piety gain. The numbers should probably be tweaked.
* Split out godprayer.{cc,h} from religion.cc.Robert Vollmert2010-01-231-0/+16
This is directly prayer related code, as well as some things on sacrifice that were pulled along. Ideally, the sacrifice-related code should follow, or be collected in a further file.