mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-13 07:24:52 +01:00
push changes
This commit is contained in:
@@ -66,6 +66,7 @@ namespace EpinelPS.StaticInfo
|
|||||||
public readonly Dictionary<string, MidasProductRecord> mediasProductTable = [];
|
public readonly Dictionary<string, MidasProductRecord> mediasProductTable = [];
|
||||||
public readonly Dictionary<int, TowerRecord> towerTable = [];
|
public readonly Dictionary<int, TowerRecord> towerTable = [];
|
||||||
public readonly Dictionary<int, TriggerRecord> TriggerTable = [];
|
public readonly Dictionary<int, TriggerRecord> TriggerTable = [];
|
||||||
|
public readonly Dictionary<int, InfracoreRecord> InfracoreTable = [];
|
||||||
|
|
||||||
|
|
||||||
public byte[] Sha256Hash;
|
public byte[] Sha256Hash;
|
||||||
@@ -507,6 +508,12 @@ namespace EpinelPS.StaticInfo
|
|||||||
{
|
{
|
||||||
this.TriggerTable.Add(obj.id, obj);
|
this.TriggerTable.Add(obj.id, obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var infracoreTable = await LoadZip<InfracoreTable>("InfraCoreGradeTable.json", progress);
|
||||||
|
foreach (var obj in infracoreTable.records)
|
||||||
|
{
|
||||||
|
this.InfracoreTable.Add(obj.id, obj);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public MainQuestCompletionRecord? GetMainQuestForStageClearCondition(int stage)
|
public MainQuestCompletionRecord? GetMainQuestForStageClearCondition(int stage)
|
||||||
|
|||||||
@@ -673,4 +673,20 @@
|
|||||||
{
|
{
|
||||||
public List<TriggerRecord> records = [];
|
public List<TriggerRecord> records = [];
|
||||||
}
|
}
|
||||||
|
public class InfracoreFunction
|
||||||
|
{
|
||||||
|
public int function;
|
||||||
|
}
|
||||||
|
public class InfracoreRecord
|
||||||
|
{
|
||||||
|
public int id;
|
||||||
|
public int grade;
|
||||||
|
public int reard_id;
|
||||||
|
public int infra_core_exp;
|
||||||
|
public List<InfracoreFunction> function_list = [];
|
||||||
|
}
|
||||||
|
public class InfracoreTable
|
||||||
|
{
|
||||||
|
public List<InfracoreRecord> records = [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using EpinelPS.Database;
|
||||||
using EpinelPS.StaticInfo;
|
using EpinelPS.StaticInfo;
|
||||||
using EpinelPS.Utils;
|
using EpinelPS.Utils;
|
||||||
|
|
||||||
@@ -30,6 +31,8 @@ namespace EpinelPS.LobbyServer.Mission
|
|||||||
|
|
||||||
response.Reward = NetUtils.MergeRewards(rewards, user);
|
response.Reward = NetUtils.MergeRewards(rewards, user);
|
||||||
|
|
||||||
|
JsonDb.Save();
|
||||||
|
|
||||||
await WriteDataAsync(response);
|
await WriteDataAsync(response);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user