Skip to content

Commit

Permalink
Cleaned up code
Browse files Browse the repository at this point in the history
  • Loading branch information
chudders1231 committed Jun 26, 2023
1 parent d0626ca commit 3efb3b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 0 additions & 4 deletions ConfigOptions.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using Nautilus.Options;
using BepInEx;
using BepInEx.Configuration;
using System.IO;
using Nautilus.Handlers;

namespace CureBlade
{
Expand Down
4 changes: 3 additions & 1 deletion Patches/CreatureDeathPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ internal static void OnKillAsyncPrefix(CreatureDeath __instance)
[HarmonyPrefix]
internal static void OnTakeDamagePrefix( CreatureDeath __instance, DamageInfo damageInfo)
{
__instance.gameObject.GetComponent<CustomCreatureData>().lastDamageType = damageInfo.type;
var customCreatureData = __instance.gameObject.GetComponent<CustomCreatureData>();

customCreatureData.lastDamageType = damageInfo.type;
}

public static IEnumerator SpawnCuredFish( GameObject origFish, TechType curedFish)
Expand Down
3 changes: 1 addition & 2 deletions Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using BepInEx;
using CureBlade.Items.Equipment;
using BepInEx.Configuration;
using System.IO;

namespace CureBlade;

Expand Down Expand Up @@ -32,7 +31,7 @@ private void Awake()
harmony.PatchAll();

// Run additional functions prior to registering items
SetupBepinexConfigs();
//SetupBepinexConfigs();

// Initialise custom prefabs
InitializePrefabs();
Expand Down

0 comments on commit 3efb3b6

Please sign in to comment.