mirror of
https://github.com/Squareville/TestEventServer.git
synced 2026-04-28 20:35:09 -05:00
Updated variable assignment
Changed the variable assignment to be a ternary operator.
This commit is contained in:
@@ -482,10 +482,7 @@ void Mission::YieldRewards() {
|
||||
}
|
||||
|
||||
if (info->reward_currency > 0) {
|
||||
int32_t lootSource = LOOT_SOURCE_ACHIEVEMENT;
|
||||
if(info->isMission) {
|
||||
lootSource = LOOT_SOURCE_MISSION;
|
||||
}
|
||||
int32_t lootSource = info->isMission ? LOOT_SOURCE_MISSION : LOOT_SOURCE_ACHIEVEMENT;
|
||||
character->SetCoins(character->GetCoins() + info->reward_currency, lootSource);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user