Skip to content

Commit

Permalink
Stylecop can literally eat my ass
Browse files Browse the repository at this point in the history
  • Loading branch information
joker-119 committed Mar 2, 2021
1 parent e2a849f commit c22f4d1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
11 changes: 5 additions & 6 deletions CustomItems/CustomItems.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ namespace CustomItems
using System;
using System.Linq;
using Events;
using Exiled.API.Enums;
using Exiled.API.Features;
using Exiled.CustomItems.API;
using HarmonyLib;
Expand All @@ -19,6 +18,11 @@ namespace CustomItems
/// <inheritdoc />
public class CustomItems : Plugin<Config>
{
/// <summary>
/// Random Number Generator.
/// </summary>
public Random Rng = new Random();

private static readonly CustomItems InstanceValue = new CustomItems();

private Harmony harmonyInstance;
Expand All @@ -36,11 +40,6 @@ private CustomItems()
/// </summary>
public static CustomItems Instance => InstanceValue;

/// <summary>
/// Random Number Generator.
/// </summary>
public Random Rng = new Random();

/// <inheritdoc/>
public override Version RequiredExiledVersion { get; } = new Version(2, 4, 1);

Expand Down
15 changes: 11 additions & 4 deletions CustomItems/Events/PlayerHandler.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
using System;
using System.Collections.Generic;
using Exiled.CustomItems.API.Features;
using MEC;
// -----------------------------------------------------------------------
// <copyright file="PlayerHandler.cs" company="Galaxy199 and iopietro">
// Copyright (c) Galaxy199 and iopietro. All rights reserved.
// Licensed under the CC BY-SA 3.0 license.
// </copyright>
// -----------------------------------------------------------------------

namespace CustomItems.Events
{
using System;
using System.Collections.Generic;
using Exiled.CustomItems.API.Features;
using MEC;
using static CustomItems;

/// <summary>
Expand All @@ -15,6 +21,7 @@ public class PlayerHandler
/// <summary>
/// AddingClass handler.
/// </summary>
/// <param name="ev"><see cref="AddClassEventArgs"/>.</param>
public void OnAddingSubclass(AddClassEventArgs ev)
{
if (!Instance.Config.SubclassItems.TryGetValue(ev.Subclass.Name, out List<Tuple<CustomItem, float>> customItems))
Expand Down

0 comments on commit c22f4d1

Please sign in to comment.