Belphegor-Better_Staff_Of_Protection icon

Better Staff Of Protection

A simple mod fixing a few issues with the Staff of Protection's Barrier

Last updated 5 months ago
Total downloads 653
Total rating 1 
Categories Mods Tweaks Client-side Utility Ashlands Update
Dependency string Belphegor-Better_Staff_Of_Protection-1.0.0
Dependants 1 other package depends on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2202 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.2202

README

Description

A simple mod fixing a few issues that I had with the Staff of Protection's Barrier. It fixes two main issues with Chop and Pickaxe damage types and hitpoints not refreshing on recast. There are some additional fixes regarding gaining experience being too slow. Lastly, there is a new, disabled-by-default change (named Warlock mode) that creates interaction between Bloodstone upgraded weapons and the Staff of Protection's Barrier.

Features

Add immunity to Chop and Pickaxe damage types

  • In vanilla Valheim, when someone attacks you with an attack that affects terrain, it has significant Chop and Pickaxe damage types that the player normally ignores. Unfortunately, the Barrier doesn't ignore these damage types, and most massive foes and bosses can destroy the Barrier in one hit. Whether this is a bug or an intended mechanic, I didn't like it, and so this mod was created.
    • IgnoreChopAndPickaxe option needs to be enabled

Refresh barrier hitpoints on recast

  • Refreshing hit points whenever the ability is recast is more natural, in my opinion. It can be a little too overpowered as it's possible to have the barrier eternally, but when combined with "Warlock mode" and the chaos of battle, it can be fun and (almost) balanced.
    • RecastFullRefresh option needs to be enabled

Gain experence from more sources

  • Gain part of the experience when recasting the barrier. This is a fix for the issue created by refreshing the barrier's hit points on recast. In unmodded Valheim, you gain experience when the barrier is broken, and by refreshing hit points on each recast, it basically prevents you from gaining experience. After enabling this option, when recasting, you will gain experience based on what portion of the barrier's hit points was used at the point of recast (rounded to the nearest 10%).
    • Both RecastFullRefresh and RecastExperience options needs to be enabled
  • Gain experience on each attack being blocked by the barrier, in an amount equal to the value from the OnHitExperienceFactor option.
    • OnHitExperience option needs to be enabled

Warlock mode (disabled on default)

  • It helps with maintaining low HP when using a combination of a Bloodstone upgraded weapon and the Staff of Protection's Barrier by adding a health cost to each attack. This creates high-risk, high-reward situations when facing strong opponents, as you will perform powerful attacks but can be killed in one hit if the barrier is broken. Each Bloodstone upgraded weapon's attack will now drain hit points with each attack when the barrier is active, with the amount depending on the type of weapon and its stamina usage. The amount percentages are configurable for each stamina usage type: simple (stamina per each attack), draw (stamina per second when drawing), and reload (stamina per second when reloading).
    • WarlockWeapons option needs to be enabled

Installing

Manual Install

Extract the Belphegor_BetterStaffOfProtection.dll file into the BepInEx/plugins folder. Directory structure should look like this:

BepInEx ->
    plugins ->
        Belphegor_BetterStaffOfProtection.dll

Config

A config file will be generated after the first loading of the mod and can be found in BepInEx/config/Belphegor.BetterStaffOfProtection.cfg

Author Information

Belphegor

DISCORD xBelphegorx#3622