Some cleanups

This commit is contained in:
hondacrx
2022-05-10 14:35:56 -04:00
parent 867f528ac0
commit 6a29799a6e
5 changed files with 6 additions and 6 deletions
@@ -745,7 +745,7 @@ namespace Framework.Constants
GameEvent = 24,
SItemQuality = 25,
Max = 25
Max
}
public enum ProgressType
-1
View File
@@ -69,7 +69,6 @@ namespace Game.Entities
public bool m_canDualWield;
public int BaseSpellCritChance { get; set; }
public uint RegenTimer { get; set; }
uint combatTimer;
public uint ExtraAttacks { get; set; }
//Charm
-1
View File
@@ -1960,7 +1960,6 @@ namespace Game.Entities
public SheathState GetSheath() { return (SheathState)(byte)m_unitData.SheatheState; }
public uint GetCombatTimer() { return combatTimer; }
public UnitPVPStateFlags GetPvpFlags() { return (UnitPVPStateFlags)(byte)m_unitData.PvpFlags; }
public bool HasPvpFlag(UnitPVPStateFlags flags) { return (m_unitData.PvpFlags & (uint)flags) != 0; }
public void AddPvpFlag(UnitPVPStateFlags flags) { SetUpdateFieldFlagValue(m_values.ModifyValue(m_unitData).ModifyValue(m_unitData.PvpFlags), (byte)flags); }
+5 -2
View File
@@ -34,6 +34,9 @@ namespace Game.Guilds
public Guild()
{
m_achievementSys = new GuildAchievementMgr(this);
for (var i = 0; i < m_bankEventLog.Length; ++i)
m_bankEventLog[i] = new LogHolder<BankEventLogEntry>();
}
public bool Create(Player pLeader, string name)
@@ -2555,9 +2558,9 @@ namespace Game.Guilds
List<BankTab> m_bankTabs = new();
// These are actually ordered lists. The first element is the oldest entry.
LogHolder<EventLogEntry> m_eventLog;
LogHolder<EventLogEntry> m_eventLog = new();
LogHolder<BankEventLogEntry>[] m_bankEventLog = new LogHolder<BankEventLogEntry>[GuildConst.MaxBankTabs + 1];
LogHolder<NewsLogEntry> m_newsLog;
LogHolder<NewsLogEntry> m_newsLog = new();
GuildAchievementMgr m_achievementSys;
#endregion
@@ -91,7 +91,6 @@ namespace Game.Networking.Packets
}
public uint VirtualRealmAddress;
public uint HotfixCount;
public MultiMap<int, HotfixRecord> Hotfixes;
}