Core/Refactor: Part 2

This commit is contained in:
hondacrx
2018-05-07 22:07:35 -04:00
parent 216db1c23a
commit 9b40067017
93 changed files with 321 additions and 388 deletions
+1 -1
View File
@@ -290,7 +290,7 @@ namespace Game.Entities
public void addHatedBy(HostileReference pHostileReference)
{
m_HostileRefManager.insertFirst(pHostileReference);
m_HostileRefManager.InsertFirst(pHostileReference);
}
public void removeHatedBy(HostileReference pHostileReference) { } //nothing to do yet
+4 -4
View File
@@ -4295,7 +4295,7 @@ namespace Game.Entities
public int GetTotalAuraModifier(AuraType auratype)
{
return GetTotalAuraModifier(auratype, aurEff => { return true; });
return GetTotalAuraModifier(auratype, aurEff => true);
}
public int GetTotalAuraModifier(AuraType auratype, Func<AuraEffect, bool> predicate)
@@ -4324,7 +4324,7 @@ namespace Game.Entities
public float GetTotalAuraMultiplier(AuraType auratype)
{
return GetTotalAuraMultiplier(auratype, aurEff => { return true; });
return GetTotalAuraMultiplier(auratype, aurEff => true);
}
public float GetTotalAuraMultiplier(AuraType auratype, Func<AuraEffect, bool> predicate)
@@ -4356,7 +4356,7 @@ namespace Game.Entities
public int GetMaxPositiveAuraModifier(AuraType auratype)
{
return GetMaxPositiveAuraModifier(auratype, aurEff => { return true; });
return GetMaxPositiveAuraModifier(auratype, aurEff => true);
}
public int GetMaxPositiveAuraModifier(AuraType auratype, Func<AuraEffect, bool> predicate)
@@ -4377,7 +4377,7 @@ namespace Game.Entities
public int GetMaxNegativeAuraModifier(AuraType auratype)
{
return GetMaxNegativeAuraModifier(auratype, aurEff => { return true; });
return GetMaxNegativeAuraModifier(auratype, aurEff => true);
}
public int GetMaxNegativeAuraModifier(AuraType auratype, Func<AuraEffect, bool> predicate)
+2 -2
View File
@@ -150,7 +150,7 @@ namespace Game.Entities
// Check UNIT_STATE_MELEE_ATTACKING or UNIT_STATE_CHASE (without UNIT_STATE_FOLLOW in this case) so pets can reach far away
// targets without stopping half way there and running off.
// These flags are reset after target dies or another command is given.
if (m_HostileRefManager.isEmpty())
if (m_HostileRefManager.IsEmpty())
{
// m_CombatTimer set at aura start and it will be freeze until aura removing
if (m_CombatTimer <= diff)
@@ -1931,7 +1931,7 @@ namespace Game.Entities
public void addFollower(FollowerReference pRef)
{
m_FollowingRefManager.insertFirst(pRef);
m_FollowingRefManager.InsertFirst(pRef);
}
public void removeFollower(FollowerReference pRef) { } //nothing to do yet