scylla store fix

This commit is contained in:
SillyStar-Github 2025-11-16 03:47:16 -05:00
parent 5ed6b1a325
commit 938ae813da

View file

@ -18,7 +18,15 @@ namespace PvZ_Fusion_Translator.Patches.GameObjects
{ {
if(__instance.currentSelect != null) if(__instance.currentSelect != null)
{ {
text.text = translatedTravelBuffs[buffLinks[(BuffType)__instance.currentSelect.theBuffType]][__instance.currentSelect.theBuffNumber]; var buffList = translatedTravelBuffs[buffLinks[(BuffType)__instance.currentSelect.theBuffType]];
if(__instance.currentSelect.theBuffNumber < buffList.Count)
{
text.text = buffList[__instance.currentSelect.theBuffNumber];
}
else
{
text.text = StringStore.TranslateText(text.text);
}
} }
} }
foreach (var textMesh in __instance.points) foreach (var textMesh in __instance.points)