mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[6929] Apply new formula (from 3.0.3) for block value calculation
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
5eddba260e
commit
cd6717316e
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue