[6929] Apply new formula (from 3.0.3) for block value calculation

Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
DiSlord 2008-12-23 01:37:33 +03:00
parent 5eddba260e
commit cd6717316e
2 changed files with 2 additions and 2 deletions

View file

@ -4355,7 +4355,7 @@ uint32 Player::GetShieldBlockValue() const
{ {
BaseModGroup modGroup = SHIELD_BLOCK_VALUE; BaseModGroup modGroup = SHIELD_BLOCK_VALUE;
float value = GetTotalBaseModValue(modGroup) + GetStat(STAT_STRENGTH)/20 - 1; float value = GetTotalBaseModValue(modGroup) + GetStat(STAT_STRENGTH) * 0.5f - 10;
value = (value < 0) ? 0 : value; value = (value < 0) ? 0 : value;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "6928" #define REVISION_NR "6929"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__