Skip to content

Commit

Permalink
Nerfed bleeding and changed how it works, slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticKoko committed Jul 25, 2024
1 parent a024480 commit 9e5efab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/main/kotlin/dev/hybridlabs/aquatic/effect/Bleeding.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ class Bleeding : StatusEffect(StatusEffectCategory.HARMFUL, 0xee4049) {
}

override fun applyUpdateEffect(entity: LivingEntity, amplifier: Int) {
val targetHealth = entity.maxHealth / 2.0f
if (entity.health > targetHealth) {
entity.health = maxOf(entity.health - 1.0f, targetHealth)
if (entity.health > entity.maxHealth / 1.3) {
entity.health = maxOf(entity.maxHealth / 1.3F)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ object HybridAquaticPotions {

val BLEEDING_POTION = registerPotionWithRecipe(
"bleeding",
Potion(StatusEffectInstance(HybridAquaticStatusEffects.BLEEDING, 3600, 0)),
Potion(StatusEffectInstance(HybridAquaticStatusEffects.BLEEDING, 200, 0)),
Potions.AWKWARD,
HybridAquaticItems.SHARK_TOOTH
)
Expand Down

0 comments on commit 9e5efab

Please sign in to comment.