From 08ae897c6f94a41aab5660c5398160b7d56d5b43 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 9 Mar 2025 22:36:55 +0700 Subject: [PATCH] Make Medical Pill provide only Regeneration III for 8 seconds Because it completely overshadows Enchanted Golden Apples with current state of things --- src/data/kotlin/ru/dbotthepony/mc/otm/datagen/lang/English.kt | 2 +- src/data/kotlin/ru/dbotthepony/mc/otm/datagen/lang/Russian.kt | 2 +- .../ru/dbotthepony/mc/otm/item/consumables/HealPillItem.kt | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/data/kotlin/ru/dbotthepony/mc/otm/datagen/lang/English.kt b/src/data/kotlin/ru/dbotthepony/mc/otm/datagen/lang/English.kt index 9dc45033e..67ead1708 100644 --- a/src/data/kotlin/ru/dbotthepony/mc/otm/datagen/lang/English.kt +++ b/src/data/kotlin/ru/dbotthepony/mc/otm/datagen/lang/English.kt @@ -381,7 +381,7 @@ private fun misc(provider: MatteryLanguageProvider) { misc("pill.oblivion", "Items and Experience spent on research is fully refunded.") misc("pill.message_oblivion", "All android features are removed and all research refunded.") - misc("pill.heal", "Instantly restores 4 hearts upon ingestion, provides 2 min Absorption V and 8 seconds Regeneration III.") + misc("pill.heal", "Provides 8 seconds of Regeneration III.") misc("pill.heal_android", "Does nothing to androids.") misc("pill.not_normal", "Instantly kills fleshy creatures upon ingestion") diff --git a/src/data/kotlin/ru/dbotthepony/mc/otm/datagen/lang/Russian.kt b/src/data/kotlin/ru/dbotthepony/mc/otm/datagen/lang/Russian.kt index 9a8cfdc09..cc3b3a7d4 100644 --- a/src/data/kotlin/ru/dbotthepony/mc/otm/datagen/lang/Russian.kt +++ b/src/data/kotlin/ru/dbotthepony/mc/otm/datagen/lang/Russian.kt @@ -390,7 +390,7 @@ private fun misc(provider: MatteryLanguageProvider) { misc("pill.oblivion", "Предметы и Очки опыта, потраченные на исследования полностью возвращаются.") misc("pill.message_oblivion", "Все возможности андроида были удалены, а потраченные на исследования предметы и опыт возвращены.") - misc("pill.heal", "Мгновенно восполняет 4 сердца при употреблении, а так же даёт на 2 минуты поглощение V и на 8 секунд регенерацию III.") + misc("pill.heal", "Даёт регенерацию III на 8 секунд.") misc("pill.heal_android", "Не действует на андроидов.") misc("pill.not_normal", "Мгновенно убивает существ из плоти") diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/item/consumables/HealPillItem.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/item/consumables/HealPillItem.kt index 6a2212f23..6af3533ab 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/item/consumables/HealPillItem.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/item/consumables/HealPillItem.kt @@ -38,9 +38,7 @@ class HealPillItem : MatteryItem(Properties().stacksTo(64).rarity(Rarity.UNCOMMO return super.finishUsingItem(stack, level, ent) stack.shrink(1) - ent.addEffect(MobEffectInstance(MobEffects.ABSORPTION, 20 * 60 * 2, 4)) ent.addEffect(MobEffectInstance(MobEffects.REGENERATION, 20 * 8, 2)) - ent.heal(8f) return stack }