Core/Units: Add PowerTypeFlags enum
Port From (https://github.com/TrinityCore/TrinityCore/commit/8828af2a5e3754e45893e0d62efae86747dfa4f2)
This commit is contained in:
@@ -1842,6 +1842,23 @@ namespace Framework.Constants
|
|||||||
MajorFactionRenown = 64
|
MajorFactionRenown = 64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Flags]
|
||||||
|
public enum PowerTypeFlags
|
||||||
|
{
|
||||||
|
StopRegenWhileCasting = 0x01,
|
||||||
|
UseRegenInterrupt = 0x02,
|
||||||
|
FillFractionalPowerOnEnergize = 0x08,
|
||||||
|
NoClientPrediction = 0x10,
|
||||||
|
UnitsUseDefaultPowerOnInit = 0x20,
|
||||||
|
NotSetToDefaultOnResurrect = 0x40,
|
||||||
|
IsUsedByNPCs = 0x80,
|
||||||
|
ContinueRegenWhileFatigued = 0x200,
|
||||||
|
RegenAffectedByHaste = 0x400,
|
||||||
|
SetToMaxOnLevelUp = 0x1000,
|
||||||
|
SetToMaxLevelOnInitialLogIn = 0x2000,
|
||||||
|
AllowCostModsForPlayers = 0x4000
|
||||||
|
}
|
||||||
|
|
||||||
public enum PrestigeLevelInfoFlags : byte
|
public enum PrestigeLevelInfoFlags : byte
|
||||||
{
|
{
|
||||||
Disabled = 0x01 // Prestige levels with this flag won't be included to calculate max prestigelevel.
|
Disabled = 0x01 // Prestige levels with this flag won't be included to calculate max prestigelevel.
|
||||||
|
|||||||
@@ -140,6 +140,8 @@ namespace Game.DataStorage
|
|||||||
public float RegenPeace;
|
public float RegenPeace;
|
||||||
public float RegenCombat;
|
public float RegenCombat;
|
||||||
public short Flags;
|
public short Flags;
|
||||||
|
|
||||||
|
public PowerTypeFlags GetFlags() { return (PowerTypeFlags)Flags; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public sealed class PrestigeLevelInfoRecord
|
public sealed class PrestigeLevelInfoRecord
|
||||||
|
|||||||
Reference in New Issue
Block a user