Skip to content

Commit

Permalink
Make sure P's 4* gift actually happens at 4* (rchandra).
Browse files Browse the repository at this point in the history
Broken when I added the 2* gift.
  • Loading branch information
sgrunt committed Dec 5, 2015
1 parent 7603ac4 commit 26805c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crawl-ref/source/religion.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1791,6 +1791,8 @@ bool do_god_gift(bool forced)
if (forced && coinflip()
|| you.piety >= piety_breakpoint(1)
&& you.num_total_gifts[you.religion] == 0
|| you.piety >= piety_breakpoint(3)
&& you.num_total_gifts[you.religion] == 1
|| !forced && random2(you.piety) > piety_breakpoint(3)
&& one_chance_in(4))
{
Expand Down

0 comments on commit 26805c2

Please sign in to comment.