mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-06-29 18:07:45 +00:00
Second revision of quest_parse
This commit is contained in:
parent
40743986c3
commit
265201b5d7
1 changed files with 17 additions and 13 deletions
|
@ -229,11 +229,13 @@ createScript( std::shared_ptr< Sapphire::Data::Quest >& pQuestData, std::set< st
|
|||
if ( pQuestData->itemReward1.at( ca ) != 0 )
|
||||
{
|
||||
reward += std::to_string( pQuestData->itemReward1.at( ca ) );
|
||||
if ( ca+1 != 5 )
|
||||
{
|
||||
if ( pQuestData->itemReward1.at( ca + 1 ) != 0)
|
||||
{
|
||||
reward += ", ";
|
||||
}
|
||||
else break;
|
||||
}
|
||||
cc++;
|
||||
}
|
||||
}
|
||||
|
@ -249,11 +251,13 @@ createScript( std::shared_ptr< Sapphire::Data::Quest >& pQuestData, std::set< st
|
|||
if ( pQuestData->itemCountReward1.at( ca ) != 0 )
|
||||
{
|
||||
reward += std::to_string( pQuestData->itemCountReward1.at( ca ) );
|
||||
if ( ca + 1 != 5 )
|
||||
{
|
||||
if ( pQuestData->itemCountReward1.at( ca + 1 ) != 0 )
|
||||
{
|
||||
reward += ", ";
|
||||
}
|
||||
else break;
|
||||
}
|
||||
cc++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue