push changes

This commit is contained in:
Mikhail
2024-12-26 16:06:38 -05:00
parent df9b52565e
commit 2f37fa3a3f
3 changed files with 26 additions and 0 deletions

View File

@@ -66,6 +66,7 @@ namespace EpinelPS.StaticInfo
public readonly Dictionary<string, MidasProductRecord> mediasProductTable = [];
public readonly Dictionary<int, TowerRecord> towerTable = [];
public readonly Dictionary<int, TriggerRecord> TriggerTable = [];
public readonly Dictionary<int, InfracoreRecord> InfracoreTable = [];
public byte[] Sha256Hash;
@@ -507,6 +508,12 @@ namespace EpinelPS.StaticInfo
{
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)

View File

@@ -673,4 +673,20 @@
{
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 = [];
}
}

View File

@@ -1,3 +1,4 @@
using EpinelPS.Database;
using EpinelPS.StaticInfo;
using EpinelPS.Utils;
@@ -30,6 +31,8 @@ namespace EpinelPS.LobbyServer.Mission
response.Reward = NetUtils.MergeRewards(rewards, user);
JsonDb.Save();
await WriteDataAsync(response);
}
}