[10317] Rogue's energy rate in mangos.conf

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
lasyan3 2010-08-04 02:35:35 +04:00 committed by VladimirMangos
parent 9648f4e1d9
commit ad7b628ebf
5 changed files with 11 additions and 4 deletions

View file

@ -2123,8 +2123,11 @@ void Player::Regenerate(Powers power, uint32 diff)
addvalue = 20 * RageDecreaseRate; // 2 rage by tick (= 2 seconds => 1 rage/sec)
} break;
case POWER_ENERGY: // Regenerate energy (rogue)
addvalue = 20;
{
float EnergyRate = sWorld.getConfig(CONFIG_FLOAT_RATE_POWER_ENERGY);
addvalue = 20 * EnergyRate;
break;
}
case POWER_RUNIC_POWER:
{
float RunicPowerDecreaseRate = sWorld.getConfig(CONFIG_FLOAT_RATE_POWER_RUNICPOWER_LOSS);

View file

@ -446,6 +446,7 @@ void World::LoadConfigSettings(bool reload)
setConfig(CONFIG_FLOAT_RATE_POWER_RUNICPOWER_INCOME, "Rate.RunicPower.Income", 1.0f);
setConfigPos(CONFIG_FLOAT_RATE_POWER_RUNICPOWER_LOSS,"Rate.RunicPower.Loss", 1.0f);
setConfig(CONFIG_FLOAT_RATE_POWER_FOCUS, "Rate.Focus", 1.0f);
setConfig(CONFIG_FLOAT_RATE_POWER_ENERGY, "Rate.Energy", 1.0f);
setConfigPos(CONFIG_FLOAT_RATE_SKILL_DISCOVERY, "Rate.Skill.Discovery", 1.0f);
setConfigPos(CONFIG_FLOAT_RATE_DROP_ITEM_POOR, "Rate.Drop.Item.Poor", 1.0f);
setConfigPos(CONFIG_FLOAT_RATE_DROP_ITEM_NORMAL, "Rate.Drop.Item.Normal", 1.0f);

View file

@ -204,6 +204,7 @@ enum eConfigFloatValues
CONFIG_FLOAT_RATE_POWER_RUNICPOWER_INCOME,
CONFIG_FLOAT_RATE_POWER_RUNICPOWER_LOSS,
CONFIG_FLOAT_RATE_POWER_FOCUS,
CONFIG_FLOAT_RATE_POWER_ENERGY,
CONFIG_FLOAT_RATE_SKILL_DISCOVERY,
CONFIG_FLOAT_RATE_DROP_ITEM_POOR,
CONFIG_FLOAT_RATE_DROP_ITEM_NORMAL,

View file

@ -1139,6 +1139,7 @@ Visibility.Distance.Grey.Object = 10
# Rate.RunicPower.Income
# Rate.RunicPower.Loss
# Rate.Focus
# Rate.Energy (Rogue)
# Health and power regeneration and rage income from damage.
# Default: 1
#
@ -1272,6 +1273,7 @@ Rate.Rage.Loss = 1
Rate.RunicPower.Income = 1
Rate.RunicPower.Loss = 1
Rate.Focus = 1
Rate.Energy = 1
Rate.Skill.Discovery = 1
Rate.Drop.Item.Poor = 1
Rate.Drop.Item.Normal = 1

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10316"
#define REVISION_NR "10317"
#endif // __REVISION_NR_H__