Skip to content

Commit 7e0bc95

Browse files
[autofix.ci] apply automated fixes
1 parent bc07aa2 commit 7e0bc95

File tree

3 files changed

+29
-5
lines changed

3 files changed

+29
-5
lines changed

plugin/src/main/kotlin/dev/betrix/superSmashMobsBrawl/abilities/BoneExplosionAbility.kt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,24 @@ class BoneExplosionAbility(player: Player) : BrawlAbility("bone_explosion", play
1313

1414
private val explosionRadius = metadata.double("explosionRadius") ?: 7.0
1515
private val baseDamage = metadata.double("baseDamage") ?: 6.0
16-
private val explosionKnockbackMultiplier = metadata.double("explosionKnockbackMultiplier") ?: 2.5
16+
private val explosionKnockbackMultiplier =
17+
metadata.double("explosionKnockbackMultiplier") ?: 2.5
1718
private val explosionBoneCount = metadata.int("explosionBoneCount") ?: 48
1819
private val explosionBoneVelocity = metadata.double("explosionBoneVelocity") ?: 0.8
1920

2021
override fun activate() {
2122
player.location
2223
.clone()
2324
.add(0.0, 0.5, 0.5)
24-
.itemEffect(explosionBoneCount, explosionBoneVelocity, Sound.ENTITY_SKELETON_HURT, 2f, 1.2f, Material.BONE, 40)
25+
.itemEffect(
26+
explosionBoneCount,
27+
explosionBoneVelocity,
28+
Sound.ENTITY_SKELETON_HURT,
29+
2f,
30+
1.2f,
31+
Material.BONE,
32+
40,
33+
)
2534

2635
val validEntities =
2736
player.location.getNearbyPlayers(explosionRadius).filter { it != player }

plugin/src/main/kotlin/dev/betrix/superSmashMobsBrawl/abilities/MilkSpiralAbility.kt

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,25 @@ class MilkSpiralAbility(player: Player) : BrawlAbility("milk_spiral", player) {
6868
val firstParticle =
6969
oldLocation
7070
.clone()
71-
.add(getCirclePoint(circleFirst, circleSecond, theta, particleSpiralRadius))
71+
.add(
72+
getCirclePoint(
73+
circleFirst,
74+
circleSecond,
75+
theta,
76+
particleSpiralRadius,
77+
)
78+
)
7279
val secondParticle =
7380
oldLocation
7481
.clone()
75-
.add(getCirclePoint(circleFirst, circleSecond, theta + Math.PI, particleSpiralRadius))
82+
.add(
83+
getCirclePoint(
84+
circleFirst,
85+
circleSecond,
86+
theta + Math.PI,
87+
particleSpiralRadius,
88+
)
89+
)
7690

7791
if (first) {
7892
firstParticle.world.playSound(

plugin/src/main/kotlin/dev/betrix/superSmashMobsBrawl/abilities/SulphurBombAbility.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ class SulphurBombAbility(player: Player) : BrawlAbility("sulphur_bomb", player)
2121

2222
private val projectileKnockbackModifier = metadata.double("projectileKnockbackModifier") ?: 2.5
2323
private val projectileDamage = metadata.double("projectileDamage") ?: 6.5
24-
private val projectileVelocityMultiplier = metadata.double("projectileVelocityMultiplier") ?: 1.55
24+
private val projectileVelocityMultiplier =
25+
metadata.double("projectileVelocityMultiplier") ?: 1.55
2526
private val projectileSize = metadata.double("projectileSize") ?: 0.65
2627
private val projectileTrailMaxParticles = metadata.int("projectileTrailMaxParticles") ?: 8
2728

0 commit comments

Comments
 (0)