mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[10317] Rogue's energy rate in mangos.conf
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
9648f4e1d9
commit
ad7b628ebf
5 changed files with 11 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10316"
|
||||
#define REVISION_NR "10317"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue