using SPT.Common.Http; using SPT.Custom.BTR.Models; using Comfort.Common; using EFT; using EFT.InventoryLogic; using Newtonsoft.Json; using System; namespace SPT.Custom.BTR.Utils { public static class BTRUtil { public static readonly string BTRTraderId = Profile.TraderInfo.BTR_TRADER_ID; public static readonly string BTRMachineGunWeaponTplId = "657857faeff4c850222dff1b"; // BTR PKTM machine gun public static readonly string BTRMachineGunAmmoTplId = "5e023d34e8a400319a28ed44"; // 7.62x54mmR BT /// /// Used to create an instance of the item in-raid. /// public static Item CreateItem(string tplId) { var id = Guid.NewGuid().ToString("N").Substring(0, 24); return Singleton.Instance.CreateItem(id, tplId, null); } public static BTRConfigModel GetConfigFromServer() { string json = RequestHandler.GetJson("/singleplayer/btr/config"); return JsonConvert.DeserializeObject(json); } } }