mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-14 07:55:01 +01:00
fix loading screen hang, only allow gacha tutorial once
This commit is contained in:
@@ -19,19 +19,24 @@ namespace nksrv.LobbyServer.Msgs.Gacha
|
||||
var response = new ResExecuteGacha();
|
||||
|
||||
// TODO: Pick random character that player does not have unless it supports limit break.
|
||||
// TODO: Write character to user info.
|
||||
|
||||
// TODO implement
|
||||
// TODO implement reward
|
||||
response.Reward = new NetRewardData();
|
||||
foreach (var c in StaticDataParser.Instance.GetAllCharacterTids())
|
||||
|
||||
if (user.GachaTutorialPlayCount == 0)
|
||||
{
|
||||
response.Gacha.Add(new NetGachaEntityData() { Corporation = 0, PieceCount = 1, CurrencyValue = 5, Sn = 130201, Tid = c, Type = 1 });
|
||||
foreach (var c in StaticDataParser.Instance.GetAllCharacterTids())
|
||||
{
|
||||
response.Gacha.Add(new NetGachaEntityData() { Corporation = 0, PieceCount = 1, CurrencyValue = 5, Sn = 130201, Tid = c, Type = 1 });
|
||||
|
||||
user.Characters.Add(new Utils.Character() { CostumeId = 0, Csn = c, Grade = 0, Level = 1, Skill1Lvl = 1, Skill2Lvl= 1, Tid = c, UltimateLevel = 1 });
|
||||
user.Characters.Add(new Utils.Character() { CostumeId = 0, Csn = c, Grade = 0, Level = 1, Skill1Lvl = 1, Skill2Lvl = 1, Tid = c, UltimateLevel = 1 });
|
||||
|
||||
// response.Characters.Add(new NetUserCharacterDefaultData() { Lv = 1, Skill1Lv = 1, Grade = 0, Csn = 1, Tid = 130201 });
|
||||
// response.Characters.Add(new NetUserCharacterDefaultData() { Lv = 1, Skill1Lv = 1, Grade = 0, Csn = 1, Tid = 130201 });
|
||||
|
||||
}
|
||||
user.GachaTutorialPlayCount++;
|
||||
}
|
||||
|
||||
JsonDb.Save();
|
||||
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace nksrv.LobbyServer.Msgs.Outpost
|
||||
var response = new ResGetOutpostData
|
||||
{
|
||||
OutpostBattleLevel = new NetOutpostBattleLevel() { Level = 1 },
|
||||
CommanderBgm = new NetUserJukeboxDataV2(),
|
||||
CommanderBgm = new NetUserJukeboxDataV2() { CommandBgm = new() { Type = NetJukeboxBgmType.JukeboxTableId, JukeboxTableId = 3012 } },
|
||||
BattleTime = 864000000000, Jukebox = new(), MaxBattleTime = 864000000000
|
||||
};
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace nksrv.LobbyServer.Msgs.User
|
||||
}
|
||||
response.MaxGachaCount = 10;
|
||||
// todo tutorial playcount of gacha
|
||||
response.TutorialGachaPlayCount = user.GachaTutorialPlayCount;
|
||||
|
||||
WriteData(response);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user