mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-15 16:34:40 +01:00
fix gacha system giving already existing characters
This commit is contained in:
@@ -123,7 +123,11 @@ namespace EpinelPS.Database
|
|||||||
public NetJukeboxLocation Location;
|
public NetJukeboxLocation Location;
|
||||||
public NetJukeboxBgmType Type;
|
public NetJukeboxBgmType Type;
|
||||||
public int TableId;
|
public int TableId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public class MogMinigameInfo
|
||||||
|
{
|
||||||
|
public List<string> CompletedScenarios = [];
|
||||||
}
|
}
|
||||||
public class User
|
public class User
|
||||||
{
|
{
|
||||||
@@ -192,11 +196,11 @@ namespace EpinelPS.Database
|
|||||||
|
|
||||||
public JukeBoxSetting LobbyMusic = new() { Location = NetJukeboxLocation.NetJukeboxLocationLobby, TableId = 2, Type = NetJukeboxBgmType.NetJukeboxBgmTypeJukeboxTableId };
|
public JukeBoxSetting LobbyMusic = new() { Location = NetJukeboxLocation.NetJukeboxLocationLobby, TableId = 2, Type = NetJukeboxBgmType.NetJukeboxBgmTypeJukeboxTableId };
|
||||||
public JukeBoxSetting CommanderMusic = new() { Location = NetJukeboxLocation.NetJukeboxLocationCommanderRoom, TableId = 5, Type = NetJukeboxBgmType.NetJukeboxBgmTypeJukeboxTableId };
|
public JukeBoxSetting CommanderMusic = new() { Location = NetJukeboxLocation.NetJukeboxLocationCommanderRoom, TableId = 5, Type = NetJukeboxBgmType.NetJukeboxBgmTypeJukeboxTableId };
|
||||||
|
public OutpostBuffs OutpostBuffs = new();
|
||||||
|
|
||||||
// Event data
|
// Event data
|
||||||
public Dictionary<int, EventData> EventInfo = new();
|
public Dictionary<int, EventData> EventInfo = new();
|
||||||
|
public MogMinigameInfo MogInfo = new();
|
||||||
public OutpostBuffs OutpostBuffs = new();
|
|
||||||
|
|
||||||
public void SetQuest(int tid, bool recievedReward)
|
public void SetQuest(int tid, bool recievedReward)
|
||||||
{
|
{
|
||||||
@@ -291,7 +295,7 @@ namespace EpinelPS.Database
|
|||||||
|
|
||||||
public bool HasCharacter(int c)
|
public bool HasCharacter(int c)
|
||||||
{
|
{
|
||||||
return Characters.Any(x => x.Tid == c);
|
return Characters.Any(x => c <= x.Tid && x.Tid <= c + 12);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Character? GetCharacterBySerialNumber(long value)
|
public Character? GetCharacterBySerialNumber(long value)
|
||||||
|
|||||||
Reference in New Issue
Block a user