You are viewing a potentially older version of this package. View all versions.
cjayride-CustomArmorStats-0.9.0 icon

CustomArmorStats

Lets you customize global and per-piece armor stats like durability, armor amount, movement modifier, and damage type modifiers. It also adds resistance to Wet status as a possible modifier.

Date uploaded 4 hours ago
Version 0.9.0
Download link cjayride-CustomArmorStats-0.9.0.zip
Downloads 9
Dependency string cjayride-CustomArmorStats-0.9.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2350 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.2350

README

CustomArmorStats

Updated for Valheim 1.0

A fork of aedenthorn/CustomArmorStats

ThunderStore | GitHub

Lets you customize global and per-piece armor stats like durability, armor amount, movement modifier, and damage type modifiers. It also adds resistance to Wet status as a possible modifier.

This mod also fixes a vanilla bug that makes frost immunity not apply to environmental cold.

Setting Armor Stats

Custom armor stats are stored in json files in BepInEx\plugins\CustomArmorStats. To create a template json file for a specific armor piece, type the following command in the console (F5):

customarmorstats save <ItemSpawnName>

E.g. customarmorstats save ArmorBronzeLegs will create a file called ArmorBronzeLegs.json with the default values for Bronze leggings. Edit that file as you like, save it, then type the following command in the console:

customarmorstats reload

This will reload the file, applying the new values when an item is created or moved to a new inventory.

The variables are mostly self-explanatory.

Damage modifiers are a list of colon-separated pairs, e.g. for the Wolf Chest armor:

"damageModifiers":["Frost:Resistant"]

The first value is the damage type, the second value is the resistance level.

Valid damage types include:

  • Blunt
  • Slash
  • Pierce
  • Chop
  • Pickaxe
  • Physical
  • Fire
  • Frost
  • Lightning
  • Elemental
  • Poison
  • Spirit
  • Water (this is a new type, affecting the Wet status)

Valid resistance levels include:

  • Normal
  • Resistant
  • Weak
  • Immune
  • Ignore
  • VeryResistant
  • VeryWeak
  • SlightlyResistant
  • SlightlyWeak

You can also dump these lists using:

customarmorstats damagetypes

customarmorstats damagemods

Water Resistance

Water resistance provides the following modifiers, depending on the resistance level:

  • Normal - no change
  • Resistant - increases Wet status countdown speed by 100%
  • Weak - decreases Wet status countdown speed by 1/3
  • Immune - prevents Wet status effect
  • Ignore - prevents Wet status effect
  • VeryResistant - prevent wet status effect application except when swimming, increases Wet status countdown speed by 100%
  • VeryWeak - decreases Wet status countdown speed by 2/3

Global Multipliers

The mod also provides the following global armor modifiers via the config file:

GlobalArmorDurabilityLossMult

GlobalArmorMovementModMult

Config

A config file BepInEx/config/cjayride.CustomArmorStats.cfg is created after running the game once with this mod.

Valheim 1.0 no longer ships Newtonsoft.Json. The Thunderstore package includes Newtonsoft.Json.dll next to the plugin.

Requires BepInExPack Valheim 5.4.2350+ (Unity 6). Crossplay must stay off for BepInEx to load.

Developer: aedenthorn

Original mod link: https://www.nexusmods.com/valheim/mods/1162

Contact

  • 𝕏: x.com/cjayride

  • Discord: discord.gg/cjayride (find me at the top of the user list) "cjayride"

  • Twitch: twitch.tv/cjayride

AI Generated

This code was not AI Generated, however, AI was used to verify that it works with the new version of the game.

CHANGELOG

v0.9.1

  • Updated mod icon

v0.9.0

  • Prepared for Valheim 1.0 (Unity 6)
  • SEMan.AddStatusEffect now includes a short variant argument on Valheim 1.0; both Harmony patches match that signature
  • Based on aedenthorn CustomArmorStats 0.8.4 (newer than the last Thunderstore 0.6.3 upload)
  • Game no longer ships Newtonsoft.Json; the mod now includes it
  • Wet immunity now also patches the hash-based SEMan.AddStatusEffect used by environmental rain
  • Frost Immune/Ignore transpiler matches short-form IL (beq.s) used in the current client
  • Console commands registered through Terminal.ConsoleCommand
  • Water resistance now includes the trinket slot
  • BepInEx dependency updated to denikson-BepInExPack_Valheim-5.4.2350
  • Debug logging is now off by default (IsDebug config option)

v0.6.3

  • Readme file update.

v0.6.1

  • Fixed assembly error with MonoMod

v0.6.0

  • 2 changes (commits) from aedenthorn on June 18, 2023 and Aug 24, 2023

v0.5.3

  • No changes, just fixed version numbers to match files.

v0.5.2

  • No change, just messed up the upload. Thunderstore said I hadn't uploaded the file changes yet.

v0.5.1

  • Renamed config file to cjayride.CustomArmorStats.cfg -- to match the config file names of other re-uploads and edited mods

v0.5.0

  • Fix for new update

v0.4.0

  • Fix for mistlands update