@@ -804,9 +804,14 @@ function calcs.offence(env, actor, activeSkill)
804804 skillModList :NewMod (" AreaOfEffect" , " INC" , mod .value , mod .source , mod .flags , mod .keywordFlags , unpack (mod ))
805805 end
806806 end
807- if skillModList :Flag (nil , " SequentialProjectiles" ) and not skillModList :Flag (nil , " OneShotProj" ) and not skillModList :Flag (nil ," NoAdditionalProjectiles" ) and not skillModList :Flag (nil ," SingleProjectile" ) and not skillModList :Flag (nil , " TriggeredBySnipe" ) then
807+ local splitAdditionalProjectiles = skillModList :Flag (skillCfg , " AdditionalProjectilesAddSplitsInstead" )
808+ -- The base gem count is stored above the implicit first projectile.
809+ local baseProjectileCount = splitAdditionalProjectiles and (1 + skillModList :Sum (" BASE" , skillCfg , " BaseProjectileCount" )) or 1
810+ if skillModList :Flag (nil , " SequentialProjectiles" ) and not skillModList :Flag (nil , " OneShotProj" )
811+ and (splitAdditionalProjectiles or not skillModList :Flag (nil , " NoAdditionalProjectiles" ))
812+ and not skillModList :Flag (nil , " SingleProjectile" ) and not skillModList :Flag (nil , " TriggeredBySnipe" ) then
808813 -- Applies DPS multiplier based on projectile count
809- skillData .dpsMultiplier = skillModList :Sum (" BASE" , skillCfg , " ProjectileCount" )
814+ skillData .dpsMultiplier = splitAdditionalProjectiles and baseProjectileCount or skillModList :Sum (" BASE" , skillCfg , " ProjectileCount" )
810815 end
811816
812817 local function repeatSkillTypesCheck (activeSkillTypes )
@@ -1089,8 +1094,10 @@ function calcs.offence(env, actor, activeSkill)
10891094 if skillModList :Flag (nil , " FarShot" ) then
10901095 skillModList :NewMod (" Damage" , " MORE" , 100 , " Far Shot" , bor (ModFlag .Attack , ModFlag .Projectile ), { type = " DistanceRamp" , ramp = {{10 , - 0.2 }, {25 , 0 }, {70 , 0.6 }} })
10911096 end
1092- if skillModList :Flag (skillCfg , " NoAdditionalProjectiles " ) or skillModList : Flag ( skillCfg , " SingleProjectile" ) then
1097+ if skillModList :Flag (skillCfg , " SingleProjectile" ) then
10931098 output .ProjectileCount = 1
1099+ elseif skillModList :Flag (skillCfg , " NoAdditionalProjectiles" ) then
1100+ output .ProjectileCount = baseProjectileCount
10941101 else
10951102 local projMin = skillModList :Sum (" BASE" , skillCfg , " ProjectileCountMinimum" )
10961103 local projMax = skillModList :Override (skillCfg , " ProjectileCountMaximum" ) or m_huge
@@ -1113,8 +1120,8 @@ function calcs.offence(env, actor, activeSkill)
11131120 end
11141121 else
11151122 output .SplitCount = skillModList :Sum (" BASE" , skillCfg , " SplitCount" ) + enemyDB :Sum (" BASE" , skillCfg , " SelfSplitCount" )
1116- if skillModList : Flag ( skillCfg , " AdditionalProjectilesAddSplitsInstead " ) then
1117- local addedSplits = skillModList :Flag (skillCfg , " SingleProjectile" ) and 0 or m_floor ((skillModList :Sum (" BASE" , skillCfg , " ProjectileCount" ) - 1 ) * skillModList :More (skillCfg , " ProjectileCount" ))
1123+ if splitAdditionalProjectiles then
1124+ local addedSplits = skillModList :Flag (skillCfg , " SingleProjectile" ) and 0 or m_floor ((skillModList :Sum (" BASE" , skillCfg , " ProjectileCount" ) - baseProjectileCount ) * skillModList :More (skillCfg , " ProjectileCount" ))
11181125 output .SplitCount = output .SplitCount + addedSplits
11191126 end
11201127 if skillModList :Flag (skillCfg , " AdditionalChainsAddSplitsInstead" ) then
0 commit comments