Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-n committed Oct 26, 2024
1 parent 836af1f commit 2919133
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Persistence/Initialization/Skills/SkillsInitializerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,23 @@ protected void CreateSkill(
skill.SetGuid(skill.Number);
}

/// <summary>
/// Adds the area skill settings for the specified skill.
/// </summary>
/// <param name="skillNumber">The skill number.</param>
/// <param name="useFrustumFilter">If set to <c>true</c>, the skill should use a frustum filter.</param>
/// <param name="frustumStartWidth">Start width of the frustum.</param>
/// <param name="frustumEndWidth">End width of the frustum.</param>
/// <param name="frustumDistance">The frustum distance.</param>
/// <param name="useDeferredHits">If set to <c>true</c>, the skill should use deferred hits.</param>
/// <param name="delayPerOneDistance">The delay per one distance.</param>
/// <param name="delayBetweenHits">The delay between hits.</param>
/// <param name="minimumHitsPerTarget">The minimum hits per target.</param>
/// <param name="maximumHitsPerTarget">The maximum hits per target.</param>
/// <param name="maximumHitsPerAttack">The maximum hits per attack.</param>
/// <param name="hitChancePerDistanceMultiplier">The hit chance per distance multiplier.</param>
/// <param name="useTargetAreaFilter">If set to <c>true</c>, the skill should use a target area filter.</param>
/// <param name="targetAreaDiameter">The target area diameter.</param>
protected void AddAreaSkillSettings(
SkillNumber skillNumber,
bool useFrustumFilter,
Expand Down Expand Up @@ -137,6 +154,7 @@ protected void AddAreaSkillSettings(
areaSkillSettings.MaximumNumberOfHitsPerAttack = maximumHitsPerAttack;
areaSkillSettings.HitChancePerDistanceMultiplier = hitChancePerDistanceMultiplier;
}

private void ApplyElementalModifier(ElementalType elementalModifier, Skill skill)
{
if ((SkillNumber)skill.Number is SkillNumber.IceArrow or SkillNumber.IceArrowStrengthener)
Expand Down

0 comments on commit 2919133

Please sign in to comment.