Update ItemInfo.cs

for whatever reason, our ItemInfo binary assumes most flowers are uniticon* rather than just Flower; just remap.
This commit is contained in:
Kurt
2021-02-07 15:57:45 -08:00
parent 35c26ff76f
commit c522bc9022

View File

@@ -50,6 +50,8 @@ public static ItemMenuIconType GetMenuIcon(ushort id)
public static bool TryGetMaxStackCount(ushort id, out ushort max)
{
var kind = GetItemKind(id);
if (kind.IsFlowerPicked())
kind = Kind_Flower;
return MaxCountByKind.TryGetValue(kind, out max);
}