armor is different from armour

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4943 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-05-20 17:02:01 +00:00
parent a2856cd864
commit b70bad199e
+1 -1
View File
@@ -327,7 +327,7 @@ public:
int dodamage(int damage)
{
/* 4-level armor - continous approach: 24%, 33%, 41%, 50% */
int ad = damage * ( 1600 + 34 * armor ) / 10000; // let armour absorb when possible
int ad = damage * ( 1600 + 34 * armour ) / 10000; // let armour absorb when possible
if(ad>armour) ad = armour;
armour -= ad;
damage -= ad;