diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-24 00:50:31 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-24 00:50:31 +0000 |
commit | dd34bc7bf8b38a93cffba657eb2658a48c2dacff (patch) | |
tree | 8af9cbdc13945b26e90f172addc532ec2b862664 /crawl-ref/source/decks.cc | |
parent | 532d8dccff760d21593d5db61275e1d00a6af25b (diff) | |
download | crawl-ref-dd34bc7bf8b38a93cffba657eb2658a48c2dacff.tar.gz crawl-ref-dd34bc7bf8b38a93cffba657eb2658a48c2dacff.zip |
Generalize checks for spellbooks and rods of a particular class, or
which your god disapproves of. Now, if at least half of the spells in a
spellbook or rod are in a particular class (this threshold may need
adjustment; it's in is_spellbook_type()), the entire item is considered
to be, too. This means that artefact spellbooks containing many evil
spells may be considered evil items by good gods, as will artefact rods
if/when they're implemented.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7927 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/decks.cc')
0 files changed, 0 insertions, 0 deletions