Skip to content

Commit 9474a41

Browse files
committed
initial pig kit skeleton
1 parent c82669a commit 9474a41

File tree

9 files changed

+112
-3
lines changed

9 files changed

+112
-3
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package dev.betrix.superSmashMobsBrawl.abilities
2+
3+
import dev.betrix.superSmashMobsBrawl.extensions.sendDebugMessage
4+
import org.bukkit.entity.Player
5+
6+
class BabyBaconBombAbility(player: Player) : BrawlAbility("baby_bacon_bomb", player) {
7+
override fun activate() {
8+
super.activate()
9+
player.sendDebugMessage("Baby Bacon Bomb ability pending implementation.")
10+
}
11+
}
12+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package dev.betrix.superSmashMobsBrawl.abilities
2+
3+
import dev.betrix.superSmashMobsBrawl.extensions.sendDebugMessage
4+
import org.bukkit.entity.Player
5+
6+
class BouncyBaconAbility(player: Player) : BrawlAbility("bouncy_bacon", player) {
7+
override fun activate() {
8+
super.activate()
9+
player.sendDebugMessage("Bouncy Bacon ability pending implementation.")
10+
}
11+
}
12+

plugin/src/main/kotlin/dev/betrix/superSmashMobsBrawl/kits/BrawlKit.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ open class BrawlKit(val id: String, val player: Player) : KoinComponent {
7171
"ink_shotgun" -> InkShotgunAbility(player)
7272
"super_squid" -> SuperSquidAbility(player)
7373
"fish_flurry" -> FishFlurryAbility(player)
74+
"bouncy_bacon" -> BouncyBaconAbility(player)
75+
"baby_bacon_bomb" -> BabyBaconBombAbility(player)
7476
else -> {
7577
logger.severe(
7678
"No ability found with id ${it.id} reference on kit ${kitData.id}"
@@ -98,6 +100,7 @@ open class BrawlKit(val id: String, val player: Player) : KoinComponent {
98100
"flap" -> FlapPassive(player)
99101
"wall_climb" -> WallClimbPassive(player)
100102
"spider_leap" -> SpiderLeapPassive(player)
103+
"nether_pig" -> NetherPigPassive(player)
101104
else -> {
102105
logger.severe(
103106
"No passive found with id ${it.id} reference on kit ${kitData.id}"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package dev.betrix.superSmashMobsBrawl.passives
2+
3+
import dev.betrix.superSmashMobsBrawl.extensions.sendDebugMessage
4+
import org.bukkit.entity.Player
5+
6+
class NetherPigPassive(player: Player) : BrawlPassive("nether_pig", player) {
7+
private val lowHealthThreshold: Double = metadata.double("lowHealthThreshold") ?: 4.0
8+
9+
override fun setup() {
10+
super.setup()
11+
player.sendDebugMessage("Nether Pig passive pending implementation. Threshold: $lowHealthThreshold hearts.")
12+
}
13+
14+
override fun teardown() {
15+
player.sendDebugMessage("Nether Pig passive teardown pending implementation.")
16+
super.teardown()
17+
}
18+
}
19+

plugin/src/main/resources/data/abilities.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,28 @@ abilities:
224224
radius: 4.0
225225
durationTicks: 40
226226
damagePerTick: 1.0
227-
tickIntervalTicks: 5
227+
tickIntervalTicks: 5
228+
229+
- id: bouncy_bacon
230+
cooldown: 5.0
231+
itemSlot: 0
232+
type: projectile
233+
usage: right_click
234+
hotbarItem: iron_axe
235+
displayItem: porkchop
236+
metadata:
237+
healAmount: 2.0
238+
projectileSpeed: 1.2
239+
projectileKnockback: 0.9
240+
241+
- id: baby_bacon_bomb
242+
cooldown: 5.0
243+
itemSlot: 1
244+
type: aoe
245+
usage: right_click
246+
hotbarItem: iron_shovel
247+
displayItem: saddle
248+
metadata:
249+
explosionRadius: 4.0
250+
launchVerticalBoost: 0.8
251+
damage: 4.0

plugin/src/main/resources/data/disguises.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ disguises:
1313

1414
- id: witch
1515

16-
- id: squid
16+
- id: squid
17+
18+
- id: pig

plugin/src/main/resources/data/kits.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,25 @@ kits:
9393
leggings: iron_leggings
9494
boots: iron_boots
9595

96+
# Pig
97+
- id: pig
98+
meleeDamage: 5.0
99+
armor: 5.0
100+
knockbackMultiplier: 1.5
101+
disguiseId: "pig"
102+
selectionSound: "entity.pig.ambient"
103+
displayItem: "porkchop"
104+
passives:
105+
- id: nether_pig
106+
abilities:
107+
- id: bouncy_bacon
108+
- id: baby_bacon_bomb
109+
armorItems:
110+
helmet: null
111+
chestplate: null
112+
leggings: null
113+
boots: null
114+
96115
# Enderman
97116
- id: enderman
98117
meleeDamage: 7.0

plugin/src/main/resources/data/lang/en.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ kits:
1010
description: "He got bones"
1111
cow:
1212
name: "Cow"
13+
pig:
14+
name: "Pig"
15+
description: "Spam energy bacon to harass foes, but mind your weak recovery"
1316
chicken:
1417
name: "Chicken"
1518
description: "High mobility flier with eggs and a peck of explosives"
@@ -49,6 +52,12 @@ abilities:
4952
milk_spiral:
5053
name: "Milk Spiral"
5154
description: ""
55+
bouncy_bacon:
56+
name: "Bouncy Bacon"
57+
description: "Hurl sizzling bacon that heals you as it bounces through foes"
58+
baby_bacon_bomb:
59+
name: "Baby Bacon Bomb"
60+
description: "Detonate a baby piglet blast that pops you upward and scorches enemies"
5261
egg_blaster:
5362
name: "Egg Blaster"
5463
description: "Hold to fire rapid eggs that slow foes"
@@ -155,6 +164,9 @@ messages:
155164
spider_leap:
156165
name: "Spider Leap"
157166
description: "Double jump in any direction you face for rapid mobility"
167+
nether_pig:
168+
name: "Nether Pig"
169+
description: "Gain fiery resilience when your health nears collapse"
158170
projectiles:
159171
arrow: "Arrow"
160172
barrage_arrow: "Barrage Arrow"

plugin/src/main/resources/data/passives.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,10 @@ passives:
6666
metadata:
6767
leapStrength: 1.25
6868
horizontalMultiplier: 1.0
69-
verticalMultiplier: 1.0
69+
verticalMultiplier: 1.0
70+
71+
- id: nether_pig
72+
displayItem: nether_wart
73+
userFacing: true
74+
metadata:
75+
lowHealthThreshold: 4.0

0 commit comments

Comments
 (0)