Commit 1392ada4 authored by mercury233's avatar mercury233 Committed by nanahira

fix strSetName not updated after loading strings

parent 5980f0ed
......@@ -414,6 +414,8 @@ public class Program : MonoBehaviour
}
}
YGOSharp.CardsManager.updateSetNames();
if (Directory.Exists("pack"))
{
FileInfo[] fileInfos = (new DirectoryInfo("pack")).GetFiles();
......
......@@ -172,7 +172,6 @@ namespace YGOSharp
{
this.Str[ii] = reader.GetString(14 + ii);
}
this.strSetName = GameStringHelper.getSetName(Setcode);
}
public Card()
......
......@@ -97,6 +97,15 @@ namespace YGOSharp
}
}
internal static void updateSetNames()
{
foreach (var item in _cards)
{
Card card = item.Value;
card.strSetName = GameStringHelper.getSetName(card.Setcode);
}
}
internal static List<Card> searchAdvanced(
string getName,
int getLevel,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment