Skip to content

Commit

Permalink
SOme smol updoots
Browse files Browse the repository at this point in the history
  • Loading branch information
joker-119 committed Apr 12, 2022
1 parent abf026a commit 0302363
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 114 deletions.
96 changes: 16 additions & 80 deletions CustomItems/Configs/Items.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,145 +22,81 @@ public class Items
/// <summary>
/// Gets the list of emp greanades.
/// </summary>
[Description("The list of EMP grenades.")]
public List<EmpGrenade> EmpGrenades { get; private set; } = new List<EmpGrenade>
{
new EmpGrenade { Type = ItemType.GrenadeFlash },
};
public EmpGrenade EmpGrenade { get; set; }

/// <summary>
/// Gets the list of grenade launchers.
/// </summary>
[Description("The list of grenade launchers.")]
public List<GrenadeLauncher> GrenadeLaunchers { get; private set; } = new List<GrenadeLauncher>
{
new GrenadeLauncher { Type = ItemType.GunLogicer },
};
public GrenadeLauncher GrenadeLauncher { get; set; }

/// <summary>
/// Gets the list of implosion grenades.
/// </summary>
[Description("The list of implosion grenades.")]
public List<ImplosionGrenade> ImplosionGrenades { get; private set; } = new List<ImplosionGrenade>
{
new ImplosionGrenade { Type = ItemType.GrenadeHE },
};
public ImplosionGrenade ImplosionGrenade { get; set; }

/// <summary>
/// Gets the list of lethal injections.
/// </summary>
[Description("The list of lethal injections.")]
public List<LethalInjection> LethalInjections { get; private set; } = new List<LethalInjection>
{
new LethalInjection { Type = ItemType.Adrenaline },
};
public LethalInjection LethalInjection { get; set; }

/// <summary>
/// Gets the list of lucky coins.
/// </summary>
[Description("The list of lucky coins.")]
public List<LuckyCoin> LuckyCoins { get; private set; } = new List<LuckyCoin>
{
new LuckyCoin { Type = ItemType.Coin },
};
public LuckyCoin LuckyCoin { get; set; }

/// <summary>
/// Gets the list of mediGuns.
/// </summary>
[Description("The list of mediGuns.")]
public List<MediGun> MediGuns { get; private set; } = new List<MediGun>
{
new MediGun { Type = ItemType.GunFSP9 },
};
public MediGun MediGun { get; set; }

/// <summary>
/// Gets the list of Scp127s.
/// </summary>
[Description("The list of Scp127s.")]
public List<Scp127> Scp127s { get; private set; } = new List<Scp127>
{
new Scp127 { Type = ItemType.GunCOM18 },
};
public Scp127 Scp127 { get; set; }

/// <summary>
/// Gets the list of Scp1499s.
/// </summary>
[Description("The list of Scp1499s.")]
public List<Scp1499> Scp1499s { get; private set; } = new List<Scp1499>
{
new Scp1499 { Type = ItemType.SCP268 },
};
public Scp1499 Scp1499 { get; set; }

/// <summary>
/// Gets the list of sniper rifles.
/// </summary>
[Description("The list of sniper rifles.")]
public List<SniperRifle> SniperRifle { get; private set; } = new List<SniperRifle>
{
new SniperRifle { Type = ItemType.GunE11SR },
};
public SniperRifle SniperRifle { get; set; }

/// <summary>
/// Gets the list of tranquilizer guns.
/// </summary>
[Description("The list of tranquilizer guns.")]
public List<TranquilizerGun> TranquilizerGun { get; private set; } = new List<TranquilizerGun>
{
new TranquilizerGun { Type = ItemType.GunCOM18 },
};
public TranquilizerGun TranquilizerGun { get; set; }

/// <summary>
/// Gets the list of Scp714s.
/// </summary>
[Description("The list of Scp714s.")]
public List<Scp714> Scp714s { get; private set; } = new List<Scp714>
{
new Scp714 { Type = ItemType.Coin },
};
public Scp714 Scp714 { get; set; }

/// <summary>
/// Gets the list of Anti-Memetic Pills.
/// </summary>
[Description("The list of Anti-Memetic Pills.")]
public List<AntiMemeticPills> AntiMemeticPills { get; private set; } = new List<AntiMemeticPills>
{
new AntiMemeticPills { Type = ItemType.SCP500 },
};
public AntiMemeticPills AntiMemeticPills { get; set; }

/// <summary>
/// Gets the list of DeflectorSheilds.
/// </summary>
[Description("The list of DeflectorSheilds.")]
public List<DeflectorShield> DeflectorSheilds { get; private set; } = new List<DeflectorShield>
{
new DeflectorShield(),
};
public DeflectorShield DeflectorShield { get; set; }

/// <summary>
/// Gets the list of <see cref="Scp2818"/>s.
/// </summary>
[Description("The list of SCP-2818s.")]
public List<Scp2818> Scp2818s { get; private set; } = new List<Scp2818>
{
new Scp2818 { Type = ItemType.GunE11SR, },
};
public Scp2818 Scp2818 { get; set; }

/// <summary>
/// Gets the list of C4Charges.
/// </summary>
[Description("The list of C4Charges.")]
public List<C4Charge> C4Charges { get; private set; } = new List<C4Charge>
{
new C4Charge { Type = ItemType.GrenadeHE },
};
public C4Charge C4Charge { get; set; }

/// <summary>
/// Gets the list of AutoGuns.
/// </summary>
[Description("The list of AutoGuns.")]
public List<AutoGun> AutoGuns { get; private set; } = new List<AutoGun>
{
new AutoGun { Type = ItemType.GunCOM15 },
};
public AutoGun AutoGun { get; set; }
}
}
35 changes: 1 addition & 34 deletions CustomItems/CustomItems.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -75,22 +57,7 @@ public override void OnEnabled()
/// <inheritdoc/>
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;

Expand Down

0 comments on commit 0302363

Please sign in to comment.