Core/Refactor: Part 2
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user