item identification: Add sacks (#9372)

This commit is contained in:
Silverfeelin
2021-02-18 23:47:25 +01:00
committed by GitHub
parent 9f31e979d7
commit 63614f5319
3 changed files with 23 additions and 0 deletions

View File

@@ -48,6 +48,12 @@ enum ItemIdentification
POISON_IVY_SEED(Type.SEED, "Ivy", "I", ItemID.POISON_IVY_SEED),
WHITEBERRY_SEED(Type.SEED, "White", "W", ItemID.WHITEBERRY_SEED),
//Sacks
SACK(Type.SACK, "Empty", "EMP", ItemID.EMPTY_SACK),
CABBAGE_SACK(Type.SACK, "Cabbage", "CAB", ItemID.CABBAGES1, ItemID.CABBAGES2, ItemID.CABBAGES3, ItemID.CABBAGES4, ItemID.CABBAGES5, ItemID.CABBAGES6, ItemID.CABBAGES7, ItemID.CABBAGES8, ItemID.CABBAGES9, ItemID.CABBAGES10),
ONION_SACK(Type.SACK, "Onion", "ONI", ItemID.ONIONS1, ItemID.ONIONS2, ItemID.ONIONS3, ItemID.ONIONS4, ItemID.ONIONS5, ItemID.ONIONS6, ItemID.ONIONS7, ItemID.ONIONS8, ItemID.ONIONS9, ItemID.ONIONS10),
POTATO_SACK(Type.SACK, "Potato", "POT", ItemID.POTATOES1, ItemID.POTATOES2, ItemID.POTATOES3, ItemID.POTATOES4, ItemID.POTATOES5, ItemID.POTATOES6, ItemID.POTATOES7, ItemID.POTATOES8, ItemID.POTATOES9, ItemID.POTATOES10),
//Herbs
GUAM(Type.HERB, "Guam", "G", ItemID.GUAM_LEAF, ItemID.GRIMY_GUAM_LEAF),
MARRENTILL(Type.HERB, "Marren", "M", ItemID.MARRENTILL, ItemID.GRIMY_MARRENTILL),
@@ -305,6 +311,7 @@ enum ItemIdentification
enum Type
{
SEED,
SACK,
HERB,
SAPLING,
ORE,

View File

@@ -73,6 +73,16 @@ public interface ItemIdentificationConfig extends Config
return true;
}
@ConfigItem(
keyName = "showSacks",
name = "Sacks",
description = "Show identification on Sacks"
)
default boolean showSacks()
{
return false;
}
@ConfigItem(
keyName = "showHerbs",
name = "Herbs",

View File

@@ -71,6 +71,12 @@ class ItemIdentificationOverlay extends WidgetItemOverlay
return;
}
break;
case SACK:
if (!config.showSacks())
{
return;
}
break;
case HERB:
if (!config.showHerbs())
{