28a434a622
Changed Comments to adhere to xml standard in all Models. Added missing comments.
105 lines
2.1 KiB
C#
105 lines
2.1 KiB
C#
using System.Text.Json.Serialization;
|
|
using Core.Models.Eft.Common;
|
|
|
|
namespace Core.Models.Spt.Config;
|
|
|
|
public record ItemConfig : BaseConfig
|
|
{
|
|
[JsonPropertyName("kind")]
|
|
public string Kind
|
|
{
|
|
get;
|
|
set;
|
|
} = "spt-item";
|
|
|
|
/// <summary>
|
|
/// Items that should be globally blacklisted
|
|
/// </summary>
|
|
[JsonPropertyName("blacklist")]
|
|
public HashSet<string> Blacklist
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Items that should not be lootable from any location
|
|
/// </summary>
|
|
[JsonPropertyName("lootableItemBlacklist")]
|
|
public HashSet<string> LootableItemBlacklist
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// items that should not be given as rewards
|
|
/// </summary>
|
|
[JsonPropertyName("rewardItemBlacklist")]
|
|
public HashSet<string> RewardItemBlacklist
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Item base types that should not be given as rewards
|
|
/// </summary>
|
|
[JsonPropertyName("rewardItemTypeBlacklist")]
|
|
public HashSet<string> RewardItemTypeBlacklist
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Items that can only be found on bosses
|
|
/// </summary>
|
|
[JsonPropertyName("bossItems")]
|
|
public HashSet<string> BossItems
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[JsonPropertyName("handbookPriceOverride")]
|
|
public Dictionary<string, HandbookPriceOverride> HandbookPriceOverride
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Presets to add to the globals.json `ItemPresets` dictionary on server start
|
|
/// </summary>
|
|
[JsonPropertyName("customItemGlobalPresets")]
|
|
public List<Preset> CustomItemGlobalPresets
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
}
|
|
|
|
public record HandbookPriceOverride
|
|
{
|
|
/// <summary>
|
|
/// Price in roubles
|
|
/// </summary>
|
|
[JsonPropertyName("price")]
|
|
public double Price
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// NOT parentId from items.json, but handbook.json
|
|
/// </summary>
|
|
[JsonPropertyName("parentId")]
|
|
public string ParentId
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
}
|