Confirm with your password

DamageBasedSkills

Damage-based experience for weapon hits, elemental magic and blocking with per-skill rates and a parry multiplier.

Stars
0
Downloads
17
Version
0.2.2
Updated
Author
LoIYver
Virus scan
✓ Scan successful
Runs on
Client & Server

Description

Damage Based Skills

Experience for weapon hits, direct elemental magic hits, and blocking scales with effective damage. Every supported skill has its own XP-per-damage setting. Successful parries can multiply damage-based Blocking XP.

Installation

Install with a mod manager or place DamageBasedSkills.dll in BepInEx/plugins/DamageBasedSkills/. For manual installation, extract this ZIP to your Valheim game folder. BepInEx is required. Install the same mod version on every player and the dedicated server, if used, and keep their settings in sync. The mod does not sync configuration automatically.

ImpactfulSkills is optional and distributed separately. Damage Based Skills passes its XP awards through the game's usual skill system, so ImpactfulSkills' skill gain modifiers still apply.

Experience formula

Skill Base XP
Swords, Knives, Clubs, Polearms, Spears, Axes, Bows, Crossbows, Unarmed Target HP actually lost × this skill's rate.
ElementalMagic Target HP actually lost to a direct elemental magic hit × ElementalMagic.
Blocking Damage actually blocked × Blocking; a timed parry also multiplies it by ParryMultiplier.

All rates default to 0.05 base XP per damage, the same as the old global setting. Each target of an area attack is counted separately. Armor, block, resistances, and the target's remaining HP affect how much HP was actually lost. CountOverkillDamage can enable an approximate lethal-hit overkill calculation.

After the first launch, adjust rates in BepInEx/config/LoIYver.DamageBasedSkills.cfg, under [XP per damage]. For example, Axes = 1 and Bows = 1.2 give different XP per point of damage. XPPerDamage only supplies the initial value when a skill's own setting is first created. An existing skill setting takes its place: the two values are neither added nor multiplied. This preserves a customized global rate when upgrading from 0.1.0.

[Blocking] ParryMultiplier = 2 doubles the XP calculated from blocked damage on a successful timed parry. ImpactfulSkills can award an additional, separate parry bonus on top. Enabled = false restores the original hit/block XP calls.

WoodCutting, Pickaxes, and BloodMagic keep their existing XP behavior. In particular, this mod does not award additional XP for summons or blood shields. The damage formula requires a Character target and does not apply to trees or other destructible world objects. Some periodic elemental effects may not carry an ElementalMagic skill tag in their damage data.

Русский

Мод начисляет опыт за попадания оружием и магией стихий по фактически потерянному целью здоровью, а за блок — по реально заблокированному урону. Каждая цель массовой атаки учитывается отдельно. Броня, сопротивления, блок и остаток здоровья влияют на величину начисления.

Распакуйте архив в корень Valheim или установите его через менеджер модов. DLL находится в BepInEx/plugins/DamageBasedSkills/. Для сетевой игры поставьте одну и ту же версию мода всем игрокам и на выделенный сервер, если он есть; настройки тоже должны совпадать. Конфиг появляется после первого запуска: BepInEx/config/LoIYver.DamageBasedSkills.cfg.

Коэффициенты навыков задаются отдельно в [XP per damage]: например, Axes = 1, Bows = 1.2. Начальное значение каждого — 0.05. Параметр XPPerDamage только задаёт стартовое значение новой записи навыка. Если запись уже создана, используется именно она; с XPPerDamage она не складывается и не умножается. При обновлении с 0.1.0 ранее изменённый XPPerDamage станет начальным значением новых индивидуальных записей. Дальше изменяйте их по отдельности.

За обычный блок: заблокированный урон × Blocking. За парирование результат дополнительно умножается на [Blocking] ParryMultiplier, по умолчанию 2. Бонус за парирование от ImpactfulSkills может добавиться отдельно. Enabled = false возвращает штатное начисление за удары и блок.

WoodCutting, Pickaxes и BloodMagic остаются на своей прежней механике. Саммоны и кровавый щит не получают дополнительных начислений этого мода. За удары по деревьям и прочим объектам без Character новая формула не начисляет XP. Периодические эффекты магии стихий учитываются только тогда, когда игра помечает их урон как ElementalMagic.

Changelog

0.2.2 Latest
  • Changed the XPPerDamage tooltip to English, matching the other F1 configuration tooltips.
0.2.1
  • Clarified the XPPerDamage tooltip: it only seeds new per-skill rates and does not combine with existing rates.
  • Refreshed the mod page description for Hexium.
0.2.0
  • Added Blocking XP based on damage actually blocked, with a configurable parry multiplier.
  • Added damage-based XP for direct ElementalMagic hits.
  • Added separate XP-per-damage rates for each tracked weapon skill, ElementalMagic and Blocking. Existing global XPPerDamage seeds new entries when upgrading.
  • Added a 256 × 256 mod icon and publishing metadata.
  • Kept BloodMagic's existing summon and shield XP behavior unchanged.

1 older entry, full version history & downloads →

Manual installation instructions
1

Install BepInExPack Valheim

BepInExPack Valheim is required to run mods in Valheim.

Download BepInExPack Valheim 5.4.2351 · View mod page

Check out the mod page for detailed installation instructions.

2

Install DamageBasedSkills

This mod must be installed on both the client and the server.

Download DamageBasedSkills 0.2.2

Extract the ZIP and place the file(s) into the BepInEx/plugins/ folder inside your Valheim game folder.