Files
SPT-Server-Build/Libraries/SPTarkov.Server.Core/Models/Enums/Money.cs
T
Jesse 54f0d0779c Convert TemplateItem to MongoId (#436)
* Convert TemplateItem to MongoId

* Push new extensions

* Handle null mongoid's being passed to regex

* Handle null strings, fixes item events

* Updated loot generation to work with new property `composedKey`

Fixed typo in `SlotId`

* Fix missing method after merge

* Remove duplicately named MongoIDExtensions?

* Fixed location loot generation to handle impending loot json changes

* Updated location JSONs with new properties (excluding lighthouse loose loot)

* Fixed build issue with ItemTplGenerator

* use correct handing for new mongo ids

* Added helper method to improve readability

---------

Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
2025-07-02 10:14:04 +01:00

21 lines
688 B
C#

using System.Text.Json.Serialization;
using SPTarkov.Server.Core.Models.Common;
namespace SPTarkov.Server.Core.Models.Enums;
public record Money
{
[JsonExtensionData]
public Dictionary<string, object>? ExtensionData { get; set; }
public static readonly MongoId ROUBLES = new MongoId("5449016a4bdc2d6f028b456f");
public static readonly MongoId EUROS = new MongoId("569668774bdc2da2298b4568");
public static readonly MongoId DOLLARS = new MongoId("5696686a4bdc2da3298b456a");
public static readonly MongoId GP = new MongoId("5d235b4d86f7742e017bc88a");
public static HashSet<string> GetMoneyTpls()
{
return [ROUBLES, EUROS, DOLLARS, GP];
}
}