diff options
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index 8c4041e754..ec4b944f5c 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -3433,7 +3433,7 @@ static int beam_source(const bolt &beam) static int name_to_skill_level(const std::string& name) { - skill_type type = SK_RANGED_COMBAT; + skill_type type = SK_THROWING; if (name.find("dart") != std::string::npos) type = SK_DARTS; @@ -3446,7 +3446,10 @@ static int name_to_skill_level(const std::string& name) else if (name.find("stone") != std::string::npos) type = SK_SLINGS; - return you.skills[type] + you.skills[SK_RANGED_COMBAT]; + if (type == SK_DARTS || type == SK_SLINGS) + return (you.skills[type] + you.skills[SK_THROWING]); + + return (2 * you.skills[type]); } // return amount of range used up by affectation of this monster |