item identification: Add composts

This commit is contained in:
mkowen1
2021-02-20 14:27:01 -08:00
committed by Jordan Atwood
parent 09f0cfd0c8
commit 68a544943c
3 changed files with 24 additions and 1 deletions

View File

@@ -120,6 +120,11 @@ enum ItemIdentification
CALQUAT_SAPLING(Type.SAPLING, "Calquat", "CALQ", ItemID.CALQUAT_SAPLING, ItemID.CALQUAT_SEEDLING, ItemID.CALQUAT_SEEDLING_W),
CELASTRUS_SAPLING(Type.SAPLING, "Celas", "CEL", ItemID.CELASTRUS_SAPLING, ItemID.CELASTRUS_SEEDLING, ItemID.CELASTRUS_SEEDLING_W),
//Compost
COMPOST(Type.COMPOST, "Compost", "COM", ItemID.COMPOST),
SUPERCOMPOST(Type.COMPOST, "Sup Com", "SCOM", ItemID.SUPERCOMPOST),
ULTRACOMPOST(Type.COMPOST, "Ult Com", "UCOM", ItemID.ULTRACOMPOST),
//Ores
COPPER_ORE(Type.ORE, "Copper", "COP", ItemID.COPPER_ORE),
TIN_ORE(Type.ORE, "Tin", "TIN", ItemID.TIN_ORE),
@@ -209,7 +214,7 @@ enum ItemIdentification
SERUM_207(Type.POTION, "Ser207", "S7", ItemID.SERUM_207_4, ItemID.SERUM_207_3, ItemID.SERUM_207_2, ItemID.SERUM_207_1),
SERUM_208(Type.POTION, "Ser208", "S8", ItemID.SERUM_208_4, ItemID.SERUM_208_3, ItemID.SERUM_208_2, ItemID.SERUM_208_1),
COMPOST(Type.POTION, "Compost", "Cp", ItemID.COMPOST_POTION4, ItemID.COMPOST_POTION3, ItemID.COMPOST_POTION2, ItemID.COMPOST_POTION1),
COMPOST_POTION(Type.POTION, "Compost", "COM", ItemID.COMPOST_POTION4, ItemID.COMPOST_POTION3, ItemID.COMPOST_POTION2, ItemID.COMPOST_POTION1),
AGILITY(Type.POTION, "Agility", "Ag", ItemID.AGILITY_POTION4, ItemID.AGILITY_POTION3, ItemID.AGILITY_POTION2, ItemID.AGILITY_POTION1),
FISHING(Type.POTION, "Fishing", "Fi", ItemID.FISHING_POTION4, ItemID.FISHING_POTION3, ItemID.FISHING_POTION2, ItemID.FISHING_POTION1),
@@ -349,6 +354,7 @@ enum ItemIdentification
SACK,
HERB,
SAPLING,
COMPOST,
ORE,
GEM,
POTION,

View File

@@ -105,6 +105,17 @@ public interface ItemIdentificationConfig extends Config
return true;
}
@ConfigItem(
keyName = "showComposts",
name = "Composts",
description = "Show identification on Composts",
section = identificationSection
)
default boolean showComposts()
{
return false;
}
@ConfigItem(
keyName = "showOres",
name = "Ores",

View File

@@ -89,6 +89,12 @@ class ItemIdentificationOverlay extends WidgetItemOverlay
return;
}
break;
case COMPOST:
if (!config.showComposts())
{
return;
}
break;
case ORE:
if (!config.showOres())
{