diff --git a/CustomItems/Configs/Items.cs b/CustomItems/Configs/Items.cs
index 9843c0f..710aac5 100644
--- a/CustomItems/Configs/Items.cs
+++ b/CustomItems/Configs/Items.cs
@@ -22,145 +22,81 @@ public class Items
///
/// Gets the list of emp greanades.
///
- [Description("The list of EMP grenades.")]
- public List EmpGrenades { get; private set; } = new List
- {
- new EmpGrenade { Type = ItemType.GrenadeFlash },
- };
+ public EmpGrenade EmpGrenade { get; set; }
///
/// Gets the list of grenade launchers.
///
- [Description("The list of grenade launchers.")]
- public List GrenadeLaunchers { get; private set; } = new List
- {
- new GrenadeLauncher { Type = ItemType.GunLogicer },
- };
+ public GrenadeLauncher GrenadeLauncher { get; set; }
///
/// Gets the list of implosion grenades.
///
- [Description("The list of implosion grenades.")]
- public List ImplosionGrenades { get; private set; } = new List
- {
- new ImplosionGrenade { Type = ItemType.GrenadeHE },
- };
+ public ImplosionGrenade ImplosionGrenade { get; set; }
///
/// Gets the list of lethal injections.
///
- [Description("The list of lethal injections.")]
- public List LethalInjections { get; private set; } = new List
- {
- new LethalInjection { Type = ItemType.Adrenaline },
- };
+ public LethalInjection LethalInjection { get; set; }
///
/// Gets the list of lucky coins.
///
- [Description("The list of lucky coins.")]
- public List LuckyCoins { get; private set; } = new List
- {
- new LuckyCoin { Type = ItemType.Coin },
- };
+ public LuckyCoin LuckyCoin { get; set; }
///
/// Gets the list of mediGuns.
///
- [Description("The list of mediGuns.")]
- public List MediGuns { get; private set; } = new List
- {
- new MediGun { Type = ItemType.GunFSP9 },
- };
+ public MediGun MediGun { get; set; }
///
/// Gets the list of Scp127s.
///
- [Description("The list of Scp127s.")]
- public List Scp127s { get; private set; } = new List
- {
- new Scp127 { Type = ItemType.GunCOM18 },
- };
+ public Scp127 Scp127 { get; set; }
///
/// Gets the list of Scp1499s.
///
- [Description("The list of Scp1499s.")]
- public List Scp1499s { get; private set; } = new List
- {
- new Scp1499 { Type = ItemType.SCP268 },
- };
+ public Scp1499 Scp1499 { get; set; }
///
/// Gets the list of sniper rifles.
///
- [Description("The list of sniper rifles.")]
- public List SniperRifle { get; private set; } = new List
- {
- new SniperRifle { Type = ItemType.GunE11SR },
- };
+ public SniperRifle SniperRifle { get; set; }
///
/// Gets the list of tranquilizer guns.
///
- [Description("The list of tranquilizer guns.")]
- public List TranquilizerGun { get; private set; } = new List
- {
- new TranquilizerGun { Type = ItemType.GunCOM18 },
- };
+ public TranquilizerGun TranquilizerGun { get; set; }
///
/// Gets the list of Scp714s.
///
- [Description("The list of Scp714s.")]
- public List Scp714s { get; private set; } = new List
- {
- new Scp714 { Type = ItemType.Coin },
- };
+ public Scp714 Scp714 { get; set; }
///
/// Gets the list of Anti-Memetic Pills.
///
- [Description("The list of Anti-Memetic Pills.")]
- public List AntiMemeticPills { get; private set; } = new List
- {
- new AntiMemeticPills { Type = ItemType.SCP500 },
- };
+ public AntiMemeticPills AntiMemeticPills { get; set; }
///
/// Gets the list of DeflectorSheilds.
///
- [Description("The list of DeflectorSheilds.")]
- public List DeflectorSheilds { get; private set; } = new List
- {
- new DeflectorShield(),
- };
+ public DeflectorShield DeflectorShield { get; set; }
///
/// Gets the list of s.
///
- [Description("The list of SCP-2818s.")]
- public List Scp2818s { get; private set; } = new List
- {
- new Scp2818 { Type = ItemType.GunE11SR, },
- };
+ public Scp2818 Scp2818 { get; set; }
///
/// Gets the list of C4Charges.
///
- [Description("The list of C4Charges.")]
- public List C4Charges { get; private set; } = new List
- {
- new C4Charge { Type = ItemType.GrenadeHE },
- };
+ public C4Charge C4Charge { get; set; }
///
/// Gets the list of AutoGuns.
///
- [Description("The list of AutoGuns.")]
- public List AutoGuns { get; private set; } = new List
- {
- new AutoGun { Type = ItemType.GunCOM15 },
- };
+ public AutoGun AutoGun { get; set; }
}
}
diff --git a/CustomItems/CustomItems.cs b/CustomItems/CustomItems.cs
index d0b7527..d615275 100644
--- a/CustomItems/CustomItems.cs
+++ b/CustomItems/CustomItems.cs
@@ -46,24 +46,6 @@ public override void OnEnabled()
harmonyInstance.PatchAll();
Config.LoadItems();
- /*
- Config.ItemConfigs.Scp127s.Register();
- Config.ItemConfigs.Scp714s.Register();
- Config.ItemConfigs.Scp1499s.Register();
- Config.ItemConfigs.Scp2818s.Register();
- Config.ItemConfigs.AutoGuns.Register();
- Config.ItemConfigs.C4Charges.Register();
- Config.ItemConfigs.DeflectorSheilds.Register();
- Config.ItemConfigs.EmpGrenades.Register();
- Config.ItemConfigs.GrenadeLaunchers.Register();
- Config.ItemConfigs.ImplosionGrenades.Register();
- Config.ItemConfigs.LethalInjections.Register();
- Config.ItemConfigs.LuckyCoins.Register();
- Config.ItemConfigs.MediGuns.Register();
- Config.ItemConfigs.SniperRifle.Register();
- Config.ItemConfigs.TranquilizerGun.Register();
- Config.ItemConfigs.AntiMemeticPills.Register();
- */
Log.Debug("Registering items..", Config.IsDebugEnabled);
CustomItem.RegisterItems(overrideClass: Config.ItemConfigs);
@@ -75,22 +57,7 @@ public override void OnEnabled()
///
public override void OnDisabled()
{
- Config.ItemConfigs.Scp127s.Unregister();
- Config.ItemConfigs.Scp714s.Unregister();
- Config.ItemConfigs.Scp1499s.Unregister();
- Config.ItemConfigs.Scp2818s.Unregister();
- Config.ItemConfigs.AutoGuns.Unregister();
- Config.ItemConfigs.C4Charges.Unregister();
- Config.ItemConfigs.DeflectorSheilds.Unregister();
- Config.ItemConfigs.EmpGrenades.Unregister();
- Config.ItemConfigs.GrenadeLaunchers.Unregister();
- Config.ItemConfigs.ImplosionGrenades.Unregister();
- Config.ItemConfigs.LethalInjections.Unregister();
- Config.ItemConfigs.LuckyCoins.Unregister();
- Config.ItemConfigs.MediGuns.Unregister();
- Config.ItemConfigs.SniperRifle.Unregister();
- Config.ItemConfigs.TranquilizerGun.Unregister();
- Config.ItemConfigs.AntiMemeticPills.Unregister();
+ CustomItem.UnregisterItems();
Server.ReloadedConfigs -= serverHandler.OnReloadingConfigs;