Small fixes (#455)

* Handle weapon crates as MongoId

* Unset required on _tpl in Hideout
This commit is contained in:
Jesse
2025-07-06 13:13:31 +02:00
committed by GitHub
parent 0b18b7e4ba
commit 03ec62d17d
2 changed files with 2 additions and 2 deletions
@@ -357,7 +357,7 @@ public class InventoryController(
var foundInRaid = openedItem.Upd?.SpawnedInSession;
var rewards = new List<List<Item>>();
var unlockedWeaponCrates = new HashSet<string>
var unlockedWeaponCrates = new HashSet<MongoId>
{
ItemTpl.RANDOMLOOTCONTAINER_ARENA_WEAPONCRATE_VIOLET_OPEN,
ItemTpl.RANDOMLOOTCONTAINER_ARENA_WEAPONCRATE_BLUE_OPEN,
@@ -65,7 +65,7 @@ public record HideoutItem
public MongoId Id { get; set; }
[JsonPropertyName("_tpl")]
public required MongoId Template { get; set; }
public MongoId Template { get; set; }
[JsonPropertyName("upd")]
public Upd? Upd { get; set; }