DurabilityDisplay-耐久显示
(This description was translated by AI.)
Note: The prerequisite HarmonyLib must be placed above this mod, as the mod loading order is from top to bottom.
Displays durability values in the item UI and in the tooltip when hovering over the icon.
Default configuration:
Current durability text is displayed in red for 0-10, orange for 10-35, and green for 35-100.Maximum durability is displayed in red for 0-25, orange for 25-50, and green for 50-100.
You can edit the display color rules in the folder SteamLibrarysteamappsworkshopcontent31670203594746089config. It supports operators <, <=, >, >= and multiple rules. For example: current durability defaults to gold, red when less than 10, orange when less than 20, yellow when less than 30, green when less than 40, and white when less than 50.
The percentage of current durability/max durability is shown on the item icon. Note that even if only 0.01 durability is lost, the UI will display 99%. In the game, when repairing, the durability value may appear full but won’t show if the loss is too small—you can still repair it for 0 cost (yes, I want to repair everything to full).
Currently, after modifying the configuration file, switching the language will reload the configuration file automatically.
Added localization text editing: Display text can be edited in the folder SteamLibrarysteamappsworkshopcontent31670203594746089lang.Added durability display color and threshold editing: Text colors and thresholds can be edited in the folder SteamLibrarysteamappsworkshopcontent31670203594746089config.Added in-weapon ammo display: Ammo will be shown when the weapon is loaded with bullets.
Created with AI assistance