From 579445fbbe46dfe56c1eccf8e6e5848b08890b65 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Fri, 14 Mar 2025 17:44:26 +0700 Subject: [PATCH] Nerf food for androids further --- .../dbotthepony/mc/otm/config/PlayerConfig.kt | 47 ++++++++++--------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/config/PlayerConfig.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/config/PlayerConfig.kt index b8be2c4c8..c9f907244 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/config/PlayerConfig.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/config/PlayerConfig.kt @@ -16,11 +16,11 @@ object PlayerConfig : AbstractConfig("player") { val REGENERATE_ENERGY_EFFICIENCY_FOOD: Double by builder .comment("How much % of food points to convert to energy") - .defineInRange("REGENERATE_ENERGY_EFFICIENCY_FOOD", 0.75, 0.0) + .defineInRange("REGENERATE_ENERGY_EFFICIENCY_FOOD", 0.4, 0.0) val REGENERATE_ENERGY_EFFICIENCY_SATURATION: Double by builder .comment("How much % of food saturation points to convert to energy") - .defineInRange("REGENERATE_ENERGY_EFFICIENCY_SATURATION", 0.4, 0.0) + .defineInRange("REGENERATE_ENERGY_EFFICIENCY_SATURATION", 0.2, 0.0) val REGENERATE_ENERGY_IN_PEACEFUL: Boolean by builder .comment("Regenerate energy while in peaceful") @@ -39,6 +39,28 @@ object PlayerConfig : AbstractConfig("player") { .comment("for android players, since 'hunger' (for compatibility) is managed by mod in such case") .defineInRange("TIME_BETWEEN_NATURAL_REGENERATION", 120, 0, Int.MAX_VALUE) + val ANDROID_ENERGY_PER_HUNGER_POINT by builder.defineDecimal("energyPerHunger", Decimal(2000), Decimal.ZERO) + val ANDROID_MAX_ENERGY by builder + .comment("Internal battery of every android has this much storage") + .comment("Keep in mind that already existing players won't get their value changed since it is", "stored inside their savedata") + .defineDecimal("capacity", Decimal(80_000), Decimal.ZERO) + + val NIGHT_VISION_POWER_DRAW by builder.defineDecimal("nightVisionPowerDraw", Decimal(8), Decimal.ZERO) + + val FALL_DAMAGE_REDUCTION_PER_LEVEL_P: Double by builder + .comment("In percent. Level of feature is multiplied by this") + .comment("First, fall damage is reduced by flat resistance, then reduced by percentage resistance (this)") + .defineInRange("FALL_DAMAGE_REDUCTION_PER_LEVEL_P", 0.2, 0.01, 1.0) + + val FALL_DAMAGE_REDUCTION_PER_LEVEL_F: Double by builder + .comment("In flat half of hearts. Level of feature is multiplied by this") + .comment("First, fall damage is reduced by flat resistance (this), then reduced by percentage resistance") + .defineInRange("FALL_DAMAGE_REDUCTION_PER_LEVEL_F", 1.5, 0.0, Float.MAX_VALUE.toDouble()) + + val SWIM_BOOSTERS: Double by builder + .comment("Increase per level") + .defineInRange("SWIM_BOOSTERS", 0.25, 0.0, Float.MAX_VALUE.toDouble()) + init { builder.pop() } @@ -71,27 +93,6 @@ object PlayerConfig : AbstractConfig("player") { } } - val ANDROID_ENERGY_PER_HUNGER_POINT by builder.defineDecimal("energyPerHunger", Decimal(2000), Decimal.ZERO) - val ANDROID_MAX_ENERGY by builder - .comment("Internal battery of every android has this much storage") - .comment("Keep in mind that already existing players won't get their value changed since it is", "stored inside their savedata") - .defineDecimal("capacity", Decimal(80_000), Decimal.ZERO) - val NIGHT_VISION_POWER_DRAW by builder.defineDecimal("nightVisionPowerDraw", Decimal(8), Decimal.ZERO) - - val FALL_DAMAGE_REDUCTION_PER_LEVEL_P: Double by builder - .comment("In percent. Level of feature is multiplied by this") - .comment("First, fall damage is reduced by flat resistance, then reduced by percentage resistance (this)") - .defineInRange("FALL_DAMAGE_REDUCTION_PER_LEVEL_P", 0.2, 0.01, 1.0) - - val FALL_DAMAGE_REDUCTION_PER_LEVEL_F: Double by builder - .comment("In flat half of hearts. Level of feature is multiplied by this") - .comment("First, fall damage is reduced by flat resistance (this), then reduced by percentage resistance") - .defineInRange("FALL_DAMAGE_REDUCTION_PER_LEVEL_F", 1.5, 0.0, Float.MAX_VALUE.toDouble()) - - val SWIM_BOOSTERS: Double by builder - .comment("Increase per level") - .defineInRange("SWIM_BOOSTERS", 0.25, 0.0, Float.MAX_VALUE.toDouble()) - object EnderTeleporter { init { builder.comment("Ender Teleporter ability").push("EnderTeleporter")