Vette-BaseHealth icon

BaseHealth

Configurable base health and tick-based regeneration. Food no longer increases max HP but still provides healing, stamina, and other buffs. Customize base health (25-1000), regen interval, and regen percent per tick. Client-side only.

By Vette
Last updated 18 hours ago
Total downloads 13
Total rating 2 
Categories Mods Server-side Client-side PvP
Dependency string Vette-BaseHealth-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2333 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2333

README

❤️ BaseHealth - Valheim Mod

Status Versão Tipo

🇬🇧 English | 🇧🇷 Português


🇬🇧 English

📖 Overview

BaseHealth is a mod for Valheim that completely overhauls the player's health system. It removes the dependency on food for maximum health, while still preserving food-based health recovery (healing/regeneration) and all other buffs.

⚠️ Current Status: This mod is in active development. It is currently client-side only. Future updates will bring food integration/compatibility and full server synchronization.


🎯 How It Works

❤️ Health (BaseHealth)

  • The player's maximum health is fixed to the BaseHealth value defined in the configuration file.
  • Food bonuses that increase maximum health are completely ignored — your max HP will always be the value set in the config, regardless of what you eat.
  • Configuration range: 25 to 1000 (default: 100, but set to 200 in the example below).

🔄 Regeneration (Regen)

  • The mod adds its own steady, tick-based regeneration system that works independently of food.
  • Interval: RegenIntervalSeconds defines the time (in seconds) between each regeneration tick.
  • Amount per tick: RegenPercentPerTick defines the percentage of your base health that is restored at each tick.
  • Important: This mod's regeneration does not cancel or block healing/regeneration effects that come from food. Both systems work together.
  • Math Example (using your current settings):
    • Base Health = 200
    • Percent per tick = 0.02 (2%)
    • Heal per tick = 200 * 0.02 = 4 HP
    • Interval = 1 second
    • Result: You regenerate 4 HP per second steadily from the mod, plus any healing you might get from food effects.

🍖 Food (Still Very Important!)

Even though food bonuses that increase maximum health are completely ignored, food remains essential because:

  • Health Recovery: Any healing or health regeneration provided by food effects (e.g., instant healing when eaten, or passive HP regen over time) still works normally.
  • Stamina: Maximum stamina and stamina regeneration from food are fully preserved.
  • Eitr: If you have the Mistlands update, Eitr bonuses from food work as usual.
  • Secondary Buffs: Resistances (frost, poison, etc.), speed boosts, and other special effects from food are all intact.

In short: your maximum health is now fixed and independent of food, but food still keeps you alive through healing, stamina, and utility buffs!


🎥 In-Game Demonstration

Here is a GIF showing the fixed health bar, the steady mod-based regeneration, and food-based healing working side by side:

GIF demonstrating fixed health, mod regeneration, and food healing


