add notify item when stage reward
This commit is contained in:
parent
1f4b0b660f
commit
556477d312
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue