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

RepairCost

Adds a repair cost to damaged equipment.

Date uploaded 4 months ago
Version 1.0.0
Download link Radamanto-RepairCost-1.0.0.zip
Downloads 44
Dependency string Radamanto-RepairCost-1.0.0

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
  • 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 quality 1 items
  • Cost scaling based on durability loss
  • Optional extra scaling based on item quality
  • Consumption of a configured item as currency after a successful repair
  • Repair blocking when the player does not have enough currency

Repair Currency

RepairCost uses a configurable prefab as the repair currency.

By default, the mod uses:

  • RD_repair_kit

This item is consumed automatically when a repair is completed successfully.

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 prefab, 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.

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

Included Item

Item Prefab Recipe
Repair Kit RD_repair_kit Resin x2
Leather Scraps x2
Flint x1

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.2 Fixed indestructible items no longer display repair cost.
Added a whitelist for items that should not use the repair cost system.
1.0.1 Added a progression system that changes the required repair kit as bosses are defeated.
1.0.0 Initial Release.