mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-01-22 12:47:01 +00:00
Updated variable assignment
Changed the variable assignment to be a ternary operator.
This commit is contained in:
parent
74013e07a8
commit
f74cc9cb10
@ -482,10 +482,7 @@ void Mission::YieldRewards() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (info->reward_currency > 0) {
|
if (info->reward_currency > 0) {
|
||||||
int32_t lootSource = LOOT_SOURCE_ACHIEVEMENT;
|
int32_t lootSource = info->isMission ? LOOT_SOURCE_MISSION : LOOT_SOURCE_ACHIEVEMENT;
|
||||||
if(info->isMission) {
|
|
||||||
lootSource = LOOT_SOURCE_MISSION;
|
|
||||||
}
|
|
||||||
character->SetCoins(character->GetCoins() + info->reward_currency, lootSource);
|
character->SetCoins(character->GetCoins() + info->reward_currency, lootSource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user