Core/Reputation: Named all reputation flags
Port From (https://github.com/TrinityCore/TrinityCore/commit/f6b919fafe45aaeba0c5572925e47562158314b1)
This commit is contained in:
@@ -474,12 +474,14 @@ namespace Framework.Constants
|
||||
Monster = 8 // aggressive creature from monster team
|
||||
// if none flags set then non-aggressive creature
|
||||
}
|
||||
|
||||
public enum FactionTemplateFlags
|
||||
{
|
||||
PVP = 0x800, // flagged for PvP
|
||||
ContestedGuard = 0x1000, // faction will attack players that were involved in PvP combats
|
||||
HostileByDefault = 0x2000
|
||||
}
|
||||
|
||||
public enum ReputationRank
|
||||
{
|
||||
None = -1,
|
||||
@@ -494,6 +496,7 @@ namespace Framework.Constants
|
||||
Max = 8,
|
||||
Min = Hated
|
||||
}
|
||||
|
||||
public enum ReputationSource
|
||||
{
|
||||
Kill,
|
||||
@@ -504,17 +507,22 @@ namespace Framework.Constants
|
||||
RepeatableQuest,
|
||||
Spell
|
||||
}
|
||||
public enum FactionFlags
|
||||
|
||||
[Flags]
|
||||
public enum ReputationFlags : ushort
|
||||
{
|
||||
None = 0x00, // no faction flag
|
||||
Visible = 0x01, // makes visible in client (set or can be set at interaction with target of this faction)
|
||||
AtWar = 0x02, // enable AtWar-button in client. player controlled (except opposition team always war state), Flag only set on initial creation
|
||||
Hidden = 0x04, // hidden faction from reputation pane in client (player can gain reputation, but this update not sent to client)
|
||||
InvisibleForced = 0x08, // always overwrite FACTION_FLAG_VISIBLE and hide faction in rep.list, used for hide opposite team factions
|
||||
PeaceForced = 0x10, // always overwrite FACTION_FLAG_AT_WAR, used for prevent war with own team factions
|
||||
Inactive = 0x20, // player controlled, state stored in characters.data (CMSG_SET_FACTION_INACTIVE)
|
||||
Rival = 0x40, // flag for the two competing outland factions
|
||||
Special = 0x80 // horde and alliance home cities and their northrend allies have this flag
|
||||
None = 0x0000,
|
||||
Visible = 0x0001, // makes visible in client (set or can be set at interaction with target of this faction)
|
||||
AtWar = 0x0002, // enable AtWar-button in client. player controlled (except opposition team always war state), Flag only set on initial creation
|
||||
Hidden = 0x0004, // hidden faction from reputation pane in client (player can gain reputation, but this update not sent to client)
|
||||
Header = 0x0008, // Display as header in UI
|
||||
Peaceful = 0x0010,
|
||||
Inactive = 0x0020, // player controlled (CMSG_SET_FACTION_INACTIVE)
|
||||
ShowPropagated = 0x0040,
|
||||
HeaderShowsBar = 0x0080, // Header has its own reputation bar
|
||||
CapitalCityForRaceChange = 0x0100,
|
||||
Guild = 0x0200,
|
||||
GarrisonInvasion = 0x0400
|
||||
}
|
||||
|
||||
public enum Gender : sbyte
|
||||
|
||||
Reference in New Issue
Block a user