Implemented sourceType for SendSetCurrency

Implemented sourceType for the function SendSetCurrency.
This commit is contained in:
EmosewaMC
2021-12-21 23:26:54 -08:00
parent 0531365cb5
commit 23e269940b
10 changed files with 24 additions and 26 deletions

View File

@@ -1326,7 +1326,7 @@ void SlashCommandHandler::HandleChatCommand(const std::u16string& command, Entit
}
auto* ch = entity->GetCharacter();
ch->SetCoins(ch->GetCoins() + money);
ch->SetCoins(ch->GetCoins() + money, 14);
}
if ((chatCommand == "setcurrency") && args.size() == 1 && entity->GetGMLevel() >= GAME_MASTER_LEVEL_DEVELOPER) {
@@ -1339,7 +1339,7 @@ void SlashCommandHandler::HandleChatCommand(const std::u16string& command, Entit
}
auto* ch = entity->GetCharacter();
ch->SetCoins(money);
ch->SetCoins(money, 14);
}
// Allow for this on even while not a GM, as it sometimes toggles incorrrectly.