Weapon Durability Loss Multiplier
Scales how much durability your guns lose per shot, from 0x to 10x. Applied after oils, enchantments and other vanilla modifiers.
| Date uploaded | 4 days ago |
| Version | 1.0.2 |
| Download link | ryuka_labs-Weapon_Durability_Loss_Multiplier-1.0.2.zip |
| Downloads | 124 |
| Dependency string | ryuka_labs-Weapon_Durability_Loss_Multiplier-1.0.2 |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2305README
Weapon Durability Loss Multiplier
Changes how much durability your guns lose when you fire them, from 0x (no wear) to 10x. The default is 0.5x, so guns wear out half as fast.
The multiplier is applied to the game's final per-shot loss, after oils, enchantments and the weapon's own durability-loss stat have done their part. Everything else about durability, including breaking and repairing, works as in vanilla.
What it affects
- Only guns you fire. Melee weapons, armor and enemy weapons are untouched.
- Loss is counted once per shot, as in vanilla, so shotguns and multishot guns don't lose more per pellet.
- If the game's own Disable durability setting is on, guns lose nothing and this mod has nothing to scale.
Configuration
The config file is created on first launch at BepInEx/config/kumo.sulfur.weapon_durability_loss_multiplier.cfg. With SULFUR Config installed you can also change it in game.
WeaponDurabilityLossMultiplier
[Weapon]
WeaponDurabilityLossMultiplier = 0.5
1 is vanilla, 0 means guns never wear out from firing, 2 doubles the wear. Range 0 to 10. Changes apply right away, no restart needed.
EnableMod
[General]
EnableMod = true
Turns the mod off without uninstalling it.
LogDurabilityChanges
[Debug]
LogDurabilityChanges = false
Writes every adjusted shot to the BepInEx log. Only useful for troubleshooting.
Installation
Install with r2modman, Gale or another Thunderstore mod manager.
To install by hand, create a folder BepInEx/plugins/Weapon_Durability_Loss_Multiplier/ and extract the whole zip into it, so Weapon Durability Loss Multiplier.dll and the lang folder sit side by side. To uninstall, delete that folder (and the config file if you want).
Compatibility
The mod patches one method, InventoryItem.TakeDurabilityLossFromShoot(), with a transpiler. Another mod that changes gun durability loss in the same method could stack with this one or conflict with it, depending on load order. Repairs, armor damage and InventoryItem.ModifyDurability() itself are not patched.
The settings page is translated for SULFUR Config into all 15 game languages.
CHANGELOG
Changelog
1.0.2
- Added a Traditional Chinese (zh-TW) translation for the SULFUR Config settings page.
- Moved the translation files into a
langfolder next to the DLL, the layout SULFUR Native UI Lib looks for first. - The plugin now reports its real version. 1.0.1 still called itself 1.0.0 in the BepInEx log and in config managers.
- If a game update ever moves the code this mod patches, the log now says the mod is inactive. Before, it said "Patched" either way.
- Fixed the manual install steps in the readme (wrong DLL name).
- No gameplay changes. Checked on SULFUR 1.0.6.
1.0.1
- Added translations for the SULFUR Config settings page (14 languages). No gameplay changes.
1.0.0
- First release: a 0x to 10x multiplier for gun durability loss from firing, applied after oils, enchantments and other vanilla modifiers.