Per-stage EXP for chars, but overflow cause Kuro dumb
This commit is contained in:
parent
ea62c7a9c8
commit
9240b1d676
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue