using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Core.Logging.Interpolation;
using BepInEx.Logging;
using BepInEx.Unity.IL2CPP;
using Bloodstone.API;
using Bloody.Core;
using Bloody.Core.API.v1;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using ProjectM;
using ProjectM.Network;
using Stunlock.Core;
using Unity.Collections;
using Unity.Entities;
using VampireCommandFramework;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
[assembly: AssemblyCompany("NightbaneShardEffect")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("Adds a special effect to player that holds a Soul Shard")]
[assembly: AssemblyFileVersion("0.1.8.0")]
[assembly: AssemblyInformationalVersion("0.1.8+1.Branch.main.Sha.4435243bd013dc988e1f142db6f6cf5c889d1a5e.2f66e313506f16ad18eea1d4db865eefe36d5436")]
[assembly: AssemblyProduct("NightbaneShardEffect")]
[assembly: AssemblyTitle("NightbaneShardEffect")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.1.8.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
[BepInPlugin("gg.deca.Bloodstone", "Bloodstone", "0.1.6")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[Reloadable]
public class Plugin : BasePlugin
{
private Harmony _harmony;
public override void Load()
{
//IL_000d: Unknown result type (might be due to invalid IL or missing references)
//IL_0013: Expected O, but got Unknown
//IL_0060: Unknown result type (might be due to invalid IL or missing references)
//IL_006a: Expected O, but got Unknown
ManualLogSource log = ((BasePlugin)this).Log;
bool flag = default(bool);
BepInExInfoLogInterpolatedStringHandler val = new BepInExInfoLogInterpolatedStringHandler(27, 2, ref flag);
if (flag)
{
((BepInExLogInterpolatedStringHandler)val).AppendLiteral("Plugin ");
((BepInExLogInterpolatedStringHandler)val).AppendFormatted<string>("gg.deca.Bloodstone");
((BepInExLogInterpolatedStringHandler)val).AppendLiteral(" version ");
((BepInExLogInterpolatedStringHandler)val).AppendFormatted<string>("0.1.6");
((BepInExLogInterpolatedStringHandler)val).AppendLiteral(" is loaded!");
}
log.LogInfo(val);
_harmony = new Harmony("gg.deca.Bloodstone");
_harmony.PatchAll(Assembly.GetExecutingAssembly());
CommandRegistry.RegisterAll();
}
public override bool Unload()
{
CommandRegistry.UnregisterAssembly();
Harmony harmony = _harmony;
if (harmony != null)
{
harmony.UnpatchSelf();
}
return true;
}
}
[HarmonyPatch]
internal class ShardHolderEffect
{
public static bool BuffPlayer(Entity character, Entity user, PrefabGUID buff, int duration = -1, bool persistsThroughDeath = false)
{
//IL_000e: Unknown result type (might be due to invalid IL or missing references)
//IL_0016: Unknown result type (might be due to invalid IL or missing references)
//IL_0017: Unknown result type (might be due to invalid IL or missing references)
//IL_001c: Unknown result type (might be due to invalid IL or missing references)
//IL_001d: Unknown result type (might be due to invalid IL or missing references)
//IL_0020: Unknown result type (might be due to invalid IL or missing references)
//IL_0028: Unknown result type (might be due to invalid IL or missing references)
//IL_0029: Unknown result type (might be due to invalid IL or missing references)
//IL_0030: Unknown result type (might be due to invalid IL or missing references)
//IL_0031: Unknown result type (might be due to invalid IL or missing references)
//IL_0036: Unknown result type (might be due to invalid IL or missing references)
//IL_0037: Unknown result type (might be due to invalid IL or missing references)
//IL_003e: Unknown result type (might be due to invalid IL or missing references)
//IL_0043: Unknown result type (might be due to invalid IL or missing references)
//IL_0044: Unknown result type (might be due to invalid IL or missing references)
//IL_0045: Unknown result type (might be due to invalid IL or missing references)
//IL_005f: Unknown result type (might be due to invalid IL or missing references)
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_006d: Unknown result type (might be due to invalid IL or missing references)
//IL_0072: Unknown result type (might be due to invalid IL or missing references)
//IL_0073: Unknown result type (might be due to invalid IL or missing references)
//IL_0074: Unknown result type (might be due to invalid IL or missing references)
//IL_008a: Unknown result type (might be due to invalid IL or missing references)
//IL_00a1: Unknown result type (might be due to invalid IL or missing references)
//IL_0098: Unknown result type (might be due to invalid IL or missing references)
//IL_00af: Unknown result type (might be due to invalid IL or missing references)
//IL_00c1: Unknown result type (might be due to invalid IL or missing references)
//IL_00c9: Unknown result type (might be due to invalid IL or missing references)
//IL_00e0: Unknown result type (might be due to invalid IL or missing references)
//IL_00d7: Unknown result type (might be due to invalid IL or missing references)
//IL_00ee: Unknown result type (might be due to invalid IL or missing references)
//IL_010d: Unknown result type (might be due to invalid IL or missing references)
//IL_0146: Unknown result type (might be due to invalid IL or missing references)
//IL_011b: Unknown result type (might be due to invalid IL or missing references)
//IL_011d: Unknown result type (might be due to invalid IL or missing references)
//IL_0122: Unknown result type (might be due to invalid IL or missing references)
//IL_012d: Unknown result type (might be due to invalid IL or missing references)
//IL_012f: Unknown result type (might be due to invalid IL or missing references)
//IL_017c: Unknown result type (might be due to invalid IL or missing references)
//IL_0154: Unknown result type (might be due to invalid IL or missing references)
//IL_0156: Unknown result type (might be due to invalid IL or missing references)
//IL_015b: Unknown result type (might be due to invalid IL or missing references)
//IL_016c: Unknown result type (might be due to invalid IL or missing references)
//IL_0171: Unknown result type (might be due to invalid IL or missing references)
//IL_0173: Unknown result type (might be due to invalid IL or missing references)
//IL_0193: Unknown result type (might be due to invalid IL or missing references)
//IL_018a: Unknown result type (might be due to invalid IL or missing references)
//IL_01a1: Unknown result type (might be due to invalid IL or missing references)
DebugEventsSystem debugEventsSystem = Core.SystemsCore.DebugEventsSystem;
ApplyBuffDebugEvent val = default(ApplyBuffDebugEvent);
val.BuffPrefabGUID = buff;
ApplyBuffDebugEvent val2 = val;
FromCharacter val3 = default(FromCharacter);
val3.User = user;
val3.Character = character;
FromCharacter val4 = val3;
Entity val5 = default(Entity);
if (!BuffUtility.TryGetBuff(Core.SystemsCore.EntityManager, character, PrefabIdentifier.op_Implicit(buff), ref val5))
{
debugEventsSystem.ApplyBuff(val4, val2);
if (BuffUtility.TryGetBuff(Core.SystemsCore.EntityManager, character, PrefabIdentifier.op_Implicit(buff), ref val5))
{
if (ECSExtensions.Has<CreateGameplayEventsOnSpawn>(val5))
{
ECSExtensions.Remove<CreateGameplayEventsOnSpawn>(val5);
}
if (ECSExtensions.Has<GameplayEventListeners>(val5))
{
ECSExtensions.Remove<GameplayEventListeners>(val5);
}
if (persistsThroughDeath)
{
ECSExtensions.Add<Buff_Persists_Through_Death>(val5);
if (ECSExtensions.Has<RemoveBuffOnGameplayEvent>(val5))
{
ECSExtensions.Remove<RemoveBuffOnGameplayEvent>(val5);
}
if (ECSExtensions.Has<RemoveBuffOnGameplayEventEntry>(val5))
{
ECSExtensions.Remove<RemoveBuffOnGameplayEventEntry>(val5);
}
}
if (duration > 0 && duration != -1)
{
if (ECSExtensions.Has<LifeTime>(val5))
{
LifeTime val6 = ECSExtensions.Read<LifeTime>(val5);
val6.Duration = duration;
ECSExtensions.Write<LifeTime>(val5, val6);
}
}
else if (duration == 0)
{
if (ECSExtensions.Has<LifeTime>(val5))
{
LifeTime val7 = ECSExtensions.Read<LifeTime>(val5);
val7.Duration = -1f;
val7.EndAction = (LifeTimeEndAction)0;
ECSExtensions.Write<LifeTime>(val5, val7);
}
if (ECSExtensions.Has<RemoveBuffOnGameplayEvent>(val5))
{
ECSExtensions.Remove<RemoveBuffOnGameplayEvent>(val5);
}
if (ECSExtensions.Has<RemoveBuffOnGameplayEventEntry>(val5))
{
ECSExtensions.Remove<RemoveBuffOnGameplayEventEntry>(val5);
}
}
return true;
}
return false;
}
return false;
}
[HarmonyPrefix]
[HarmonyPatch(typeof(ModifyUnitStatBuffSystem_Spawn), "OnUpdate")]
private static void UnitStatBuffSpawn(ModifyUnitStatBuffSystem_Spawn __instance)
{
//IL_0002: Unknown result type (might be due to invalid IL or missing references)
//IL_0007: Unknown result type (might be due to invalid IL or missing references)
//IL_0009: Unknown result type (might be due to invalid IL or missing references)
//IL_000e: Unknown result type (might be due to invalid IL or missing references)
//IL_0012: Unknown result type (might be due to invalid IL or missing references)
//IL_0017: Unknown result type (might be due to invalid IL or missing references)
//IL_001c: Unknown result type (might be due to invalid IL or missing references)
//IL_0020: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002d: Unknown result type (might be due to invalid IL or missing references)
//IL_0032: Unknown result type (might be due to invalid IL or missing references)
//IL_0035: Unknown result type (might be due to invalid IL or missing references)
//IL_0037: Unknown result type (might be due to invalid IL or missing references)
//IL_0041: Unknown result type (might be due to invalid IL or missing references)
//IL_00a6: Unknown result type (might be due to invalid IL or missing references)
//IL_00a8: Unknown result type (might be due to invalid IL or missing references)
//IL_00b2: Unknown result type (might be due to invalid IL or missing references)
//IL_0054: Unknown result type (might be due to invalid IL or missing references)
//IL_0060: Unknown result type (might be due to invalid IL or missing references)
//IL_0062: Unknown result type (might be due to invalid IL or missing references)
//IL_0071: Unknown result type (might be due to invalid IL or missing references)
//IL_0073: Unknown result type (might be due to invalid IL or missing references)
//IL_0080: Unknown result type (might be due to invalid IL or missing references)
//IL_0082: Unknown result type (might be due to invalid IL or missing references)
//IL_0087: Unknown result type (might be due to invalid IL or missing references)
//IL_008c: Unknown result type (might be due to invalid IL or missing references)
//IL_008e: Unknown result type (might be due to invalid IL or missing references)
//IL_0098: Unknown result type (might be due to invalid IL or missing references)
//IL_0117: Unknown result type (might be due to invalid IL or missing references)
//IL_0119: Unknown result type (might be due to invalid IL or missing references)
//IL_0123: Unknown result type (might be due to invalid IL or missing references)
//IL_00c5: Unknown result type (might be due to invalid IL or missing references)
//IL_00d1: Unknown result type (might be due to invalid IL or missing references)
//IL_00d3: Unknown result type (might be due to invalid IL or missing references)
//IL_00e2: Unknown result type (might be due to invalid IL or missing references)
//IL_00e4: Unknown result type (might be due to invalid IL or missing references)
//IL_00f1: Unknown result type (might be due to invalid IL or missing references)
//IL_00f3: Unknown result type (might be due to invalid IL or missing references)
//IL_00f8: Unknown result type (might be due to invalid IL or missing references)
//IL_00fd: Unknown result type (might be due to invalid IL or missing references)
//IL_00ff: Unknown result type (might be due to invalid IL or missing references)
//IL_0109: Unknown result type (might be due to invalid IL or missing references)
//IL_0188: Unknown result type (might be due to invalid IL or missing references)
//IL_018a: Unknown result type (might be due to invalid IL or missing references)
//IL_0194: Unknown result type (might be due to invalid IL or missing references)
//IL_0136: Unknown result type (might be due to invalid IL or missing references)
//IL_0142: Unknown result type (might be due to invalid IL or missing references)
//IL_0144: Unknown result type (might be due to invalid IL or missing references)
//IL_0153: Unknown result type (might be due to invalid IL or missing references)
//IL_0155: Unknown result type (might be due to invalid IL or missing references)
//IL_0162: Unknown result type (might be due to invalid IL or missing references)
//IL_0164: Unknown result type (might be due to invalid IL or missing references)
//IL_0169: Unknown result type (might be due to invalid IL or missing references)
//IL_016e: Unknown result type (might be due to invalid IL or missing references)
//IL_0170: Unknown result type (might be due to invalid IL or missing references)
//IL_017a: Unknown result type (might be due to invalid IL or missing references)
//IL_01a7: Unknown result type (might be due to invalid IL or missing references)
//IL_01b3: Unknown result type (might be due to invalid IL or missing references)
//IL_01b5: Unknown result type (might be due to invalid IL or missing references)
//IL_01c4: Unknown result type (might be due to invalid IL or missing references)
//IL_01c6: Unknown result type (might be due to invalid IL or missing references)
//IL_01d3: Unknown result type (might be due to invalid IL or missing references)
//IL_01d5: Unknown result type (might be due to invalid IL or missing references)
//IL_01da: Unknown result type (might be due to invalid IL or missing references)
//IL_01df: Unknown result type (might be due to invalid IL or missing references)
//IL_01e1: Unknown result type (might be due to invalid IL or missing references)
//IL_01eb: Unknown result type (might be due to invalid IL or missing references)
EntityManager entityManager = ((ComponentSystemBase)__instance).EntityManager;
EntityQuery _query_1735840491_ = __instance.__query_1735840491_0;
Enumerator<Entity> enumerator = ((EntityQuery)(ref _query_1735840491_)).ToEntityArray(AllocatorHandle.op_Implicit((Allocator)2)).GetEnumerator();
EntityOwner val = default(EntityOwner);
PlayerCharacter val2 = default(PlayerCharacter);
User val3 = default(User);
EntityOwner val4 = default(EntityOwner);
PlayerCharacter val5 = default(PlayerCharacter);
User val6 = default(User);
EntityOwner val7 = default(EntityOwner);
PlayerCharacter val8 = default(PlayerCharacter);
User val9 = default(User);
EntityOwner val10 = default(EntityOwner);
PlayerCharacter val11 = default(PlayerCharacter);
User val12 = default(User);
while (enumerator.MoveNext())
{
Entity current = enumerator.Current;
if (ECSExtensions.Read<PrefabGUID>(current) == new PrefabGUID(329820611))
{
((EntityManager)(ref entityManager)).TryGetComponentData<EntityOwner>(current, ref val);
((EntityManager)(ref entityManager)).TryGetComponentData<PlayerCharacter>(EntityOwner.op_Implicit(val), ref val2);
((EntityManager)(ref entityManager)).TryGetComponentData<User>(val2.UserEntity, ref val3);
BuffPlayer(val3.LocalCharacter._Entity, val2.UserEntity, new PrefabGUID(1688799287), 0);
}
if (ECSExtensions.Read<PrefabGUID>(current) == new PrefabGUID(1002452390))
{
((EntityManager)(ref entityManager)).TryGetComponentData<EntityOwner>(current, ref val4);
((EntityManager)(ref entityManager)).TryGetComponentData<PlayerCharacter>(EntityOwner.op_Implicit(val4), ref val5);
((EntityManager)(ref entityManager)).TryGetComponentData<User>(val5.UserEntity, ref val6);
BuffPlayer(val6.LocalCharacter._Entity, val5.UserEntity, new PrefabGUID(1670636401), 0);
}
if (ECSExtensions.Read<PrefabGUID>(current) == new PrefabGUID(-504120321))
{
((EntityManager)(ref entityManager)).TryGetComponentData<EntityOwner>(current, ref val7);
((EntityManager)(ref entityManager)).TryGetComponentData<PlayerCharacter>(EntityOwner.op_Implicit(val7), ref val8);
((EntityManager)(ref entityManager)).TryGetComponentData<User>(val8.UserEntity, ref val9);
BuffPlayer(val9.LocalCharacter._Entity, val8.UserEntity, new PrefabGUID(662242066), 0);
}
if (ECSExtensions.Read<PrefabGUID>(current) == new PrefabGUID(403228886))
{
((EntityManager)(ref entityManager)).TryGetComponentData<EntityOwner>(current, ref val10);
((EntityManager)(ref entityManager)).TryGetComponentData<PlayerCharacter>(EntityOwner.op_Implicit(val10), ref val11);
((EntityManager)(ref entityManager)).TryGetComponentData<User>(val11.UserEntity, ref val12);
BuffPlayer(val12.LocalCharacter._Entity, val11.UserEntity, new PrefabGUID(-1209669293), 0);
}
}
}
[HarmonyPrefix]
[HarmonyPatch(typeof(ModifyUnitStatBuffSystem_Destroy), "OnUpdate")]
private static void UnitStatBuffDestroy(ModifyUnitStatBuffSystem_Destroy __instance)
{
//IL_0002: Unknown result type (might be due to invalid IL or missing references)
//IL_0007: Unknown result type (might be due to invalid IL or missing references)
//IL_0009: Unknown result type (might be due to invalid IL or missing references)
//IL_000e: Unknown result type (might be due to invalid IL or missing references)
//IL_0012: Unknown result type (might be due to invalid IL or missing references)
//IL_0017: Unknown result type (might be due to invalid IL or missing references)
//IL_001c: Unknown result type (might be due to invalid IL or missing references)
//IL_0020: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002d: Unknown result type (might be due to invalid IL or missing references)
//IL_0032: Unknown result type (might be due to invalid IL or missing references)
//IL_0035: Unknown result type (might be due to invalid IL or missing references)
//IL_0037: Unknown result type (might be due to invalid IL or missing references)
//IL_0041: Unknown result type (might be due to invalid IL or missing references)
//IL_009d: Unknown result type (might be due to invalid IL or missing references)
//IL_009f: Unknown result type (might be due to invalid IL or missing references)
//IL_00a9: Unknown result type (might be due to invalid IL or missing references)
//IL_0054: Unknown result type (might be due to invalid IL or missing references)
//IL_0060: Unknown result type (might be due to invalid IL or missing references)
//IL_0062: Unknown result type (might be due to invalid IL or missing references)
//IL_0071: Unknown result type (might be due to invalid IL or missing references)
//IL_0073: Unknown result type (might be due to invalid IL or missing references)
//IL_0080: Unknown result type (might be due to invalid IL or missing references)
//IL_0082: Unknown result type (might be due to invalid IL or missing references)
//IL_0087: Unknown result type (might be due to invalid IL or missing references)
//IL_0091: Unknown result type (might be due to invalid IL or missing references)
//IL_0105: Unknown result type (might be due to invalid IL or missing references)
//IL_0107: Unknown result type (might be due to invalid IL or missing references)
//IL_0111: Unknown result type (might be due to invalid IL or missing references)
//IL_00bc: Unknown result type (might be due to invalid IL or missing references)
//IL_00c8: Unknown result type (might be due to invalid IL or missing references)
//IL_00ca: Unknown result type (might be due to invalid IL or missing references)
//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
//IL_00db: Unknown result type (might be due to invalid IL or missing references)
//IL_00e8: Unknown result type (might be due to invalid IL or missing references)
//IL_00ea: Unknown result type (might be due to invalid IL or missing references)
//IL_00ef: Unknown result type (might be due to invalid IL or missing references)
//IL_00f9: Unknown result type (might be due to invalid IL or missing references)
//IL_016d: Unknown result type (might be due to invalid IL or missing references)
//IL_016f: Unknown result type (might be due to invalid IL or missing references)
//IL_0179: Unknown result type (might be due to invalid IL or missing references)
//IL_0124: Unknown result type (might be due to invalid IL or missing references)
//IL_0130: Unknown result type (might be due to invalid IL or missing references)
//IL_0132: Unknown result type (might be due to invalid IL or missing references)
//IL_0141: Unknown result type (might be due to invalid IL or missing references)
//IL_0143: Unknown result type (might be due to invalid IL or missing references)
//IL_0150: Unknown result type (might be due to invalid IL or missing references)
//IL_0152: Unknown result type (might be due to invalid IL or missing references)
//IL_0157: Unknown result type (might be due to invalid IL or missing references)
//IL_0161: Unknown result type (might be due to invalid IL or missing references)
//IL_018c: Unknown result type (might be due to invalid IL or missing references)
//IL_0198: Unknown result type (might be due to invalid IL or missing references)
//IL_019a: Unknown result type (might be due to invalid IL or missing references)
//IL_01a9: Unknown result type (might be due to invalid IL or missing references)
//IL_01ab: Unknown result type (might be due to invalid IL or missing references)
//IL_01b8: Unknown result type (might be due to invalid IL or missing references)
//IL_01ba: Unknown result type (might be due to invalid IL or missing references)
//IL_01bf: Unknown result type (might be due to invalid IL or missing references)
//IL_01c9: Unknown result type (might be due to invalid IL or missing references)
EntityManager entityManager = ((ComponentSystemBase)__instance).EntityManager;
EntityQuery _query_1735840524_ = __instance.__query_1735840524_0;
Enumerator<Entity> enumerator = ((EntityQuery)(ref _query_1735840524_)).ToEntityArray(AllocatorHandle.op_Implicit((Allocator)2)).GetEnumerator();
EntityOwner val = default(EntityOwner);
PlayerCharacter val2 = default(PlayerCharacter);
User val3 = default(User);
EntityOwner val4 = default(EntityOwner);
PlayerCharacter val5 = default(PlayerCharacter);
User val6 = default(User);
EntityOwner val7 = default(EntityOwner);
PlayerCharacter val8 = default(PlayerCharacter);
User val9 = default(User);
EntityOwner val10 = default(EntityOwner);
PlayerCharacter val11 = default(PlayerCharacter);
User val12 = default(User);
while (enumerator.MoveNext())
{
Entity current = enumerator.Current;
if (ECSExtensions.Read<PrefabGUID>(current) == new PrefabGUID(329820611))
{
((EntityManager)(ref entityManager)).TryGetComponentData<EntityOwner>(current, ref val);
((EntityManager)(ref entityManager)).TryGetComponentData<PlayerCharacter>(EntityOwner.op_Implicit(val), ref val2);
((EntityManager)(ref entityManager)).TryGetComponentData<User>(val2.UserEntity, ref val3);
BuffSystem.Unbuff(val3.LocalCharacter._Entity, new PrefabGUID(1688799287));
}
if (ECSExtensions.Read<PrefabGUID>(current) == new PrefabGUID(1002452390))
{
((EntityManager)(ref entityManager)).TryGetComponentData<EntityOwner>(current, ref val4);
((EntityManager)(ref entityManager)).TryGetComponentData<PlayerCharacter>(EntityOwner.op_Implicit(val4), ref val5);
((EntityManager)(ref entityManager)).TryGetComponentData<User>(val5.UserEntity, ref val6);
BuffSystem.Unbuff(val6.LocalCharacter._Entity, new PrefabGUID(1670636401));
}
if (ECSExtensions.Read<PrefabGUID>(current) == new PrefabGUID(-504120321))
{
((EntityManager)(ref entityManager)).TryGetComponentData<EntityOwner>(current, ref val7);
((EntityManager)(ref entityManager)).TryGetComponentData<PlayerCharacter>(EntityOwner.op_Implicit(val7), ref val8);
((EntityManager)(ref entityManager)).TryGetComponentData<User>(val8.UserEntity, ref val9);
BuffSystem.Unbuff(val9.LocalCharacter._Entity, new PrefabGUID(662242066));
}
if (ECSExtensions.Read<PrefabGUID>(current) == new PrefabGUID(403228886))
{
((EntityManager)(ref entityManager)).TryGetComponentData<EntityOwner>(current, ref val10);
((EntityManager)(ref entityManager)).TryGetComponentData<PlayerCharacter>(EntityOwner.op_Implicit(val10), ref val11);
((EntityManager)(ref entityManager)).TryGetComponentData<User>(val11.UserEntity, ref val12);
BuffSystem.Unbuff(val12.LocalCharacter._Entity, new PrefabGUID(-1209669293));
}
}
}
}
namespace NightbaneShardEffect
{
public static class MyPluginInfo
{
public const string PLUGIN_GUID = "NightbaneShardEffect";
public const string PLUGIN_NAME = "NightbaneShardEffect";
public const string PLUGIN_VERSION = "1.0.0";
}
}