Updated update plugin
(cherry picked from commit e56c5c57f02af48d2d8c324282398c06e4ff931d)
This commit is contained in:
@@ -108,18 +108,28 @@ public class FinishElfMasterTreePlugIn : UpdatePlugInBase
|
|||||||
// Update master skills
|
// Update master skills
|
||||||
if (gameConfiguration.Skills.FirstOrDefault(s => s.Number == (short)SkillNumber.DefenseIncreaseStr)?.MasterDefinition is { } defenseIncreaseStr)
|
if (gameConfiguration.Skills.FirstOrDefault(s => s.Number == (short)SkillNumber.DefenseIncreaseStr)?.MasterDefinition is { } defenseIncreaseStr)
|
||||||
{
|
{
|
||||||
|
defenseIncreaseStr.ValueFormula = $"{SkillsInitializer.Formula502} / 100";
|
||||||
defenseIncreaseStr.TargetAttribute = greaterDefenseBonus;
|
defenseIncreaseStr.TargetAttribute = greaterDefenseBonus;
|
||||||
defenseIncreaseStr.Aggregation = AggregateType.Multiplicate;
|
defenseIncreaseStr.Aggregation = AggregateType.Multiplicate;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gameConfiguration.Skills.FirstOrDefault(s => s.Number == (short)SkillNumber.TripleShotStrengthener)?.MasterDefinition is { } tripleShotStrengthener)
|
if (gameConfiguration.Skills.FirstOrDefault(s => s.Number == (short)SkillNumber.TripleShotMastery)?.MasterDefinition is { } tripleShotMastery)
|
||||||
{
|
{
|
||||||
tripleShotStrengthener.TargetAttribute = extraProjectiles;
|
tripleShotMastery.ReplacedSkill = gameConfiguration.Skills.First(s => s.Number == (short)SkillNumber.TripleShotStrengthener);
|
||||||
tripleShotStrengthener.Aggregation = AggregateType.AddRaw;
|
tripleShotMastery.TargetAttribute = extraProjectiles;
|
||||||
|
tripleShotMastery.Aggregation = AggregateType.AddRaw;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (gameConfiguration.Skills.FirstOrDefault(s => s.Number == (short)SkillNumber.SummonedMonsterStr2)?.MasterDefinition is { } summonedMonsterStr2)
|
||||||
|
{
|
||||||
|
summonedMonsterStr2.ValueFormula = SkillsInitializer.Formula6020Value;
|
||||||
|
summonedMonsterStr2.Root = gameConfiguration.MasterSkillRoots.First(s => s.Name == "Middle Root");
|
||||||
|
summonedMonsterStr2.Rank = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gameConfiguration.Skills.FirstOrDefault(s => s.Number == (short)SkillNumber.AttackIncreaseStr)?.MasterDefinition is { } attackIncreaseStr)
|
if (gameConfiguration.Skills.FirstOrDefault(s => s.Number == (short)SkillNumber.AttackIncreaseStr)?.MasterDefinition is { } attackIncreaseStr)
|
||||||
{
|
{
|
||||||
|
attackIncreaseStr.ValueFormula = $"{SkillsInitializer.Formula502} / 100";
|
||||||
attackIncreaseStr.TargetAttribute = greaterDamageBonus;
|
attackIncreaseStr.TargetAttribute = greaterDamageBonus;
|
||||||
attackIncreaseStr.Aggregation = AggregateType.Multiplicate;
|
attackIncreaseStr.Aggregation = AggregateType.Multiplicate;
|
||||||
}
|
}
|
||||||
@@ -127,6 +137,7 @@ public class FinishElfMasterTreePlugIn : UpdatePlugInBase
|
|||||||
if (gameConfiguration.Skills.FirstOrDefault(s => s.Number == (short)SkillNumber.AttackIncreaseMastery)?.MasterDefinition is { } attackIncreaseMastery)
|
if (gameConfiguration.Skills.FirstOrDefault(s => s.Number == (short)SkillNumber.AttackIncreaseMastery)?.MasterDefinition is { } attackIncreaseMastery)
|
||||||
{
|
{
|
||||||
attackIncreaseMastery.ReplacedSkill = gameConfiguration.Skills.First(s => s.Number == (short)SkillNumber.AttackIncreaseStr);
|
attackIncreaseMastery.ReplacedSkill = gameConfiguration.Skills.First(s => s.Number == (short)SkillNumber.AttackIncreaseStr);
|
||||||
|
attackIncreaseMastery.ValueFormula = $"{SkillsInitializer.Formula502} / 100";
|
||||||
attackIncreaseMastery.TargetAttribute = greaterDamageBonus;
|
attackIncreaseMastery.TargetAttribute = greaterDamageBonus;
|
||||||
attackIncreaseMastery.Aggregation = AggregateType.Multiplicate;
|
attackIncreaseMastery.Aggregation = AggregateType.Multiplicate;
|
||||||
attackIncreaseMastery.ExtendsDuration = true;
|
attackIncreaseMastery.ExtendsDuration = true;
|
||||||
@@ -135,6 +146,7 @@ public class FinishElfMasterTreePlugIn : UpdatePlugInBase
|
|||||||
if (gameConfiguration.Skills.FirstOrDefault(s => s.Number == (short)SkillNumber.DefenseIncreaseMastery)?.MasterDefinition is { } defenseIncreaseMastery)
|
if (gameConfiguration.Skills.FirstOrDefault(s => s.Number == (short)SkillNumber.DefenseIncreaseMastery)?.MasterDefinition is { } defenseIncreaseMastery)
|
||||||
{
|
{
|
||||||
defenseIncreaseMastery.ReplacedSkill = gameConfiguration.Skills.First(s => s.Number == (short)SkillNumber.DefenseIncreaseStr);
|
defenseIncreaseMastery.ReplacedSkill = gameConfiguration.Skills.First(s => s.Number == (short)SkillNumber.DefenseIncreaseStr);
|
||||||
|
defenseIncreaseMastery.ValueFormula = $"{SkillsInitializer.Formula502} / 100";
|
||||||
defenseIncreaseMastery.TargetAttribute = greaterDefenseBonus;
|
defenseIncreaseMastery.TargetAttribute = greaterDefenseBonus;
|
||||||
defenseIncreaseMastery.Aggregation = AggregateType.Multiplicate;
|
defenseIncreaseMastery.Aggregation = AggregateType.Multiplicate;
|
||||||
defenseIncreaseMastery.ExtendsDuration = true;
|
defenseIncreaseMastery.ExtendsDuration = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user