1
0

Inventory code cleanup, players can now see each other's armor

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1493 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com
2013-05-19 18:22:37 +00:00
parent 8311ee5ec6
commit 90c398a392
22 changed files with 409 additions and 222 deletions

View File

@@ -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);
}