Attached Files |
0001-Make-steel-ammo-description-more-accurate.patch [^] (1,598 bytes) 2015-10-04 19:02 [Show Content] [Hide Content]From e4f7afa7040c7a7b445c80b8b722ddccc0299742 Mon Sep 17 00:00:00 2001
From: gerbias <smitnich@onid.orst.edu>
Date: Sun, 4 Oct 2015 08:53:34 -0700
Subject: [PATCH] Make steel ammo description more accurate
Currently steel ammo claims to do an extra 30% damage, however
this only applies to the base damage. Fix this by directly
increasing the reported base damage and just claim to do
increased damage.
---
crawl-ref/source/describe.cc | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index 547fe09..f500403 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -1263,7 +1263,7 @@ static string _describe_ammo(const item_def &item)
"the end of its range.";
break;
case SPMSL_STEEL:
- description += "Compared to normal ammo, it does 30% more "
+ description += "Compared to normal ammo, it does increased "
"damage.";
break;
case SPMSL_SILVER:
@@ -1278,8 +1278,10 @@ static string _describe_ammo(const item_def &item)
}
const int dam = property(item, PWPN_DAMAGE);
+ const special_missile_type brand = get_ammo_brand(item);
if (dam)
- description += make_stringf("\nBase damage: %d\n", dam);
+ description += make_stringf("\nBase damage: %d\n",
+ brand == SPMSL_STEEL ? div_round_up(dam*13, 10) : dam);
if (ammo_always_destroyed(item))
description += "\nIt will always be destroyed on impact.";
--
2.5.2.windows.1.4.g0c51399
|