mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-28 07:07:45 +00:00
Fix ExdData for Patch 6.31
This commit is contained in:
parent
84eb23cdfb
commit
41423b431a
3 changed files with 4124 additions and 664 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1070,8 +1070,8 @@ bool Sapphire::Entity::Player::giveQuestRewards( uint32_t questId, uint32_t opti
|
||||||
|
|
||||||
exp = questInfo->expFactor;
|
exp = questInfo->expFactor;
|
||||||
|
|
||||||
auto rewardItemCount = questInfo->itemReward0.size();
|
auto rewardItemCount = questInfo->itemReward.size();
|
||||||
uint16_t optionalItemCount = static_cast< uint16_t >( questInfo->itemReward1.size() );
|
uint16_t optionalItemCount = static_cast< uint16_t >( questInfo->optionalItemReward.size() );
|
||||||
|
|
||||||
uint32_t gilReward = questInfo->gilReward;
|
uint32_t gilReward = questInfo->gilReward;
|
||||||
|
|
||||||
|
@ -1083,10 +1083,10 @@ bool Sapphire::Entity::Player::giveQuestRewards( uint32_t questId, uint32_t opti
|
||||||
{
|
{
|
||||||
for( uint32_t i = 0; i < rewardItemCount; i++ )
|
for( uint32_t i = 0; i < rewardItemCount; i++ )
|
||||||
{
|
{
|
||||||
auto itemId = questInfo->itemReward0.at( i );
|
auto itemId = questInfo->itemReward.at( i );
|
||||||
if( itemId > 0 )
|
if( itemId > 0 )
|
||||||
{
|
{
|
||||||
addItem( itemId, questInfo->itemCountReward0.at( i ), false, false, true, true );
|
addItem( itemId, questInfo->itemCountReward.at( i ), false, false, true, true );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1095,10 +1095,10 @@ bool Sapphire::Entity::Player::giveQuestRewards( uint32_t questId, uint32_t opti
|
||||||
{
|
{
|
||||||
for( uint32_t i = 0; i < optionalItemCount; i++ )
|
for( uint32_t i = 0; i < optionalItemCount; i++ )
|
||||||
{
|
{
|
||||||
auto itemId = questInfo->itemReward1.at( i );
|
auto itemId = questInfo->optionalItemReward.at( i );
|
||||||
if( itemId > 0 && itemId == optionalChoice )
|
if( itemId > 0 && itemId == optionalChoice )
|
||||||
{
|
{
|
||||||
addItem( itemId, questInfo->itemCountReward1.at( i ), false, false, true, true );
|
addItem( itemId, questInfo->optionalItemCountReward.at( i ), false, false, true, true );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue