diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-29 18:37:38 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-29 18:37:38 +0000 |
commit | fca2ba3fa41951c7337c13a7a147bcbe5ba8f671 (patch) | |
tree | d0fda56ba3ab7ba87b542bf61a65e4c2f4988b90 /crawl-ref/source/itemprop.cc | |
parent | a8624b062fb70d41a42c0d23f720ce57f9e8e080 (diff) | |
download | crawl-ref-fca2ba3fa41951c7337c13a7a147bcbe5ba8f671.tar.gz crawl-ref-fca2ba3fa41951c7337c13a7a147bcbe5ba8f671.zip |
* Nerf Dwarfs' Evocations aptitude 45 -> 67 (as e.g. Grey Elf).
* Correct Evoc aptitude listed in aptitudes.txt for High Elf.
* List max charges for wands in their descriptions.
* Mention waypoint number when creating waypoints.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8020 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index 3f3dd28d1a..401b4cba87 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -1336,6 +1336,31 @@ bool item_is_rechargeable(const item_def &it, bool known) && (!known || item_type_known(it))); } +// Max. charges are 3 times this value. +int wand_charge_value(int type) +{ + switch (type) + { + case WAND_INVISIBILITY: + case WAND_FIREBALL: + case WAND_TELEPORTATION: + case WAND_HEALING: + case WAND_HASTING: + return 3; + + case WAND_LIGHTNING: + case WAND_DRAINING: + return 4; + + case WAND_FIRE: + case WAND_COLD: + return 5; + + default: + return 8; + } +} + bool is_enchantable_weapon(const item_def &wpn, bool uncurse) { if (wpn.base_type != OBJ_WEAPONS && wpn.base_type != OBJ_MISSILES) |