mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-23 05:53:34 +00:00
Sending rewards works fully
This commit is contained in:
parent
1c43d7f38c
commit
1c116fb0c4
@ -208,6 +208,8 @@ void CharacterComponent::HandleLevelUp()
|
||||
{
|
||||
return;
|
||||
}
|
||||
// Tell the client we beginning to send level rewards.
|
||||
if(rewardingItem) GameMessages::NotifyLevelRewards(parent->GetObjectID(), parent->GetSystemAddress(), m_Level, rewardingItem);
|
||||
|
||||
for (auto* reward : rewards)
|
||||
{
|
||||
@ -232,7 +234,8 @@ void CharacterComponent::HandleLevelUp()
|
||||
break;
|
||||
}
|
||||
}
|
||||
GameMessages::NotifyLevelRewards(parent->GetObjectID(), parent->GetSystemAddress(), m_Level, rewardingItem);
|
||||
// Tell the client we have finished sending level rewards.
|
||||
if(rewardingItem) GameMessages::NotifyLevelRewards(parent->GetObjectID(), parent->GetSystemAddress(), m_Level, !rewardingItem);
|
||||
}
|
||||
|
||||
void CharacterComponent::SetGMLevel(int gmlevel) {
|
||||
|
Loading…
Reference in New Issue
Block a user