Per-stage EXP for chars, but overflow cause Kuro dumb

This commit is contained in:
Kyle Belanger 2023-12-02 07:50:52 -05:00
parent ea62c7a9c8
commit 9240b1d676
1 changed files with 14 additions and 0 deletions

View File

@ -270,6 +270,20 @@ namespace AscNet.GameServer.Handlers
session.SendPush(notifyItemData); session.SendPush(notifyItemData);
session.ExpSanityCheck(); session.ExpSanityCheck();
if (stageTable.CardExp > 0)
{
Dictionary<int, long> team = session.player.TeamGroups[(int)session.player.PlayerData.CurrTeamId].TeamData;
NotifyCharacterDataList charData = new();
foreach (KeyValuePair<int, long> member in team)
{
session.character.AddCharacterExp((int)member.Value, stageTable.CardExp ?? 0);
charData.CharacterDataList.Add(session.character.Characters.Find(c => c.Id == member.Value));
}
session.SendPush(charData);
}
StageDatum stageData = new() StageDatum stageData = new()
{ {
StageId = req.Result.StageId, StageId = req.Result.StageId,