Skip to content

Commit 7cee9f8

Browse files
committed
initial zombie kit skeleton
1 parent 6f58dff commit 7cee9f8

File tree

9 files changed

+106
-3
lines changed

9 files changed

+106
-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 BileBlasterAbility(player: Player) : BrawlAbility("bile_blaster", player) {
7+
override fun activate() {
8+
super.activate()
9+
player.sendDebugMessage("Bile Blaster 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 DeathsGraspAbility(player: Player) : BrawlAbility("deaths_grasp", player) {
7+
override fun activate() {
8+
super.activate()
9+
player.sendDebugMessage("Death's Grasp 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
@@ -76,6 +76,8 @@ open class BrawlKit(val id: String, val player: Player) : KoinComponent {
7676
"whirlpool_axe" -> WhirlpoolAxeAbility(player)
7777
"water_splash" -> WaterSplashAbility(player)
7878
"target_laser" -> TargetLaserAbility(player)
79+
"bile_blaster" -> BileBlasterAbility(player)
80+
"deaths_grasp" -> DeathsGraspAbility(player)
7981
else -> {
8082
logger.severe(
8183
"No ability found with id ${it.id} reference on kit ${kitData.id}"
@@ -105,6 +107,7 @@ open class BrawlKit(val id: String, val player: Player) : KoinComponent {
105107
"spider_leap" -> SpiderLeapPassive(player)
106108
"nether_pig" -> NetherPigPassive(player)
107109
"thorns" -> ThornsPassive(player)
110+
"corrupted_arrow" -> CorruptedArrowPassive(player)
108111
else -> {
109112
logger.severe(
110113
"No passive found with id ${it.id} reference on kit ${kitData.id}"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package dev.betrix.superSmashMobsBrawl.passives
2+
3+
import dev.betrix.superSmashMobsBrawl.extensions.sendDebugMessage
4+
import org.bukkit.entity.Player
5+
6+
class CorruptedArrowPassive(player: Player) : BrawlPassive("corrupted_arrow", player) {
7+
override fun setup() {
8+
super.setup()
9+
player.sendDebugMessage("Corrupted Arrow passive pending implementation")
10+
}
11+
12+
override fun teardown() {
13+
player.sendDebugMessage("Corrupted Arrow passive teardown pending implementation")
14+
super.teardown()
15+
}
16+
}
17+

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,4 +275,20 @@ abilities:
275275
metadata:
276276
explosionRadius: 4.0
277277
launchVerticalBoost: 0.8
278-
damage: 4.0
278+
damage: 4.0
279+
280+
- id: bile_blaster
281+
cooldown: 8.0
282+
type: projectile
283+
itemSlot: 0
284+
usage: right_click
285+
hotbarItem: iron_axe
286+
displayItem: slime_ball
287+
288+
- id: deaths_grasp
289+
cooldown: 10.0
290+
type: recovery
291+
itemSlot: 1
292+
usage: left_click
293+
hotbarItem: bow
294+
displayItem: bow

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

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

1818
- id: pig
1919

20-
- id: guardian
20+
- id: guardian
21+
22+
- id: zombie

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,29 @@ kits:
6868
leggings: iron_leggings
6969
boots: iron_boots
7070

71+
# Zombie
72+
- id: zombie
73+
meleeDamage: 6.0
74+
armor: 5.0
75+
knockbackMultiplier: 1.25
76+
disguiseId: "zombie"
77+
selectionSound: "entity.zombie.ambient"
78+
displayItem: "rotten_flesh"
79+
passives:
80+
- id: regeneration
81+
overrides:
82+
metadata:
83+
healAmount: 0.25
84+
- id: corrupted_arrow
85+
abilities:
86+
- id: bile_blaster
87+
- id: deaths_grasp
88+
armorItems:
89+
helmet: null
90+
chestplate: chainmail_chestplate
91+
leggings: chainmail_leggings
92+
boots: chainmail_boots
93+
7194
# Cow
7295
- id: cow
7396
meleeDamage: 6.0

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ kits:
88
skeleton:
99
name: "Skeleton"
1010
description: "He got bones"
11+
zombie:
12+
name: "Zombie"
13+
description: "Versatile brawler with corrosive bile and relentless grapples"
1114
cow:
1215
name: "Cow"
1316
pig:
@@ -43,6 +46,12 @@ abilities:
4346
roped_arrow:
4447
name: "Roped Arrow"
4548
description: ""
49+
bile_blaster:
50+
name: "Bile Blaster"
51+
description: "Launch a caustic bile shot that primes enemies for follow-up strikes"
52+
deaths_grasp:
53+
name: "Death's Grasp"
54+
description: "Lunge forward with a tethering grip to yank yourself toward safety"
4655
blink:
4756
name: "Blink"
4857
description: ""
@@ -170,6 +179,9 @@ messages:
170179
name: "Hunger"
171180
description: "Restore hunger by striking opponents"
172181
attackToRestore: "<warning>Attack other players to restore hunger!</warning>"
182+
corrupted_arrow:
183+
name: "Corrupted Arrow"
184+
description: "Empower bow shots after using Death's Grasp to deal brutal damage"
173185
wall_climb:
174186
name: "Wall Climb"
175187
description: "Hold sneak on a wall to climb and regain a midair reset"

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,10 @@ passives:
8080
metadata:
8181
lowHealthThreshold: 6.0
8282
projectileReduction: 0.2
83-
knockbackReduction: 0.15
83+
knockbackReduction: 0.15
84+
85+
- id: corrupted_arrow
86+
displayItem: arrow
87+
userFacing: true
88+
metadata:
89+
double_damage_condition: deaths_grasp_used

0 commit comments

Comments
 (0)