Better Staff Of Protection
A simple mod fixing a few issues with the Staff of Protection's Barrier
模組介紹 作者原文
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
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: