Fix Namespaces along with CJs PR, Added more types

This commit is contained in:
CWX
2025-01-06 15:51:27 +00:00
parent bf4f9837d9
commit b95ccad7c6
97 changed files with 2815 additions and 295 deletions
+44 -3
View File
@@ -1,6 +1,47 @@
namespace Types.Models.Spt.Config;
using System.Text.Json.Serialization;
public class ItemConfig
namespace Core.Models.Spt.Config;
public class ItemConfig : BaseConfig
{
[JsonPropertyName("kind")]
public string Kind { get; set; } = "spt-item";
/** Items that should be globally blacklisted */
[JsonPropertyName("blacklist")]
public List<string> Blacklist { get; set; }
/** Items that should not be lootable from any location */
[JsonPropertyName("lootableItemBlacklist")]
public List<string> LootableItemBlacklist { get; set; }
/** items that should not be given as rewards */
[JsonPropertyName("rewardItemBlacklist")]
public List<string> RewardItemBlacklist { get; set; }
/** Item base types that should not be given as rewards */
[JsonPropertyName("rewardItemTypeBlacklist")]
public List<string> RewardItemTypeBlacklist { get; set; }
/** Items that can only be found on bosses */
[JsonPropertyName("bossItems")]
public List<string> BossItems { get; set; }
[JsonPropertyName("handbookPriceOverride")]
public Dictionary<string, HandbookPriceOverride> HandbookPriceOverride { get; set; }
/** Presets to add to the globals.json `ItemPresets` dictionary on server start */
[JsonPropertyName("customItemGlobalPresets")]
public List<Preset> CustomItemGlobalPresets { get; set; }
}
public class HandbookPriceOverride
{
/** Price in roubles */
[JsonPropertyName("price")]
public decimal Price { get; set; }
/** NOT parentId from items.json, but handbook.json */
[JsonPropertyName("parentId")]
public string ParentId { get; set; }
}