mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-10 02:08:20 +00:00
Consolidated if statement
Changed default variable to achievement and removed the else.
This commit is contained in:
parent
e84811bdce
commit
e95af79c8a
@ -481,12 +481,10 @@ void Mission::YieldRewards() {
|
||||
inventoryComponent->AddItem(pair.first, count);
|
||||
}
|
||||
|
||||
int32_t lootSource = LOOT_SOURCE_NONE;
|
||||
int32_t lootSource = LOOT_SOURCE_ACHIEVEMENT;
|
||||
if (info->reward_currency > 0) {
|
||||
if(info->isMission) {
|
||||
lootSource = LOOT_SOURCE_MISSION;
|
||||
} else {
|
||||
lootSource = LOOT_SOURCE_ACHIEVEMENT;
|
||||
}
|
||||
character->SetCoins(character->GetCoins() + info->reward_currency, lootSource);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user