更新
This commit is contained in:
@@ -64,4 +64,28 @@ namespace Cielonos.MainGame.Characters
|
||||
return dispelledBuffs;
|
||||
}*/
|
||||
}
|
||||
|
||||
public partial class BuffSubmodule
|
||||
{
|
||||
public void ApplyAttributeChange(string attributeName, ref float numericChange, ref float percentageAccumulationChange, ref float percentageMultiplicationChange)
|
||||
{
|
||||
foreach (CharacterBuffBase buff in buffList.Where(buff => buff.attributeSubmodule != null))
|
||||
{
|
||||
if (buff.attributeSubmodule.numericChange.TryGetValue(attributeName, out float nChange))
|
||||
{
|
||||
numericChange += nChange;
|
||||
}
|
||||
|
||||
if (buff.attributeSubmodule.percentageChangeOfAccumulation.TryGetValue(attributeName, out float paChange))
|
||||
{
|
||||
percentageAccumulationChange += paChange;
|
||||
}
|
||||
|
||||
if (buff.attributeSubmodule.percentageChangeOfMultiplication.TryGetValue(attributeName, out float pmChange))
|
||||
{
|
||||
percentageMultiplicationChange *= pmChange;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user