summaryrefslogtreecommitdiffstats
path: root/source/Item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Item.cpp')
-rw-r--r--source/Item.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Item.cpp b/source/Item.cpp
index 60bd7da95..a2e4a9f24 100644
--- a/source/Item.cpp
+++ b/source/Item.cpp
@@ -58,7 +58,7 @@ short cItem::GetMaxDamage(void) const
-bool cItem::DamageItem(void)
+bool cItem::DamageItem(short a_Amount)
{
short MaxDamage = GetMaxDamage();
if (MaxDamage == 0)
@@ -67,7 +67,7 @@ bool cItem::DamageItem(void)
return false;
}
- m_ItemDamage++;
+ m_ItemDamage += a_Amount;
return (m_ItemDamage >= MaxDamage);
}