diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-08 21:33:27 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-08 21:33:27 +0000 |
commit | 5b2d47dfa224b441c5d39007bf6f98ef0597f9d6 (patch) | |
tree | 96889984514f88f848b6a984ca71b325017a1e9d /crawl-ref/source/player.cc | |
parent | 34bb40ababedcea0f05e00b7a41cdaffaf216357 (diff) | |
download | crawl-ref-5b2d47dfa224b441c5d39007bf6f98ef0597f9d6.tar.gz crawl-ref-5b2d47dfa224b441c5d39007bf6f98ef0597f9d6.zip |
Replace TSO's Smiting with Divine Shield.
Actually, I wasn't entirely sure which of the many attack
invocations to replace and I chose Smiting mostly because
of the new overlap with Zin and because such a change is
easiest to revert (copy code from Zin). :p
Divine Shield strengthens existing shields (also magical,
which might have to be excluded) or else creates a new
magical one. Either way, the shields value is increased by
3 + skills(SHIELDS)/5
and this bonus lasts for
5 + (skills(SHIELS) + 2*skills(INVOCATIONS))/6
turns, after which it is decreased by 1 every two out of
three turns until it reaches 0.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3225 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 827afc83ac..bb2c592c7d 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -2344,6 +2344,9 @@ int player_shield_class(void) //jmf: changes for new spell base_shield += you.inv[ shield ].plus; } + if (you.duration[DUR_DIVINE_SHIELD]) + base_shield += you.attribute[ATTR_DIVINE_SHIELD]; + return (base_shield); } // end player_shield_class() |