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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user