You are viewing a potentially older version of this package. View all versions.
Radamanto-RepairCost-1.0.1 icon

RepairCost

Adds a repair cost to damaged equipment.

Date uploaded 2 weeks ago
Version 1.0.1
Download link Radamanto-RepairCost-1.0.1.zip
Downloads 98
Dependency string Radamanto-RepairCost-1.0.1

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

RepairCost

RepairCost applies a configurable cost whenever an item is repaired.
The final repair cost is calculated based on the item's durability loss and can also scale with item quality.

With this system, RepairCost provides:

  • Repair costs based on durability loss
  • Optional scaling by item quality
  • Configurable repair currency
  • Optional repair currency progression based on defeated bosses
  • Repairs are blocked when the player does not have enough currency
  • Tooltip display showing the repair cost before repairing

How It Works

The repair cost system includes:

  • A configurable maximum base repair cost for base quality items
  • Cost scaling based on durability loss
  • Optional extra scaling based on item quality
  • Consumption of the configured repair item after a successful repair
  • Repair blocking when the player does not have enough currency
  • Optional repair currency progression based on world progression

Repair Currency

RepairCost uses configurable prefabs as the repair currency.

By default, the system includes a progression of repair kits:

  • RD_repair_kit_t0
  • RD_repair_kit_t1
  • RD_repair_kit_t2
  • RD_repair_kit_t3
  • RD_repair_kit_t4
  • RD_repair_kit_t5
  • RD_repair_kit_t6
  • RD_repair_kit_t7

When currency progression is enabled, the required repair kit changes according to defeated boss progression.

Default progression:

  • No boss defeated → RD_repair_kit_t0
  • Eikthyr → RD_repair_kit_t1
  • The Elder → RD_repair_kit_t2
  • Bonemass → RD_repair_kit_t3
  • Moder → RD_repair_kit_t4
  • Yagluth → RD_repair_kit_t5
  • The Queen → RD_repair_kit_t6
  • Fader → RD_repair_kit_t7

If BiomeLock is installed, RepairCost uses BiomeLock private keys to control this progression. Otherwise, it uses the game's default global keys.

Currency progression can also be disabled, forcing the system to always use the base repair kit:

  • RD_repair_kit_t0

Tooltip

RepairCost displays the repair cost directly in the item tooltip.

Tooltip behavior includes:

  • Shows the repair cost for repairable items
  • Uses a configurable color when the player can afford the repair
  • Uses another configurable color when the player cannot afford the repair
  • Can display an invalid currency warning if the configured repair currency is not valid

Features

  • Configurable Repair Rules
    The repair system can be customized through config settings, including base repair cost, quality scaling, repair currency prefabs, progression behavior, and tooltip colors.

  • Server Synchronization
    Main settings are synchronized by the server, ensuring that all players use the same repair rules.

  • Quality-Based Scaling
    Repair cost can scale with item quality, allowing higher quality equipment to cost more to repair.

  • Durability-Based Cost
    Repair cost scales with durability loss, making lightly damaged items cheaper to repair than heavily worn items.

  • Boss-Based Currency Progression
    The required repair kit can automatically progress based on defeated bosses.

  • BiomeLock Integration
    When BiomeLock is installed, progression follows private keys instead of the default global keys.

  • Repair Requirement Enforcement
    Repairs are blocked when the player does not have enough currency.

Included Items

Item Prefab
Repair Kit RD_repair_kit_t0
Repair Kit I RD_repair_kit_t1
Repair Kit II RD_repair_kit_t2
Repair Kit III RD_repair_kit_t3
Repair Kit IV RD_repair_kit_t4
Repair Kit V RD_repair_kit_t5
Repair Kit VI RD_repair_kit_t6
Repair Kit VII RD_repair_kit_t7

Translation Support

RepairCost supports custom translations through an external YAML file.
A sample YAML file is included in the mod package as a template for additional languages.

Installation (manual)

  • Place RepairCost.dll inside your BepInEx\plugins\ folder.
Donate with PayPal

CHANGELOG

Changelog

Version Description
1.0.1 Added a progression system that changes the required repair kit as bosses are defeated.
1.0.0 Initial Release.