卡牌更新
This commit is contained in:
@@ -106,25 +106,6 @@ namespace Continentis.MainGame.Character
|
||||
|
||||
public partial class CombatBuffSubmodule
|
||||
{
|
||||
public void GetCoreAttributeChange(string attributeName, out float numericChange,
|
||||
out float percentageChangeOfAccumulation, out float percentChangeOfMultiplication)
|
||||
{
|
||||
numericChange = buffList.Where(buff => buff.coreAttributeSubmodule != null)
|
||||
.SelectMany(buff => buff.coreAttributeSubmodule.numericChange)
|
||||
.Where(change => change.Key == attributeName)
|
||||
.Sum(change => change.Value);
|
||||
|
||||
percentageChangeOfAccumulation = buffList.Where(buff => buff.coreAttributeSubmodule != null)
|
||||
.SelectMany(buff => buff.coreAttributeSubmodule.percentageChangeOfAccumulation)
|
||||
.Where(change => change.Key == attributeName)
|
||||
.Sum(change => change.Value);
|
||||
|
||||
percentChangeOfMultiplication = buffList.Where(buff => buff.coreAttributeSubmodule != null)
|
||||
.SelectMany(buff => buff.coreAttributeSubmodule.percentageChangeOfMultiplication)
|
||||
.Where(change => change.Key == attributeName)
|
||||
.Aggregate<KeyValuePair<string, float>, float>(1, (current, change) => current * change.Value);
|
||||
}
|
||||
|
||||
public void GetGeneralAttributeChange(string attributeName, out float numericChange,
|
||||
out float percentageChangeOfAccumulation, out float percentChangeOfMultiplication)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user