slower carbine, and more stronger armor

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4942 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-05-20 16:50:36 +00:00
parent 2fcd7c6b0a
commit a2856cd864
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -326,7 +326,8 @@ public:
// just subtract damage here, can set death, etc. later in code calling this
int dodamage(int damage)
{
int ad = damage * ( 100 + armour ) * 20 / 10000; // let armour absorb when possible // 4-level armor - continous approach
/* 4-level armor - continous approach: 24%, 33%, 41%, 50% */
int ad = damage * ( 1600 + 34 * armor ) / 10000; // let armour absorb when possible
if(ad>armour) ad = armour;
armour -= ad;
damage -= ad;
+1 -1
View File
@@ -394,7 +394,7 @@ guninfo guns[NUMGUNS] =
{
{ "knife", S_KNIFE, S_NULL, 0, 500, 50, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, false },
{ "pistol", S_PISTOL, S_RPISTOL, 1400, 160, 18, 0, 0, 55, 10, 8, 6, 5, 6, 35, 58, 125, 1, false },
{ "rifle", S_RIFLE, S_RRIFLE, 1950, 720, 50, 0, 0, 20, 50, 10, 4, 4, 10, 60, 60, 150, 1, false },
{ "rifle", S_RIFLE, S_RRIFLE, 1950, 840, 50, 0, 0, 20, 50, 10, 4, 4, 10, 60, 60, 150, 1, false },
{ "shotgun", S_SHOTGUN, S_RSHOTGUN, 2400, 1000, 5, 0, 0, 1, 35, 7, 9, 9, 10, 115, 115, 150, 1, false },
{ "subgun", S_SUBGUN, S_RSUBGUN, 1650, 80, 15, 0, 0, 70, 15, 30, 1, 2, 4, 15, 40, 175, 1, true },
{ "sniper", S_SNIPER, S_RSNIPER, 1950, 1500, 80, 0, 0, 60, 50, 5, 4, 4, 10, 85, 85, 100, 1, false },