Item Rarities is a modification that gives each item within The Long Dark a sense of exclusivity.
General Features
- Rarity Classifications: Each item is given a 'rarity' based on several different factors.
- Exclusivity: Exclusive items will now 'feel' rarer once obtained.
UI Features
- Sort By Rarity: You can now sort by the rarity of items in your inventory or containers!
- Container Grid: Whenever an item is selected or hovered over in the container grid, then the colour of that grid item changes.
- Inventory Grid: Whenever an item is selected or hovered over, it's grid colour changes, and it displays a label above the item.
- Clothing Grid: If a clothing item is selected or hovered over, the grid colour changes, and it displays a label above the item.
- Radial Menu: The radial menu changes colour based on what item is hovered over, while displaying a label of what rarity it is.
- Inspect: The inspect label is now integrated with the rest of the information that fades in whenever an item is inspected.
- Hovering Label: Whenever an item is hovered over before picking up, the label changes to the colour of that item's rarity.
- Crafting Menu: When a craftable item is selected in the crafting menu, a label displays what rarity it is.
- Cooking Menu: If a cookable item is selected within the cooking menu, a label displays what rarity it is.
- Milling Menu: Once a millable item is selected within it's menu, a label displays the current rarity of that item.
Customisable Options
- Custom Colours: Players can now choose any colours for each rarity, to suit them to your liking.
Modding Support
- ModComponent SDK: Now compatible with any custom items made with the ModComponent SDK.
- Programming Support: Give your custom items custom rarities through programming. Visit the developers section for more information.
Coming Soon™
For this mod to work, ensure you have the following mods below:
- Download MelonLoader and install it into your game.
- Download the latest version of this mod.
- Navigate to where your game's directory.
- Cut the
ItemRarities.dllyou downloaded and paste it into themodsfolder of your game's directory. - Launch the game.
- deepsnowland - For providing Japanese translations.
- Elderly-Emre - For providing Turkish translations.
- Laki - For providing Polish translations.
- LettereUniche - For providing Italian translations.
- LordKai1102 - For providing German translations.
- Mezav23 - For providing Spanish translations.
This section is for anybody who would like to add a rarity to any of their custom items through code, it's pretty simple - you just have to follow what's below. However, if you are currently using the ModComponent SDK then you'll be better off using the integrated functionality as seen here.
If you have a mod that already contains some code, you'll need to install the NuGet package into your project. After doing so, it's as simple as including this within your project.
using ItemRarities.Enums;
using ItemRarities.Managers;
internal sealed class Mod : MelonMod
{
public override void OnInitializeMelon()
{
RarityManager.AddGearItemAndRarity("GEAR_ExampleItem", Rarities.Mythic);
RarityManager.AddGearItemAndRarity("GEAR_ExampleItem2", Rarities.Legendary);
}
}