diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-07 09:52:00 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-07 09:52:00 +0000 |
commit | 085d445195e9621ca31d54076e1dabf11a09f9b6 (patch) | |
tree | ebc47268853bd4705b3734035777a637510867cb /crawl-ref/source/religion.cc | |
parent | 2fbde88e4b97c1dfaa8b1603aec1c9cc818d922a (diff) | |
download | crawl-ref-085d445195e9621ca31d54076e1dabf11a09f9b6.tar.gz crawl-ref-085d445195e9621ca31d54076e1dabf11a09f9b6.zip |
Beogh bug fixes, mostly orcish gear stuff.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1780 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r-- | crawl-ref/source/religion.cc | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index e71070b1f5..786ae5aca9 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -182,10 +182,11 @@ const char* god_gain_power_messages[MAX_NUM_GODS][MAX_GOD_ABILITIES] = "", "gate yourself to the Abyss" }, // Beogh - { "", + { "Beogh supports the use of orcish gear.", "smite your foes", "gain orcish followers", - "recall your orcish followers", "walk on water" } + "recall your orcish followers", + "walk on water" } }; const char* god_lose_power_messages[MAX_NUM_GODS][MAX_GOD_ABILITIES] = @@ -267,10 +268,11 @@ const char* god_lose_power_messages[MAX_NUM_GODS][MAX_GOD_ABILITIES] = "", "gate yourself to the Abyss" }, // Beogh - { "", + { "Beogh no longer supports the use of orcish gear.", "smite your foes", "gain orcish followers", - "recall your orcish followers", "walk on water" } + "recall your orcish followers", + "walk on water" } }; @@ -321,6 +323,12 @@ void dec_penance(god_type god, int val) simple_god_message(" seems mollified.", god); take_note(Note(NOTE_MOLLIFY_GOD, god)); you.penance[god] = 0; + + // bonuses now once more effective + if ( god == GOD_BEOGH && you.religion == GOD_BEOGH) + { + you.redraw_armour_class = 1; + } } else you.penance[god] -= val; @@ -334,6 +342,12 @@ void dec_penance(int val) void inc_penance(int god, int val) { + // orcish bonuses don't apply under penance + if ( god == GOD_BEOGH && you.penance[god] == 0) + { + you.redraw_armour_class = 1; + } + if (you.penance[god] + val > 200) you.penance[god] = 200; else |