diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 9faf816fc..bde2e71f2 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -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); diff --git a/src/game/World.cpp b/src/game/World.cpp index 28393bdfd..d7a39d835 100644 --- a/src/game/World.cpp +++ b/src/game/World.cpp @@ -444,8 +444,9 @@ void World::LoadConfigSettings(bool reload) setConfig(CONFIG_FLOAT_RATE_POWER_RAGE_INCOME, "Rate.Rage.Income", 1.0f); setConfigPos(CONFIG_FLOAT_RATE_POWER_RAGE_LOSS, "Rate.Rage.Loss", 1.0f); 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); + 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); diff --git a/src/game/World.h b/src/game/World.h index 6aadc0d9c..9c122c38f 100644 --- a/src/game/World.h +++ b/src/game/World.h @@ -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, diff --git a/src/mangosd/mangosd.conf.dist.in b/src/mangosd/mangosd.conf.dist.in index f464eb8bb..cfd767a1d 100644 --- a/src/mangosd/mangosd.conf.dist.in +++ b/src/mangosd/mangosd.conf.dist.in @@ -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 diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 1dbf0e15b..63109511a 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10316" + #define REVISION_NR "10317" #endif // __REVISION_NR_H__