diff options
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r-- | crawl-ref/source/describe.cc | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index ea37a0c283..ce0448e2cb 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -1442,8 +1442,10 @@ static std::string describe_ammo( const item_def &item ) break; } - switch ( get_equip_race(item) ) + if ( has_launcher(item) ) { + switch ( get_equip_race(item) ) + { case ISFLAG_DWARVEN: description += "$It is more effective in conjunction with dwarven launchers."; @@ -1456,6 +1458,25 @@ static std::string describe_ammo( const item_def &item ) description += "$It is more effective in conjunction with orcish launchers."; break; + } + } + else + { + switch ( get_equip_race(item) ) + { + case ISFLAG_DWARVEN: + description += + "$It is most deadly when thrown by dwarves."; + break; + case ISFLAG_ELVEN: + description += + "$It is most deadly when thrown by elves."; + break; + case ISFLAG_ORCISH: + description += + "$It is most deadly when thrown by orcs."; + break; + } } if (item.special != 0 && item_type_known(item)) |