Refactor and fixing ref
This commit is contained in:
@@ -384,7 +384,7 @@ namespace BrewMonster.Scripts.Managers
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
string itemName = EC_IvtrItemUtils.ResolveItemName(itemData.m_tid);
|
||||
string itemName = EC_IvtrItemUtils.Instance.ResolveItemName(itemData.m_tid);
|
||||
string displayText = string.IsNullOrEmpty(itemName) ? $"Item {itemData.m_tid}" : itemName;
|
||||
if (itemData.m_iCount > 1)
|
||||
{
|
||||
@@ -723,7 +723,7 @@ namespace BrewMonster.Scripts.Managers
|
||||
// Set icon sprite based on item TemplateId
|
||||
if (hasItem && itemData != null && itemData.m_iCount > 0)
|
||||
{
|
||||
var sprite = EC_IvtrItemUtils.ResolveItemIconSprite(itemData.m_tid);
|
||||
var sprite = EC_IvtrItemUtils.Instance.ResolveItemIconSprite(itemData.m_tid);
|
||||
image.sprite = sprite;
|
||||
image.enabled = true;
|
||||
}
|
||||
@@ -906,7 +906,7 @@ namespace BrewMonster.Scripts.Managers
|
||||
}
|
||||
|
||||
// Get user-friendly text from string tables
|
||||
string itemName = EC_IvtrItemUtils.ResolveItemName(item.m_tid);
|
||||
string itemName = EC_IvtrItemUtils.Instance.ResolveItemName(item.m_tid);
|
||||
string itemDescription = GetItemDescription(item.m_tid);
|
||||
string itemExtendedDesc = GetItemExtendedDescription(item.m_tid);
|
||||
|
||||
@@ -1075,7 +1075,7 @@ namespace BrewMonster.Scripts.Managers
|
||||
foreach (int holeTid in currentSelectedEquipment.Holes)
|
||||
{
|
||||
if (holeTid == 0) continue;
|
||||
string stoneName = EC_IvtrItemUtils.ResolveItemName(holeTid);
|
||||
string stoneName = EC_IvtrItemUtils.Instance.ResolveItemName(holeTid);
|
||||
// Try to fetch a description from string tables; fallback to name if unavailable
|
||||
string stoneDesc = GetItemDescription(holeTid) ?? stoneName;
|
||||
if (!string.IsNullOrEmpty(stoneName))
|
||||
|
||||
Reference in New Issue
Block a user