mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 14:57:44 +00:00
Readded the isHq code in PlayerQuest as suggested by collett
This commit is contained in:
parent
ae06d6e7c9
commit
6f186d8126
1 changed files with 9 additions and 1 deletions
|
@ -1091,6 +1091,14 @@ bool Sapphire::Entity::Player::giveQuestRewards( uint32_t questId, uint32_t opti
|
|||
}
|
||||
}
|
||||
|
||||
auto isHq = false;
|
||||
if (optionalChoice > 1000000)
|
||||
{
|
||||
optionalChoice -= 1000000;
|
||||
isHq = true;
|
||||
}
|
||||
|
||||
|
||||
if( optionalItemCount > 0 )
|
||||
{
|
||||
for( uint32_t i = 0; i < optionalItemCount; i++ )
|
||||
|
@ -1098,7 +1106,7 @@ bool Sapphire::Entity::Player::giveQuestRewards( uint32_t questId, uint32_t opti
|
|||
auto itemId = questInfo->optionalItemReward.at( i );
|
||||
if( itemId > 0 && itemId == optionalChoice )
|
||||
{
|
||||
addItem( itemId, questInfo->optionalItemCountReward.at( i ), false, false, true, true );
|
||||
addItem( itemId, questInfo->optionalItemCountReward.at( i ), isHq, false, true, true );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue