mirror of
https://github.com/TheJordanDev/PEAK-JordanMod.git
synced 2026-10-17 08:05:25 +02:00
Added : Module / Events / Patches Structure and System
This commit is contained in:
17
src/JordanMod/patches/ExamplePatch.cs
Normal file
17
src/JordanMod/patches/ExamplePatch.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using HarmonyLib;
|
||||
|
||||
namespace JordanMod.Patches;
|
||||
|
||||
public class ExamplePatch
|
||||
{
|
||||
[HarmonyPatch(typeof(Item), "Start")]
|
||||
[HarmonyPostfix]
|
||||
static void PostItemStartFix(Item __instance)
|
||||
{
|
||||
if (__instance.UIData.itemName.ToLower() == "passport")
|
||||
{
|
||||
__instance.UIData.canDrop = true;
|
||||
__instance.UIData.canThrow = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user