Merge branch 'cassidy'
This commit is contained in:
commit
28e9a65547
1 changed files with 9 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue