1
0
mirror of synced 2024-11-23 23:21:06 +01:00

Fix Lua for 0_StartUp not loading

This commit is contained in:
0auBSQ 2024-04-27 12:31:44 +09:00
parent 1a4aba8245
commit 65d5000726

View File

@ -251,10 +251,13 @@ namespace TJAPlayer3
string[] raritiesP = { "Common", "Common", "Common", "Common", "Common" };
string[] raritiesC = { "Common", "Common", "Common", "Common", "Common" };
for (int i = 0; i < TJAPlayer3.ConfigIni.nPlayerCount; i++)
if (TJAPlayer3.Tx.Puchichara != null && TJAPlayer3.Tx.Characters != null)
{
raritiesP[i] = TJAPlayer3.Tx.Puchichara[PuchiChara.tGetPuchiCharaIndexByName(TJAPlayer3.GetActualPlayer(i))].metadata.Rarity;
raritiesC[i] = TJAPlayer3.Tx.Characters[TJAPlayer3.SaveFileInstances[TJAPlayer3.GetActualPlayer(i)].data.Character].metadata.Rarity;
for (int i = 0; i < TJAPlayer3.ConfigIni.nPlayerCount; i++)
{
raritiesP[i] = TJAPlayer3.Tx.Puchichara[PuchiChara.tGetPuchiCharaIndexByName(TJAPlayer3.GetActualPlayer(i))].metadata.Rarity;
raritiesC[i] = TJAPlayer3.Tx.Characters[TJAPlayer3.SaveFileInstances[TJAPlayer3.GetActualPlayer(i)].data.Character].metadata.Rarity;
}
}
// Initialisation