riot logs

This commit is contained in:
hydrant
2021-06-05 01:38:14 +02:00
parent e4a58f4ead
commit c5879911a2

View File

@@ -826,6 +826,10 @@ namespace ReallifeGamemode.Server.Events
int itemIdToGive = currentModel == 3 ? cannabisItem.Id : cannabisSeedsItem.Id;
int amountToGive = currentModel == 3 ? new Random().Next(4, 10) + 1 : 1;
IItem itemToGive = currentModel == 3 ? (IItem)cannabisItem : cannabisSeedsItem;
logger.LogInformation("Cop {0} put the item {1} ({2}, amount: {3}) in the riot", player.Name, itemToGive.Name, itemToGive.Id, amountToGive);
player.SendNotification($"Du hast {(currentModel == 3 ? "das Cannabis" : "die Samen")} in den Riot geladen");
InventoryManager.AddItemToVehicleInventory(riotVehicle, itemIdToGive, amountToGive);