Categories and rarity
Assign items to tabs and rarity tiers.
Categories
In ko/categories.lua you set which tab an item is in. The tabs are weapons, food, clothing, medical and other. Everything not in the list goes to other.
Items whose name starts with WEAPON_, ammo- or at_ go to weapons automatically.
ko/categories.lua
KoInv.ItemCategories = {
burger = 'food',
water = 'food',
backpack = 'clothing',
bandage = 'medical',
}Rarity
In ko/tiers.lua you give items a rarity tier. It is shown as a coloured corner on the slot and as a word in the tooltip. Items without an entry have no tier.
| Tier | Name |
|---|---|
1 | Rare |
2 | Epic |
3 | Legendary |
4 | Mythic |
ko/tiers.lua
KoInv.ItemTiers = {
medikit = 1,
WEAPON_CARBINERIFLE = 2,
WEAPON_HEAVYSNIPER_MK2 = 3,
WEAPON_RPG = 4,
}Was this page helpful?
