forked from PGR/ascnet
1
0
Fork 0

add notify item when stage reward

This commit is contained in:
rfi 2023-11-24 20:06:14 +07:00
parent 1f4b0b660f
commit 556477d312
1 changed files with 4 additions and 1 deletions

View File

@ -227,7 +227,10 @@ namespace AscNet.GameServer.Handlers
// TODO: Implement other types. Other types are behaving weirdly // TODO: Implement other types. Other types are behaving weirdly
if (rewardType == RewardType.Item) if (rewardType == RewardType.Item)
{ {
session.inventory.Do(rewardGood.TemplateId, rewardGood.Count); NotifyItemDataList notifyItemData = new();
notifyItemData.ItemDataList.Add(session.inventory.Do(rewardGood.TemplateId, rewardGood.Count));
session.SendPush(notifyItemData);
rewards.Add(new() rewards.Add(new()
{ {
Id = rewardGood.Id, Id = rewardGood.Id,