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

RepairRequiresCoins

Fork of aedenthorn/RepairRequiresMats. Repair your gear using Coins. Updated for Valheim 1.0.

Date uploaded 15 hours ago
Version 1.2.2
Download link cjayride-RepairRequiresCoins-1.2.2.zip
Downloads 8
Dependency string cjayride-RepairRequiresCoins-1.2.2

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

RepairRequiresCoins

Updated for Valheim 1.0

A fork of aedenthorn/RepairRequiresMats

ThunderStore | GitHub

Repair with coins!

  • Anything with durability that can be repaired (armor, weapons, etc) now requires Coins to repair it.
  • Items still repair at the station they were crafted at (for example a wooden hammer at a workbench, an iron axe at a forge).
  • Repair uses the vanilla station rule: the right station type, at the recipe's minimum level. Item quality does not raise the bench needed to repair. A quality 3 Iron Axe may need a higher forge to upgrade, but it repairs at the same forge level as a quality 1 Iron Axe.

Setup

  • There is only 1 config file: cjayride.RepairRequiresCoins.cfg

  • The config file contains values for materials used to build items.

  • The more expensive the material, the more costly in Coins to repair an item. A value of -1 means no cost to repair that material of an item. It works by counting the number of materials necessary to create the item, and then multiplies that by the configured exchange rate. This gives the Coin cost to repair.

  • You may need to adjust the values to match the economy and Coin drops of your server.

  • The default values were configured to match the coin economy of a cjaycraft modpack server https://valheim.thunderstore.io/package/cjayride/cjaycraft_ultimate_modpack/

  • EpicLoot is optional. If it is installed, magic items include extra enchant-cost materials in the coin calculation.

  • CoinOnly = true (default) repairs with coins only. Set CoinOnly = false to charge coins plus the original repair materials (for example iron for an iron axe). Those materials are listed on the repair tooltip.

Repair tooltip

Hover the repair button to see worn items at the current station.

  • Item names stay white.
  • Free is green.
  • Material amounts (for example 1 Iron) are green if you have enough, red if you do not.
  • Coin amounts are yellow if you can pay, red if you cannot. The word Coins stays white.
  • Needs Workbench Lvl: 1 (wrong station or station too low) is red.

Contact

  • Twitter: twitter.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

v1.2.3

  • Re-upload to tag for Deep North Update on Thunderstore

v1.2.2

  • Added Thunderstore AI Generated tag note in the README

v1.2.1

  • Repair uses the vanilla minimum station level; item quality does not raise the bench needed to repair
  • Still require the correct station type in Valheim 1.0 so forge gear is not treated as repairable at a workbench
  • Recheck crafting-station extensions so removing a bellows or anvil drops the station level immediately
  • CoinOnly = false charges coins plus original repair materials and lists those materials on the tooltip
  • Repair tooltip: white item names, green Free, green/red material amounts, yellow/red coin amounts, red "Needs station" text

v1.2.0

  • Updated for Valheim 1.0
  • Fixed MissingMethodException spam for Player.ConsumeResources(Piece.Requirement[], int, int)
  • Repair now removes coins from inventory directly instead of calling the old ConsumeResources signature
  • Look up Coins from ObjectDB instead of the GoldRubyRing/EpicLoot recipe hack
  • EpicLoot is optional; still used for extra magic-item repair costs when present
  • Updated Utils.FindChild for the 1.0 signature
  • Repair tooltip now lists items that need a different crafting station instead of showing "Nothing to repair"
  • Fixed Stone material using the wrong exchange rate

v1.1.0

  • Removed terminal reload
  • Added compatibility for v0.217.46

v1.0.2 - 2024/4/7

  • Passed initial test seems to work. Just remember, an item can only be repaired by the same type of workbench it was created.
  • No longer requires the depreciated mod: Extended Item Data Framework

v1.0.1 - 2024/4/7

  • Fixed possible issue with missing assembly files

v1.0.0 - 2024/4/7

  • Moved all configuration to one file: cjayride.RepairRequiresMats-Coins-CJAYCRAFT-fix.cfg

v0.8.1 - 2024/4/7

  • Re-uploaded because package was denied on Thunderstore. No changes to files.

v0.8.0 - 2024/4/7

  • Changed the method in code for text transformation to GetComponent<TMP_Text>() on lines 170 - 172. Committed by "aedenthorn" on Oct 6, 2023.

v0.7.2 - 2023/7/13

  • Added Newtonsoft.Json.dll to the plugins folder, seems to be required for mod to work.

v0.7.1 - 2023/7/13

  • Removed the dependency RandyKnapp-ExtendedItemDataFramework-1.0.11 because it is depreciated (breaks everything) and I believe is no longer needed.

v0.7.0 - 2023/7/10

  • MISTLANDS UPDATE
  • Updated dependencies list
  • Configuration now allows for easier placement of configuration file. It can be placed anywhere in the BepInEx folder that you specify.
  • See cjayride.RepairREquiresMats-Coins-CJAYCRAFT-fix.cfg

v0.6.4 - 2022/2/23

  • Removed the RecipeCusomization dependency and file GoldRubyRing.json because it turns out that this workaround doesn't work on dedicated servers, only on client player run games. So in order to get this to work, you're now required to make sure that the recipes.json file in the EpicLoog plugins folder includes a GoldRubyRing with Coins as a required recipe part like follows:

    { "name": "Recipe_GoldRubyRing", "item": "GoldRubyRing", "craftingStation": "forge", "resources": [ { "item": "Coins", "amount": 100 }, { "item": "Bronze", "amount": 4 }, { "item": "Ruby", "amount": 2 } ] },

v0.6.3 - 2022/2/18

  • Forgot to include RecipeCustomization mod as dependecy. It's actually not required though so long as you have EpicLoot installed AND your EpicLoot recipe.json file includes a recipe for "Recipe_GoldRubyRing" with Coins as a required resource to craft it. Some servers may want to change the recipe.

v0.6.2 - 2022/2/18

  • Fixed critical bug with dependencies. It been difficult getting this mod on Thunderstore from my community server because I didn't know it relied on so many things.

v0.6.1 - 2022/2/17

  • Removed test code mod config enforcer, because it was incomplete and prohibiting the mod from running at all.

v0.6.0 - 2022/2/16

  • First upload to Thunderstore