🗺️ Roadmap (Upcoming Features)

  • Food Integration: Add more nuanced interactions between food and the fixed health system (e.g., temporary shields, over-heal, or specific food-based HP bonuses that don't break the cap).
  • Server Synchronization: Ensure that the mod works seamlessly on dedicated servers so that all players (and the server) see the same health values, preventing desync issues.

👤 Credits

  • Author: Vette

⚙️ Configuration Example

Here is an example of the BaseHealth.cfg file:

[General]

BaseHealth
Defines the characters base health. Value between 25 and 1000.
Setting type: Int32
Default value: 100
Acceptable value range: From 25 to 1000
100

Regeneracao

RegenIntervalSeconds
Interval in seconds between each health regeneration tick. Value between 1 and 30.
Setting type: Single
Default value: 1
Acceptable value range: From 1 to 30
1

RegenPercentPerTick
Percentage of base health healed per regeneration tick. 0.02 equals 2 percent. Value between 0.001 and 1.0.
Setting type: Single
Default value: 0.02
Acceptable value range: From 0,001 to 1
0.02

📥 Installation

  1. Ensure you have BepInEx installed for Valheim.
  2. Download the BaseHealth.dll file.
  3. Place it inside the BepInEx/plugins folder.
  4. Launch the game. The config file will be generated automatically after the first run.

🇧🇷 Português

📖 Visão Geral

BaseHealth é um mod para Valheim que reformula completamente o sistema de vida do jogador. Ele remove a dependência da comida para a vida máxima, mas mantém a recuperação de vida (cura/regeneração) fornecida pelos alimentos e todos os outros buffs.

⚠️ Status Atual: Este mod está em desenvolvimento ativo. Atualmente é apenas client-side. Futuras atualizações trarão integração e compatibilidade com as comidas, além de sincronização total com servidores.


🎯 Como Funciona

❤️ Vida (BaseHealth)

  • A vida máxima do jogador é fixada no valor BaseHealth definido no arquivo de configuração.
  • Os bônus de vida máxima vindos das comidas são completamente ignorados — sua vida máxima sempre será o valor definido no config, independente do que você comer.
  • Faixa de configuração: 25 a 1000 (padrão: 100, mas definido como 200 no exemplo abaixo).

🔄 Regeneração (Regen)

  • O mod adiciona seu próprio sistema de regeneração constante baseado em "ticks" (pulsos), que funciona independentemente da comida.
  • Intervalo: RegenIntervalSeconds define o tempo (em segundos) entre cada tick de regeneração.
  • Quantidade por tick: RegenPercentPerTick define a porcentagem da vida base que é recuperada a cada tick.
  • Importante: A regeneração deste mod não cancela nem bloqueia os efeitos de cura/regeneração que vêm da comida. Ambos os sistemas funcionam juntos.
  • Exemplo prático (usando suas configurações atuais):
    • Vida Base = 200
    • Percentual por tick = 0.02 (2%)
    • Cura por tick = 200 * 0.02 = 4 de vida
    • Intervalo = 1 segundo
    • Resultado: Você regenera 4 de vida por segundo de forma constante pelo mod, mais qualquer cura que você possa ganhar dos efeitos da comida.

🍖 Comidas (Ainda são muito importantes!)

Embora os bônus de comida que aumentam a vida máxima sejam completamente ignorados, a comida continua sendo essencial porque:

  • Recuperação de Vida: Qualquer cura ou regeneração de vida fornecida pelos efeitos da comida (ex: cura instantânea ao comer, ou regeneração passiva ao longo do tempo) ainda funciona normalmente.
  • Stamina: A stamina máxima e a regeneração de stamina provenientes da comida são totalmente preservadas.
  • Eitr: Se você tiver a atualização Mistlands, os bônus de Eitr das comidas funcionam normalmente.
  • Buffos Secundários: Resistências (gelo, veneno, etc.), aumentos de velocidade e outros efeitos especiais das comidas permanecem intactos.

Resumindo: sua vida máxima agora é fixa e independente da comida, mas a comida ainda mantém você vivo através da cura, stamina e buffs utilitários!


🎥 Demonstração no Jogo

Abaixo está um GIF mostrando a barra de vida fixa, a regeneração constante do mod e a cura baseada em comida funcionando lado a lado:

GIF demonstrando a vida fixa, regeneração do mod e cura por comida


🗺️ Próximos Passos (Roadmap)

  • Integração com Comidas: Adicionar interações mais refinadas entre as comidas e o sistema de vida fixa (ex: escudos temporários, sobrecura, ou bônus específicos de HP baseados em comida que não quebrem o limite).
  • Sincronização com Servidores: Garantir que o mod funcione perfeitamente em servidores dedicados para que todos os jogadores (e o servidor) vejam os mesmos valores de vida, evitando problemas de dessincronização.

👤 Créditos

  • Autor: Vette

⚙️ Exemplo de Configuração

Abaixo está um exemplo do arquivo BaseHealth.cfg:

[General]

BaseHealth
Define a vida base do personagem. Valor entre 25 e 1000.
Setting type: Int32
Default value: 100
Acceptable value range: From 25 to 1000
100

Regeneracao

RegenIntervalSeconds
Intervalo em segundos entre cada tick de regeneracao de vida. Valor entre 1 e 30.
Setting type: Single
Default value: 1
Acceptable value range: From 1 to 30
1

RegenPercentPerTick
Percentual da vida base curado a cada tick de regeneracao. 0.02 equivale a 2 por cento. Valor entre 0.001 e 1.0.
Setting type: Single
Default value: 0.02
Acceptable value range: From 0,001 to 1
0.02

📥 Instalação

  1. Certifique-se de ter o BepInEx instalado para Valheim.
  2. Baixe o arquivo BaseHealth.dll.
  3. Coloque-o dentro da pasta BepInEx/plugins.
  4. Inicie o jogo. O arquivo de configuração será gerado automaticamente após a primeira execução.