卡牌更新
This commit is contained in:
@@ -17,25 +17,6 @@ namespace Continentis.MainGame.Character
|
||||
|
||||
public partial class EquipmentSubmodule
|
||||
{
|
||||
public void GetCoreAttributeChange(string attributeName, out float numericChanges,
|
||||
out float percentageChangesOfAccumulation, out float percentChangesOfMultiplication)
|
||||
{
|
||||
numericChanges = currentEquipments
|
||||
.SelectMany(eq => eq.coreAttributeSubmodule.numericChange)
|
||||
.Where(change => change.Key == attributeName)
|
||||
.Sum(change => change.Value);
|
||||
|
||||
percentageChangesOfAccumulation = currentEquipments
|
||||
.SelectMany(eq => eq.coreAttributeSubmodule.percentageChangeOfAccumulation)
|
||||
.Where(change => change.Key == attributeName)
|
||||
.Sum(change => change.Value);
|
||||
|
||||
percentChangesOfMultiplication = currentEquipments
|
||||
.SelectMany(ew => ew.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 numericChanges,
|
||||
out float percentageChangesOfAccumulation, out float percentChangesOfMultiplication)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user