Decompiled source of ElderStaffMod v2.3.0
plugins\ElderStaffMod\ElderStaffMod.dll
Decompiled 21 hours ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using ElderStaffMod; using ElderStaffMod.NetcodePatcher; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using Unity.Netcode; using UnityEngine; using UnityEngine.Networking; using UnityEngine.Rendering; using UnityEngine.UI; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("ElderStaffMod")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyDescription("Lethal Company Mod: Elder Staff (Avada Kedavra Stab)")] [assembly: AssemblyFileVersion("2.2.0.0")] [assembly: AssemblyInformationalVersion("2.2.0+478b8528957d65bde28afccb713cec30de910c89")] [assembly: AssemblyProduct("ElderStaffMod")] [assembly: AssemblyTitle("ElderStaffMod")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("2.2.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] [module: NetcodePatchedAssembly] internal class <Module> { static <Module>() { } } 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; } } } public class ElderStaffItem : GrabbableObject { [CompilerGenerated] private sealed class <ActivationSequence>d__16 : IEnumerator<object>, IEnumerator, IDisposable { private int <>1__state; private object <>2__current; public ElderStaffItem <>4__this; private Camera <cam>5__1; private Vector3 <origin>5__2; private Vector3 <direction>5__3; private float <maxDistance>5__4; private Vector3 <targetPoint>5__5; private RaycastHit <hit>5__6; private bool <didHit>5__7; private int <beamLayerMask>5__8; private Vector3 <beamStart>5__9; private Vector3 <hitNormal>5__10; private Exception <ex>5__11; private int <roll>5__12; private Vector3 <playerPos>5__13; private float <randomAngle>5__14; private Vector3 <randomDir>5__15; private float <spawnDist>5__16; private Vector3 <spawnPos>5__17; private ulong <targetPlayerId>5__18; private Exception <ex>5__19; object IEnumerator<object>.Current { [DebuggerHidden] get { return <>2__current; } } object IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <ActivationSequence>d__16(int <>1__state) { this.<>1__state = <>1__state; } [DebuggerHidden] void IDisposable.Dispose() { <cam>5__1 = null; <ex>5__11 = null; <ex>5__19 = null; <>1__state = -2; } private bool MoveNext() { //IL_049d: 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_003c: Expected O, but got Unknown //IL_02de: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00da: Unknown result type (might be due to invalid IL or missing references) //IL_00df: 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_00fa: 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_0096: Unknown result type (might be due to invalid IL or missing references) //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_039c: Unknown result type (might be due to invalid IL or missing references) //IL_03a1: Unknown result type (might be due to invalid IL or missing references) //IL_03e3: Unknown result type (might be due to invalid IL or missing references) //IL_03e8: Unknown result type (might be due to invalid IL or missing references) //IL_0404: Unknown result type (might be due to invalid IL or missing references) //IL_040a: Unknown result type (might be due to invalid IL or missing references) //IL_0415: Unknown result type (might be due to invalid IL or missing references) //IL_041a: Unknown result type (might be due to invalid IL or missing references) //IL_041f: Unknown result type (might be due to invalid IL or missing references) //IL_0429: Unknown result type (might be due to invalid IL or missing references) //IL_042e: Unknown result type (might be due to invalid IL or missing references) //IL_0433: Unknown result type (might be due to invalid IL or missing references) //IL_011c: Unknown result type (might be due to invalid IL or missing references) //IL_0135: Unknown result type (might be due to invalid IL or missing references) //IL_0140: Unknown result type (might be due to invalid IL or missing references) //IL_0456: Unknown result type (might be due to invalid IL or missing references) //IL_01be: 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_01cf: Unknown result type (might be due to invalid IL or missing references) //IL_01d4: Unknown result type (might be due to invalid IL or missing references) //IL_01d9: Unknown result type (might be due to invalid IL or missing references) //IL_0168: 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_01ec: Unknown result type (might be due to invalid IL or missing references) //IL_01f2: Unknown result type (might be due to invalid IL or missing references) //IL_01fc: Unknown result type (might be due to invalid IL or missing references) //IL_0201: Unknown result type (might be due to invalid IL or missing references) //IL_0206: Unknown result type (might be due to invalid IL or missing references) //IL_0221: Unknown result type (might be due to invalid IL or missing references) //IL_0226: Unknown result type (might be due to invalid IL or missing references) //IL_0214: Unknown result type (might be due to invalid IL or missing references) //IL_0245: Unknown result type (might be due to invalid IL or missing references) //IL_0233: Unknown result type (might be due to invalid IL or missing references) //IL_0238: Unknown result type (might be due to invalid IL or missing references) //IL_024a: Unknown result type (might be due to invalid IL or missing references) //IL_0256: Unknown result type (might be due to invalid IL or missing references) //IL_025c: Unknown result type (might be due to invalid IL or missing references) //IL_0268: Unknown result type (might be due to invalid IL or missing references) //IL_0281: Unknown result type (might be due to invalid IL or missing references) //IL_0287: Unknown result type (might be due to invalid IL or missing references) //IL_0293: Unknown result type (might be due to invalid IL or missing references) switch (<>1__state) { default: return false; case 0: <>1__state = -1; <>4__this.PlayActivationSound(); <>2__current = (object)new WaitForSeconds(2f); <>1__state = 1; return true; case 1: <>1__state = -1; if ((Object)(object)((GrabbableObject)<>4__this).playerHeldBy == (Object)null) { return false; } <cam>5__1 = GetPlayerCamera((Component)(object)((GrabbableObject)<>4__this).playerHeldBy); if ((Object)(object)<cam>5__1 != (Object)null) { <origin>5__2 = ((Component)<cam>5__1).transform.position; <direction>5__3 = ((Component)<cam>5__1).transform.forward; } else { <origin>5__2 = ((Component)((GrabbableObject)<>4__this).playerHeldBy).transform.position + Vector3.up * 1.5f; <direction>5__3 = ((Component)((GrabbableObject)<>4__this).playerHeldBy).transform.forward; } <maxDistance>5__4 = <>4__this.rangeMeters; <hit>5__6 = default(RaycastHit); <didHit>5__7 = false; <beamLayerMask>5__8 = 526601; if (Physics.SphereCast(<origin>5__2, 0.5f, <direction>5__3, ref <hit>5__6, <maxDistance>5__4, <beamLayerMask>5__8)) { <targetPoint>5__5 = ((RaycastHit)(ref <hit>5__6)).point; <didHit>5__7 = true; Debug.Log((object)$"[ElderStaffItem] TREFFER: {((Object)((Component)((RaycastHit)(ref <hit>5__6)).collider).gameObject).name} (Layer {((Component)((RaycastHit)(ref <hit>5__6)).collider).gameObject.layer})"); } else { <targetPoint>5__5 = <origin>5__2 + <direction>5__3 * <maxDistance>5__4; Debug.Log((object)"[ElderStaffItem] KEIN TREFFER - Strahl ging ins Leere."); } <beamStart>5__9 = <origin>5__2 + <direction>5__3 * 0.5f; <hitNormal>5__10 = ((!<didHit>5__7) ? Vector3.zero : ((((RaycastHit)(ref <hit>5__6)).normal != Vector3.zero) ? ((RaycastHit)(ref <hit>5__6)).normal : (-<direction>5__3))); <>4__this.CreateAllVFX(<beamStart>5__9, <targetPoint>5__5, <didHit>5__7, <hitNormal>5__10, <cam>5__1); try { <>4__this.ActivateVFXServerRpc(<beamStart>5__9, <targetPoint>5__5, <didHit>5__7, <hitNormal>5__10); } catch (Exception ex) { <ex>5__11 = ex; Debug.LogWarning((object)("[ElderStaffItem] VFX-ServerRpc fehlgeschlagen: " + <ex>5__11.Message)); } if (<didHit>5__7) { <>4__this.TryApplyDamageOrStun(<hit>5__6, (Component)(object)((GrabbableObject)<>4__this).playerHeldBy); } if (<>4__this.dementorChancePercent > 0 && !<>4__this._dementorActive) { <roll>5__12 = Random.Range(0, 100); Debug.Log((object)$"[ElderStaffItem] Dementor-Wurf: {<roll>5__12} (Chance: {<>4__this.dementorChancePercent}%)"); if (<roll>5__12 < <>4__this.dementorChancePercent) { Debug.Log((object)"[ElderStaffItem] DEMENTOR SPAWNT! (Netzwerk-Sync)"); <>4__this._dementorActive = true; <playerPos>5__13 = ((Component)((GrabbableObject)<>4__this).playerHeldBy).transform.position; <randomAngle>5__14 = Random.Range(0f, 360f); <randomDir>5__15 = new Vector3(Mathf.Sin(<randomAngle>5__14 * (MathF.PI / 180f)), 0f, Mathf.Cos(<randomAngle>5__14 * (MathF.PI / 180f))); <spawnDist>5__16 = Random.Range(10f, 15f); <spawnPos>5__17 = <playerPos>5__13 + <randomDir>5__15 * <spawnDist>5__16 + Vector3.up * 2f; <targetPlayerId>5__18 = ((GrabbableObject)<>4__this).playerHeldBy.actualClientId; try { <>4__this.SpawnDementorServerRpc(<spawnPos>5__17, <targetPlayerId>5__18); } catch (Exception ex) { <ex>5__19 = ex; Debug.Log((object)("[ElderStaffItem] ServerRpc fehlgeschlagen, lokaler Fallback: " + <ex>5__19.Message)); ((MonoBehaviour)<>4__this).StartCoroutine(<>4__this.DementorAttack(<spawnPos>5__17, <targetPlayerId>5__18)); } } } return false; } } bool IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void IEnumerator.Reset() { throw new NotSupportedException(); } } [CompilerGenerated] private sealed class <AfterglowEffect>d__32 : IEnumerator<object>, IEnumerator, IDisposable { private int <>1__state; private object <>2__current; public Vector3 point; public ElderStaffItem <>4__this; private GameObject <glowParent>5__1; private Random <rng>5__2; private int <orbCount>5__3; private Light[] <orbs>5__4; private Vector3[] <orbOffsets>5__5; private float[] <orbPhases>5__6; private float <duration>5__7; private float <elapsed>5__8; private int <i>5__9; private GameObject <orbObj>5__10; private Light <orbLight>5__11; private float <t>5__12; private float <fade>5__13; private int <i>5__14; private float <bob>5__15; private float <drift>5__16; object IEnumerator<object>.Current { [DebuggerHidden] get { return <>2__current; } } object IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <AfterglowEffect>d__32(int <>1__state) { this.<>1__state = <>1__state; } [DebuggerHidden] void IDisposable.Dispose() { <glowParent>5__1 = null; <rng>5__2 = null; <orbs>5__4 = null; <orbOffsets>5__5 = null; <orbPhases>5__6 = null; <orbObj>5__10 = null; <orbLight>5__11 = null; <>1__state = -2; } private bool MoveNext() { //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_003f: 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_00bc: Expected O, but got Unknown //IL_00e4: Unknown result type (might be due to invalid IL or missing references) //IL_012b: 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_0174: Unknown result type (might be due to invalid IL or missing references) //IL_01fe: Unknown result type (might be due to invalid IL or missing references) //IL_0204: Unknown result type (might be due to invalid IL or missing references) //IL_0209: Unknown result type (might be due to invalid IL or missing references) //IL_020e: Unknown result type (might be due to invalid IL or missing references) //IL_0381: Unknown result type (might be due to invalid IL or missing references) //IL_0392: Unknown result type (might be due to invalid IL or missing references) //IL_0397: Unknown result type (might be due to invalid IL or missing references) //IL_03b4: Unknown result type (might be due to invalid IL or missing references) //IL_03b9: Unknown result type (might be due to invalid IL or missing references) //IL_0421: Unknown result type (might be due to invalid IL or missing references) //IL_0426: Unknown result type (might be due to invalid IL or missing references) //IL_0430: Unknown result type (might be due to invalid IL or missing references) //IL_043a: Unknown result type (might be due to invalid IL or missing references) //IL_043f: Unknown result type (might be due to invalid IL or missing references) //IL_0444: Unknown result type (might be due to invalid IL or missing references) switch (<>1__state) { default: return false; case 0: <>1__state = -1; <glowParent>5__1 = new GameObject("Afterglow"); <glowParent>5__1.transform.position = point; <rng>5__2 = new Random(); <orbCount>5__3 = 6; <orbs>5__4 = (Light[])(object)new Light[<orbCount>5__3]; <orbOffsets>5__5 = (Vector3[])(object)new Vector3[<orbCount>5__3]; <orbPhases>5__6 = new float[<orbCount>5__3]; <i>5__9 = 0; while (<i>5__9 < <orbCount>5__3) { <orbObj>5__10 = new GameObject($"GlowOrb_{<i>5__9}"); <orbObj>5__10.transform.SetParent(<glowParent>5__1.transform); <orbObj>5__10.transform.position = point + new Vector3(((float)<rng>5__2.NextDouble() - 0.5f) * 1.2f, (float)<rng>5__2.NextDouble() * 0.8f, ((float)<rng>5__2.NextDouble() - 0.5f) * 1.2f); <orbLight>5__11 = <orbObj>5__10.AddComponent<Light>(); <orbLight>5__11.color = new Color(0.05f, 0.85f + (float)<rng>5__2.NextDouble() * 0.15f, 0.05f); <orbLight>5__11.intensity = 25f + (float)<rng>5__2.NextDouble() * 25f; <orbLight>5__11.range = 4f + (float)<rng>5__2.NextDouble() * 3f; <orbLight>5__11.type = (LightType)2; <orbs>5__4[<i>5__9] = <orbLight>5__11; <orbOffsets>5__5[<i>5__9] = <orbObj>5__10.transform.position - point; <orbPhases>5__6[<i>5__9] = (float)<rng>5__2.NextDouble() * MathF.PI * 2f; <orbObj>5__10 = null; <orbLight>5__11 = null; <i>5__9++; } <duration>5__7 = 3f; <elapsed>5__8 = 0f; break; case 1: <>1__state = -1; break; } if (<elapsed>5__8 < <duration>5__7) { <elapsed>5__8 += Time.deltaTime; <t>5__12 = <elapsed>5__8 / <duration>5__7; <fade>5__13 = ((<t>5__12 < 0.08f) ? (<t>5__12 / 0.08f) : Mathf.Max(0f, 1f - (<t>5__12 - 0.08f) / 0.92f)); <i>5__14 = 0; while (<i>5__14 < <orbCount>5__3) { if ((Object)(object)<orbs>5__4[<i>5__14] != (Object)null) { <bob>5__15 = Mathf.Sin(<elapsed>5__8 * 2f + <orbPhases>5__6[<i>5__14]) * 0.25f; <drift>5__16 = Mathf.Cos(<elapsed>5__8 * 1.3f + <orbPhases>5__6[<i>5__14]) * 0.12f; ((Component)<orbs>5__4[<i>5__14]).transform.position = point + <orbOffsets>5__5[<i>5__14] + new Vector3(<drift>5__16, <bob>5__15, <drift>5__16 * 0.6f); <orbs>5__4[<i>5__14].intensity = (25f + 20f * Mathf.Sin(<elapsed>5__8 * 3.5f + <orbPhases>5__6[<i>5__14]) * 0.5f) * <fade>5__13; ref Vector3 reference = ref <orbOffsets>5__5[<i>5__14]; reference += Vector3.up * Time.deltaTime * 0.25f; } <i>5__14++; } <>2__current = null; <>1__state = 1; return true; } if ((Object)(object)<glowParent>5__1 != (Object)null) { Object.Destroy((Object)(object)<glowParent>5__1); } return false; } bool IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void IEnumerator.Reset() { throw new NotSupportedException(); } } [CompilerGenerated] private sealed class <DeathGlowEffect>d__48 : IEnumerator<object>, IEnumerator, IDisposable { private int <>1__state; private object <>2__current; public Vector3 position; public ElderStaffItem <>4__this; private GameObject <deathObj>5__1; private Light <deathLight>5__2; private int <ringCount>5__3; private Light[] <ringLights>5__4; private GameObject <pillarObj>5__5; private Material <pillarMat>5__6; private LineRenderer <pillar>5__7; private float <duration>5__8; private float <elapsed>5__9; private int <i>5__10; private float <angle>5__11; private Vector3 <offset>5__12; private GameObject <rlObj>5__13; private Light <rl>5__14; private float <t>5__15; private float <pulse>5__16; private float <fade>5__17; private int <i>5__18; private float <angle>5__19; private float <radius>5__20; private Vector3 <offset>5__21; private float <pillarHeight>5__22; object IEnumerator<object>.Current { [DebuggerHidden] get { return <>2__current; } } object IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <DeathGlowEffect>d__48(int <>1__state) { this.<>1__state = <>1__state; } [DebuggerHidden] void IDisposable.Dispose() { <deathObj>5__1 = null; <deathLight>5__2 = null; <ringLights>5__4 = null; <pillarObj>5__5 = null; <pillarMat>5__6 = null; <pillar>5__7 = null; <rlObj>5__13 = null; <rl>5__14 = null; <>1__state = -2; } private bool MoveNext() { //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_003f: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_010c: Unknown result type (might be due to invalid IL or missing references) //IL_0116: 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_0136: Unknown result type (might be due to invalid IL or missing references) //IL_0140: Expected O, but got Unknown //IL_0168: 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_0173: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Unknown result type (might be due to invalid IL or missing references) //IL_0182: Unknown result type (might be due to invalid IL or missing references) //IL_0187: 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_023f: Unknown result type (might be due to invalid IL or missing references) //IL_0249: Expected O, but got Unknown //IL_0270: Unknown result type (might be due to invalid IL or missing references) //IL_027a: Expected O, but got Unknown //IL_02d1: Unknown result type (might be due to invalid IL or missing references) //IL_02f6: Unknown result type (might be due to invalid IL or missing references) //IL_032b: Unknown result type (might be due to invalid IL or missing references) //IL_033e: Unknown result type (might be due to invalid IL or missing references) //IL_0343: Unknown result type (might be due to invalid IL or missing references) //IL_034d: Unknown result type (might be due to invalid IL or missing references) //IL_0352: Unknown result type (might be due to invalid IL or missing references) //IL_04cf: Unknown result type (might be due to invalid IL or missing references) //IL_04da: Unknown result type (might be due to invalid IL or missing references) //IL_04df: Unknown result type (might be due to invalid IL or missing references) //IL_04f7: Unknown result type (might be due to invalid IL or missing references) //IL_04fd: Unknown result type (might be due to invalid IL or missing references) //IL_0502: Unknown result type (might be due to invalid IL or missing references) //IL_0507: Unknown result type (might be due to invalid IL or missing references) //IL_051e: Unknown result type (might be due to invalid IL or missing references) //IL_0523: Unknown result type (might be due to invalid IL or missing references) //IL_05b3: Unknown result type (might be due to invalid IL or missing references) //IL_05b8: Unknown result type (might be due to invalid IL or missing references) //IL_05c3: Unknown result type (might be due to invalid IL or missing references) //IL_05c8: Unknown result type (might be due to invalid IL or missing references) //IL_05f4: Unknown result type (might be due to invalid IL or missing references) //IL_0619: Unknown result type (might be due to invalid IL or missing references) switch (<>1__state) { default: return false; case 0: <>1__state = -1; <deathObj>5__1 = new GameObject("DeathGlow"); <deathObj>5__1.transform.position = position; <deathLight>5__2 = <deathObj>5__1.AddComponent<Light>(); <deathLight>5__2.color = new Color(0f, 1f, 0f); <deathLight>5__2.intensity = 600f; <deathLight>5__2.range = 35f; <deathLight>5__2.type = (LightType)2; <ringCount>5__3 = 8; <ringLights>5__4 = (Light[])(object)new Light[<ringCount>5__3]; <i>5__10 = 0; while (<i>5__10 < <ringCount>5__3) { <angle>5__11 = (float)<i>5__10 / (float)<ringCount>5__3 * MathF.PI * 2f; <offset>5__12 = new Vector3(Mathf.Cos(<angle>5__11), 0f, Mathf.Sin(<angle>5__11)) * 1.5f; <rlObj>5__13 = new GameObject($"DeathRing_{<i>5__10}"); <rlObj>5__13.transform.SetParent(<deathObj>5__1.transform); <rlObj>5__13.transform.position = position + <offset>5__12 + Vector3.up * 1f; <rl>5__14 = <rlObj>5__13.AddComponent<Light>(); <rl>5__14.color = new Color(0f, 0.85f, 0f); <rl>5__14.intensity = 120f; <rl>5__14.range = 10f; <rl>5__14.type = (LightType)2; <ringLights>5__4[<i>5__10] = <rl>5__14; <rlObj>5__13 = null; <rl>5__14 = null; <i>5__10++; } <pillarObj>5__5 = new GameObject("DeathPillar"); <pillarObj>5__5.transform.SetParent(<deathObj>5__1.transform); <pillarMat>5__6 = new Material(Shader.Find("Sprites/Default")); <pillar>5__7 = <pillarObj>5__5.AddComponent<LineRenderer>(); <pillar>5__7.positionCount = 2; ((Renderer)<pillar>5__7).material = <pillarMat>5__6; ((Renderer)<pillar>5__7).shadowCastingMode = (ShadowCastingMode)0; <pillar>5__7.startColor = new Color(0f, 1f, 0f, 0.8f); <pillar>5__7.endColor = new Color(0f, 1f, 0f, 0f); <pillar>5__7.startWidth = 1.5f; <pillar>5__7.endWidth = 0.3f; <pillar>5__7.SetPosition(0, position); <pillar>5__7.SetPosition(1, position + Vector3.up * 8f); <duration>5__8 = 2.5f; <elapsed>5__9 = 0f; break; case 1: <>1__state = -1; break; } if (<elapsed>5__9 < <duration>5__8) { <elapsed>5__9 += Time.deltaTime; <t>5__15 = <elapsed>5__9 / <duration>5__8; <pulse>5__16 = Mathf.Sin(<elapsed>5__9 * 10f) * 0.25f + 0.75f; <fade>5__17 = ((<t>5__15 < 0.25f) ? 1f : Mathf.Max(0f, 1f - (<t>5__15 - 0.25f) / 0.75f)); <deathLight>5__2.intensity = 600f * <pulse>5__16 * <fade>5__17; <deathLight>5__2.range = 35f + Mathf.Sin(<elapsed>5__9 * 6f) * 5f; <i>5__18 = 0; while (<i>5__18 < <ringCount>5__3) { if ((Object)(object)<ringLights>5__4[<i>5__18] != (Object)null) { <angle>5__19 = (float)<i>5__18 / (float)<ringCount>5__3 * MathF.PI * 2f + <elapsed>5__9 * 2.5f; <radius>5__20 = 1.5f + <t>5__15 * 2.5f; <offset>5__21 = new Vector3(Mathf.Cos(<angle>5__19), 0f, Mathf.Sin(<angle>5__19)) * <radius>5__20; ((Component)<ringLights>5__4[<i>5__18]).transform.position = position + <offset>5__21 + Vector3.up * (1f + <t>5__15 * 3f); <ringLights>5__4[<i>5__18].intensity = 120f * <pulse>5__16 * <fade>5__17; } <i>5__18++; } if ((Object)(object)<pillar>5__7 != (Object)null) { <pillarHeight>5__22 = 8f + <t>5__15 * 4f; <pillar>5__7.SetPosition(1, position + Vector3.up * <pillarHeight>5__22); <pillar>5__7.startColor = new Color(0f, 1f, 0f, 0.8f * <fade>5__17); <pillar>5__7.endColor = new Color(0f, 1f, 0f, 0f); <pillar>5__7.startWidth = 1.5f * <fade>5__17; <pillar>5__7.endWidth = 0.3f * <fade>5__17; } <>2__current = null; <>1__state = 1; return true; } if ((Object)(object)<deathObj>5__1 != (Object)null) { Object.Destroy((Object)(object)<deathObj>5__1); } return false; } bool IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void IEnumerator.Reset() { throw new NotSupportedException(); } } [CompilerGenerated] private sealed class <DementorAttack>d__38 : IEnumerator<object>, IEnumerator, IDisposable { private int <>1__state; private object <>2__current; public Vector3 spawnPos; public ulong targetPlayerId; public ElderStaffItem <>4__this; private PlayerControllerB <targetPlayerCtrl>5__1; private Component <targetPlayer>5__2; private Vector3 <playerPos>5__3; private GameObject <dementor>5__4; private Vector3 <lookAtPlayer>5__5; private Random <rng>5__6; private AudioSource <dementorAudio>5__7; private Light <auraLight>5__8; private GameObject <frostObj>5__9; private Light <frostLight>5__10; private Material <lineMat>5__11; private GameObject <modelInstance>5__12; private int <bodyLineCount>5__13; private LineRenderer[] <bodyLRs>5__14; private int <cloakCount>5__15; private LineRenderer[] <cloakLRs>5__16; private int <smokeCount>5__17; private LineRenderer[] <smokeLRs>5__18; private int <tendrilCount>5__19; private LineRenderer[] <tendrilLRs>5__20; private PlayerControllerB <localPlayer>5__21; private GameObject <frostCanvas>5__22; private Image <frostImage>5__23; private TrailRenderer <dementorTrail>5__24; private GameObject <breathObj>5__25; private ParticleSystem <breathPS>5__26; private Dictionary<Light, float> <originalLightIntensities>5__27; private float <originalMoveSpeed>5__28; private AudioLowPassFilter <lowPass>5__29; private AudioSource <whisperSource>5__30; private float <maxTime>5__31; private float <baseSpeed>5__32; private float <killDistance>5__33; private float <staffExplodeDist>5__34; private float <elapsed>5__35; private bool <killed>5__36; private bool <staffExploded>5__37; private bool <chasingStaff>5__38; private float <lightFlickerTimer>5__39; private Type <pluginType>5__40; private FieldInfo <prefabField>5__41; private GameObject <prefab>5__42; private Shader <darkShader>5__43; private Renderer[] <>s__44; private int <>s__45; private Renderer <rend>5__46; private Material[] <mats>5__47; private int <m>5__48; private Material <dm>5__49; private Collider[] <>s__50; private int <>s__51; private Collider <col>5__52; private float <headHeight>5__53; private GameObject <headSmoke>5__54; private ParticleSystem <ps>5__55; private MainModule <main>5__56; private EmissionModule <emission>5__57; private ShapeModule <shape>5__58; private SizeOverLifetimeModule <sizeOverLife>5__59; private AnimationCurve <sizeCurve>5__60; private ColorOverLifetimeModule <colorOverLife>5__61; private Gradient <grad>5__62; private RotationOverLifetimeModule <rotOverLife>5__63; private NoiseModule <noise>5__64; private ParticleSystemRenderer <renderer>5__65; private GameObject <headWisps>5__66; private ParticleSystem <ps2>5__67; private MainModule <main2>5__68; private EmissionModule <emission2>5__69; private ShapeModule <shape2>5__70; private ColorOverLifetimeModule <colorOverLife2>5__71; private Gradient <grad2>5__72; private NoiseModule <noise2>5__73; private ParticleSystemRenderer <renderer2>5__74; private GameObject <faceCloud>5__75; private ParticleSystem <ps3>5__76; private MainModule <main3>5__77; private EmissionModule <emission3>5__78; private ShapeModule <shape3>5__79; private ColorOverLifetimeModule <colorOL3>5__80; private Gradient <grad3>5__81; private NoiseModule <noise3>5__82; private ParticleSystemRenderer <renderer3>5__83; private GameObject <bodySmoke>5__84; private ParticleSystem <ps4>5__85; private MainModule <main4>5__86; private EmissionModule <emission4>5__87; private ShapeModule <shape4>5__88; private SizeOverLifetimeModule <sizeOL4>5__89; private AnimationCurve <sizeCurve4>5__90; private ColorOverLifetimeModule <colorOL4>5__91; private Gradient <grad4>5__92; private NoiseModule <noise4>5__93; private RotationOverLifetimeModule <rotOL4>5__94; private ParticleSystemRenderer <renderer4>5__95; private GameObject <hemWisps>5__96; private ParticleSystem <ps5>5__97; private MainModule <main5>5__98; private EmissionModule <emission5>5__99; private ShapeModule <shape5>5__100; private ColorOverLifetimeModule <colorOL5>5__101; private Gradient <grad5>5__102; private NoiseModule <noise5>5__103; private ParticleSystemRenderer <renderer5>5__104; private Exception <ex>5__105; private Exception <ex>5__106; private int <i>5__107; private int <i>5__108; private int <i>5__109; private int <i>5__110; private Canvas <canvas>5__111; private GameObject <imgObj>5__112; private RectTransform <rt>5__113; private Exception <ex>5__114; private Exception <ex>5__115; private MainModule <breathMain>5__116; private EmissionModule <breathEmission>5__117; private ShapeModule <breathShape>5__118; private ColorOverLifetimeModule <breathColorOL>5__119; private Gradient <breathGrad>5__120; private NoiseModule <breathNoise>5__121; private ParticleSystemRenderer <breathRenderer>5__122; private Exception <ex>5__123; private FieldInfo <speedField>5__124; private int <wSampleRate>5__125; private int <wSamples>5__126; private AudioClip <whisperClip>5__127; private float[] <wData>5__128; private Random <wRng>5__129; private int <i>5__130; private float <t>5__131; private float <whisp1>5__132; private float <whisp2>5__133; private float <breath>5__134; private float <noise>5__135; private float <sibilance>5__136; private Exception <ex>5__137; private bool <playerHasStaff>5__138; private Vector3 <targetPos>5__139; private float <dist>5__140; private float <speedMultiplier>5__141; private float <currentSpeed>5__142; private float <bobOffset>5__143; private float <swayOffset>5__144; private Vector3 <visualOffset>5__145; private Vector3 <moveTarget>5__146; private Vector3 <lookDir>5__147; private Vector3 <pos>5__148; private float <flicker>5__149; private float <proximity>5__150; private float <insanityRate>5__151; private float <frostAlpha>5__152; private float <breathDist>5__153; private EmissionModule <breathEmCtrl>5__154; private float <breathIntensity>5__155; private Light[] <allLights>5__156; private Light[] <>s__157; private int <>s__158; private Light <light>5__159; private float <lightDist>5__160; private float <dimFactor>5__161; private float <flickerRnd>5__162; private float <playerDist>5__163; private float <speedMult>5__164; private FieldInfo <speedField>5__165; private FieldInfo <speedField>5__166; private float <lpFreq>5__167; private PlayerControllerB[] <allPlayers>5__168; private PlayerControllerB[] <>s__169; private int <>s__170; private PlayerControllerB <player>5__171; private float <pDist>5__172; private float <teamInsanityRate>5__173; private Exception <ex>5__174; private float <fadeDur>5__175; private float <fadeElapsed>5__176; private float <fade>5__177; private Dictionary<Light, float>.Enumerator <>s__178; private KeyValuePair<Light, float> <kvp>5__179; private FieldInfo <speedField>5__180; private Exception <ex>5__181; object IEnumerator<object>.Current { [DebuggerHidden] get { return <>2__current; } } object IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <DementorAttack>d__38(int <>1__state) { this.<>1__state = <>1__state; } [DebuggerHidden] void IDisposable.Dispose() { //IL_00fb: 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_0113: Unknown result type (might be due to invalid IL or missing references) //IL_011f: 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_0145: Unknown result type (might be due to invalid IL or missing references) //IL_0151: Unknown result type (might be due to invalid IL or missing references) //IL_0172: Unknown result type (might be due to invalid IL or missing references) //IL_017e: 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_0196: 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_01ca: Unknown result type (might be due to invalid IL or missing references) //IL_01d6: Unknown result type (might be due to invalid IL or missing references) //IL_01e2: Unknown result type (might be due to invalid IL or missing references) //IL_01ee: Unknown result type (might be due to invalid IL or missing references) //IL_0201: Unknown result type (might be due to invalid IL or missing references) //IL_0222: Unknown result type (might be due to invalid IL or missing references) //IL_022e: Unknown result type (might be due to invalid IL or missing references) //IL_023a: Unknown result type (might be due to invalid IL or missing references) //IL_0246: Unknown result type (might be due to invalid IL or missing references) //IL_0259: Unknown result type (might be due to invalid IL or missing references) //IL_026c: Unknown result type (might be due to invalid IL or missing references) //IL_0278: Unknown result type (might be due to invalid IL or missing references) //IL_0299: Unknown result type (might be due to invalid IL or missing references) //IL_02a5: Unknown result type (might be due to invalid IL or missing references) //IL_02b1: Unknown result type (might be due to invalid IL or missing references) //IL_02bd: Unknown result type (might be due to invalid IL or missing references) //IL_02d0: Unknown result type (might be due to invalid IL or missing references) //IL_0314: Unknown result type (might be due to invalid IL or missing references) //IL_0320: Unknown result type (might be due to invalid IL or missing references) //IL_032c: Unknown result type (might be due to invalid IL or missing references) //IL_0338: Unknown result type (might be due to invalid IL or missing references) //IL_034b: Unknown result type (might be due to invalid IL or missing references) //IL_0388: Unknown result type (might be due to invalid IL or missing references) <targetPlayerCtrl>5__1 = null; <targetPlayer>5__2 = null; <dementor>5__4 = null; <rng>5__6 = null; <dementorAudio>5__7 = null; <auraLight>5__8 = null; <frostObj>5__9 = null; <frostLight>5__10 = null; <lineMat>5__11 = null; <modelInstance>5__12 = null; <bodyLRs>5__14 = null; <cloakLRs>5__16 = null; <smokeLRs>5__18 = null; <tendrilLRs>5__20 = null; <localPlayer>5__21 = null; <frostCanvas>5__22 = null; <frostImage>5__23 = null; <dementorTrail>5__24 = null; <breathObj>5__25 = null; <breathPS>5__26 = null; <originalLightIntensities>5__27 = null; <lowPass>5__29 = null; <whisperSource>5__30 = null; <pluginType>5__40 = null; <prefabField>5__41 = null; <prefab>5__42 = null; <darkShader>5__43 = null; <>s__44 = null; <rend>5__46 = null; <mats>5__47 = null; <dm>5__49 = null; <>s__50 = null; <col>5__52 = null; <headSmoke>5__54 = null; <ps>5__55 = null; <main>5__56 = default(MainModule); <emission>5__57 = default(EmissionModule); <shape>5__58 = default(ShapeModule); <sizeOverLife>5__59 = default(SizeOverLifetimeModule); <sizeCurve>5__60 = null; <colorOverLife>5__61 = default(ColorOverLifetimeModule); <grad>5__62 = null; <rotOverLife>5__63 = default(RotationOverLifetimeModule); <noise>5__64 = default(NoiseModule); <renderer>5__65 = null; <headWisps>5__66 = null; <ps2>5__67 = null; <main2>5__68 = default(MainModule); <emission2>5__69 = default(EmissionModule); <shape2>5__70 = default(ShapeModule); <colorOverLife2>5__71 = default(ColorOverLifetimeModule); <grad2>5__72 = null; <noise2>5__73 = default(NoiseModule); <renderer2>5__74 = null; <faceCloud>5__75 = null; <ps3>5__76 = null; <main3>5__77 = default(MainModule); <emission3>5__78 = default(EmissionModule); <shape3>5__79 = default(ShapeModule); <colorOL3>5__80 = default(ColorOverLifetimeModule); <grad3>5__81 = null; <noise3>5__82 = default(NoiseModule); <renderer3>5__83 = null; <bodySmoke>5__84 = null; <ps4>5__85 = null; <main4>5__86 = default(MainModule); <emission4>5__87 = default(EmissionModule); <shape4>5__88 = default(ShapeModule); <sizeOL4>5__89 = default(SizeOverLifetimeModule); <sizeCurve4>5__90 = null; <colorOL4>5__91 = default(ColorOverLifetimeModule); <grad4>5__92 = null; <noise4>5__93 = default(NoiseModule); <rotOL4>5__94 = default(RotationOverLifetimeModule); <renderer4>5__95 = null; <hemWisps>5__96 = null; <ps5>5__97 = null; <main5>5__98 = default(MainModule); <emission5>5__99 = default(EmissionModule); <shape5>5__100 = default(ShapeModule); <colorOL5>5__101 = default(ColorOverLifetimeModule); <grad5>5__102 = null; <noise5>5__103 = default(NoiseModule); <renderer5>5__104 = null; <ex>5__105 = null; <ex>5__106 = null; <canvas>5__111 = null; <imgObj>5__112 = null; <rt>5__113 = null; <ex>5__114 = null; <ex>5__115 = null; <breathMain>5__116 = default(MainModule); <breathEmission>5__117 = default(EmissionModule); <breathShape>5__118 = default(ShapeModule); <breathColorOL>5__119 = default(ColorOverLifetimeModule); <breathGrad>5__120 = null; <breathNoise>5__121 = default(NoiseModule); <breathRenderer>5__122 = null; <ex>5__123 = null; <speedField>5__124 = null; <whisperClip>5__127 = null; <wData>5__128 = null; <wRng>5__129 = null; <ex>5__137 = null; <breathEmCtrl>5__154 = default(EmissionModule); <allLights>5__156 = null; <>s__157 = null; <light>5__159 = null; <speedField>5__165 = null; <speedField>5__166 = null; <allPlayers>5__168 = null; <>s__169 = null; <player>5__171 = null; <ex>5__174 = null; <>s__178 = default(Dictionary<Light, float>.Enumerator); <kvp>5__179 = default(KeyValuePair<Light, float>); <speedField>5__180 = null; <ex>5__181 = null; <>1__state = -2; } private bool MoveNext() { //IL_1ba0: Unknown result type (might be due to invalid IL or missing references) //IL_215b: Unknown result type (might be due to invalid IL or missing references) //IL_2165: Expected O, but got Unknown //IL_2180: Unknown result type (might be due to invalid IL or missing references) //IL_21a5: Unknown result type (might be due to invalid IL or missing references) //IL_223d: Unknown result type (might be due to invalid IL or missing references) //IL_2247: Expected O, but got Unknown //IL_2283: Unknown result type (might be due to invalid IL or missing references) //IL_22a6: Unknown result type (might be due to invalid IL or missing references) //IL_22ab: Unknown result type (might be due to invalid IL or missing references) //IL_22cd: Unknown result type (might be due to invalid IL or missing references) //IL_22e8: Unknown result type (might be due to invalid IL or missing references) //IL_2303: Unknown result type (might be due to invalid IL or missing references) //IL_2328: Unknown result type (might be due to invalid IL or missing references) //IL_232d: Unknown result type (might be due to invalid IL or missing references) //IL_235e: Unknown result type (might be due to invalid IL or missing references) //IL_2370: Unknown result type (might be due to invalid IL or missing references) //IL_2375: Unknown result type (might be due to invalid IL or missing references) //IL_2385: Unknown result type (might be due to invalid IL or missing references) //IL_2397: Unknown result type (might be due to invalid IL or missing references) //IL_239c: Unknown result type (might be due to invalid IL or missing references) //IL_23d7: Unknown result type (might be due to invalid IL or missing references) //IL_23dc: Unknown result type (might be due to invalid IL or missing references) //IL_23ef: Unknown result type (might be due to invalid IL or missing references) //IL_23f9: Expected O, but got Unknown //IL_2416: Unknown result type (might be due to invalid IL or missing references) //IL_2420: Unknown result type (might be due to invalid IL or missing references) //IL_2425: Unknown result type (might be due to invalid IL or missing references) //IL_243b: Unknown result type (might be due to invalid IL or missing references) //IL_2445: Unknown result type (might be due to invalid IL or missing references) //IL_244a: Unknown result type (might be due to invalid IL or missing references) //IL_2461: Unknown result type (might be due to invalid IL or missing references) //IL_2466: Unknown result type (might be due to invalid IL or missing references) //IL_2477: Unknown result type (might be due to invalid IL or missing references) //IL_247c: Unknown result type (might be due to invalid IL or missing references) //IL_248d: Unknown result type (might be due to invalid IL or missing references) //IL_2492: Unknown result type (might be due to invalid IL or missing references) //IL_24a3: Unknown result type (might be due to invalid IL or missing references) //IL_24a8: Unknown result type (might be due to invalid IL or missing references) //IL_24bf: Unknown result type (might be due to invalid IL or missing references) //IL_24d1: Unknown result type (might be due to invalid IL or missing references) //IL_24d6: Unknown result type (might be due to invalid IL or missing references) //IL_24f3: Unknown result type (might be due to invalid IL or missing references) //IL_1c95: Unknown result type (might be due to invalid IL or missing references) //IL_1cae: Unknown result type (might be due to invalid IL or missing references) //IL_253e: Unknown result type (might be due to invalid IL or missing references) //IL_2548: Expected O, but got Unknown //IL_2568: Unknown result type (might be due to invalid IL or missing references) //IL_2593: Unknown result type (might be due to invalid IL or missing references) //IL_259f: Unknown result type (might be due to invalid IL or missing references) //IL_25ab: Unknown result type (might be due to invalid IL or missing references) //IL_25b7: Unknown result type (might be due to invalid IL or missing references) //IL_25ca: Unknown result type (might be due to invalid IL or missing references) //IL_0135: Unknown result type (might be due to invalid IL or missing references) //IL_013a: Unknown result type (might be due to invalid IL or missing references) //IL_0145: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Unknown result type (might be due to invalid IL or missing references) //IL_0175: Expected O, but got Unknown //IL_0181: Unknown result type (might be due to invalid IL or missing references) //IL_018e: 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_0199: Unknown result type (might be due to invalid IL or missing references) //IL_019e: Unknown result type (might be due to invalid IL or missing references) //IL_372c: Unknown result type (might be due to invalid IL or missing references) //IL_3731: Unknown result type (might be due to invalid IL or missing references) //IL_373b: Unknown result type (might be due to invalid IL or missing references) //IL_3745: Unknown result type (might be due to invalid IL or missing references) //IL_374a: Unknown result type (might be due to invalid IL or missing references) //IL_3705: Unknown result type (might be due to invalid IL or missing references) //IL_3715: Unknown result type (might be due to invalid IL or missing references) //IL_025d: Unknown result type (might be due to invalid IL or missing references) //IL_029d: Unknown result type (might be due to invalid IL or missing references) //IL_02a7: Expected O, but got Unknown //IL_02ce: Unknown result type (might be due to invalid IL or missing references) //IL_02ff: Unknown result type (might be due to invalid IL or missing references) //IL_0344: Unknown result type (might be due to invalid IL or missing references) //IL_034e: Expected O, but got Unknown //IL_01dc: 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_1d6b: Unknown result type (might be due to invalid IL or missing references) //IL_1d84: Unknown result type (might be due to invalid IL or missing references) //IL_042b: Unknown result type (might be due to invalid IL or missing references) //IL_0450: Unknown result type (might be due to invalid IL or missing references) //IL_0476: Unknown result type (might be due to invalid IL or missing references) //IL_0486: Unknown result type (might be due to invalid IL or missing references) //IL_1e41: Unknown result type (might be due to invalid IL or missing references) //IL_1e5a: Unknown result type (might be due to invalid IL or missing references) //IL_1f16: Unknown result type (might be due to invalid IL or missing references) //IL_1f2f: Unknown result type (might be due to invalid IL or missing references) //IL_1f9a: Unknown result type (might be due to invalid IL or missing references) //IL_1fa4: Expected O, but got Unknown //IL_1fe5: Unknown result type (might be due to invalid IL or missing references) //IL_1fef: Expected O, but got Unknown //IL_2037: Unknown result type (might be due to invalid IL or missing references) //IL_2059: Unknown result type (might be due to invalid IL or missing references) //IL_206a: Unknown result type (might be due to invalid IL or missing references) //IL_207b: Unknown result type (might be due to invalid IL or missing references) //IL_208c: Unknown result type (might be due to invalid IL or missing references) //IL_2b0a: Unknown result type (might be due to invalid IL or missing references) //IL_2b0f: Unknown result type (might be due to invalid IL or missing references) //IL_2b19: Unknown result type (might be due to invalid IL or missing references) //IL_2b1e: Unknown result type (might be due to invalid IL or missing references) //IL_2b23: Unknown result type (might be due to invalid IL or missing references) //IL_2b34: Unknown result type (might be due to invalid IL or missing references) //IL_2b3a: Unknown result type (might be due to invalid IL or missing references) //IL_2abb: Unknown result type (might be due to invalid IL or missing references) //IL_2ac0: Unknown result type (might be due to invalid IL or missing references) //IL_2aca: Unknown result type (might be due to invalid IL or missing references) //IL_2acf: Unknown result type (might be due to invalid IL or missing references) //IL_2ad4: Unknown result type (might be due to invalid IL or missing references) //IL_2ae5: Unknown result type (might be due to invalid IL or missing references) //IL_2aeb: Unknown result type (might be due to invalid IL or missing references) //IL_2bdb: Unknown result type (might be due to invalid IL or missing references) //IL_2be6: Unknown result type (might be due to invalid IL or missing references) //IL_2bf6: Unknown result type (might be due to invalid IL or missing references) //IL_2c01: Unknown result type (might be due to invalid IL or missing references) //IL_2c06: Unknown result type (might be due to invalid IL or missing references) //IL_2c0b: Unknown result type (might be due to invalid IL or missing references) //IL_2c12: Unknown result type (might be due to invalid IL or missing references) //IL_2c18: Unknown result type (might be due to invalid IL or missing references) //IL_2c1d: Unknown result type (might be due to invalid IL or missing references) //IL_2c22: Unknown result type (might be due to invalid IL or missing references) //IL_2c3d: Unknown result type (might be due to invalid IL or missing references) //IL_2c43: Unknown result type (might be due to invalid IL or missing references) //IL_2c54: Unknown result type (might be due to invalid IL or missing references) //IL_2c61: Unknown result type (might be due to invalid IL or missing references) //IL_2c71: Unknown result type (might be due to invalid IL or missing references) //IL_2c76: Unknown result type (might be due to invalid IL or missing references) //IL_2c7b: Unknown result type (might be due to invalid IL or missing references) //IL_05ab: Unknown result type (might be due to invalid IL or missing references) //IL_05b5: Expected O, but got Unknown //IL_05cf: Unknown result type (might be due to invalid IL or missing references) //IL_0620: Unknown result type (might be due to invalid IL or missing references) //IL_062a: Unknown result type (might be due to invalid IL or missing references) //IL_0676: Unknown result type (might be due to invalid IL or missing references) //IL_0795: Unknown result type (might be due to invalid IL or missing references) //IL_079f: Expected O, but got Unknown //IL_07d7: Unknown result type (might be due to invalid IL or missing references) //IL_07fa: Unknown result type (might be due to invalid IL or missing references) //IL_07ff: Unknown result type (might be due to invalid IL or missing references) //IL_0821: Unknown result type (might be due to invalid IL or missing references) //IL_083c: Unknown result type (might be due to invalid IL or missing references) //IL_087b: Unknown result type (might be due to invalid IL or missing references) //IL_08a0: Unknown result type (might be due to invalid IL or missing references) //IL_08a5: Unknown result type (might be due to invalid IL or missing references) //IL_08d6: Unknown result type (might be due to invalid IL or missing references) //IL_08e8: Unknown result type (might be due to invalid IL or missing references) //IL_08ed: Unknown result type (might be due to invalid IL or missing references) //IL_08fd: Unknown result type (might be due to invalid IL or missing references) //IL_090f: Unknown result type (might be due to invalid IL or missing references) //IL_0914: Unknown result type (might be due to invalid IL or missing references) //IL_0950: Unknown result type (might be due to invalid IL or missing references) //IL_0955: Unknown result type (might be due to invalid IL or missing references) //IL_0968: Unknown result type (might be due to invalid IL or missing references) //IL_0972: Expected O, but got Unknown //IL_09c5: Unknown result type (might be due to invalid IL or missing references) //IL_09d7: Unknown result type (might be due to invalid IL or missing references) //IL_09dc: Unknown result type (might be due to invalid IL or missing references) //IL_09ef: Unknown result type (might be due to invalid IL or missing references) //IL_09f9: Expected O, but got Unknown //IL_0a16: Unknown result type (might be due to invalid IL or missing references) //IL_0a20: Unknown result type (might be due to invalid IL or missing references) //IL_0a25: Unknown result type (might be due to invalid IL or missing references) //IL_0a3b: Unknown result type (might be due to invalid IL or missing references) //IL_0a45: Unknown result type (might be due to invalid IL or missing references) //IL_0a4a: Unknown result type (might be due to invalid IL or missing references) //IL_0a60: Unknown result type (might be due to invalid IL or missing references) //IL_0a6a: Unknown result type (might be due to invalid IL or missing references) //IL_0a6f: Unknown result type (might be due to invalid IL or missing references) //IL_0a86: Unknown result type (might be due to invalid IL or missing references) //IL_0a8b: Unknown result type (might be due to invalid IL or missing references) //IL_0a9c: Unknown result type (might be due to invalid IL or missing references) //IL_0aa1: Unknown result type (might be due to invalid IL or missing references) //IL_0ab2: Unknown result type (might be due to invalid IL or missing references) //IL_0ab7: Unknown result type (might be due to invalid IL or missing references) //IL_0ac8: Unknown result type (might be due to invalid IL or missing references) //IL_0acd: Unknown result type (might be due to invalid IL or missing references) //IL_0ae4: Unknown result type (might be due to invalid IL or missing references) //IL_0af6: Unknown result type (might be due to invalid IL or missing references) //IL_0afb: Unknown result type (might be due to invalid IL or missing references) //IL_0b1d: Unknown result type (might be due to invalid IL or missing references) //IL_0b2f: Unknown result type (might be due to invalid IL or missing references) //IL_0b34: Unknown result type (might be due to invalid IL or missing references) //IL_0b51: Unknown result type (might be due to invalid IL or missing references) //IL_0b78: Unknown result type (might be due to invalid IL or missing references) //IL_2cf0: Unknown result type (might be due to invalid IL or missing references) //IL_2cf5: Unknown result type (might be due to invalid IL or missing references) //IL_2cbe: Unknown result type (might be due to invalid IL or missing references) //IL_2cc4: Unknown result type (might be due to invalid IL or missing references) //IL_2cc9: Unknown result type (might be due to invalid IL or missing references) //IL_2cd9: Unknown result type (might be due to invalid IL or missing references) //IL_0bc0: Unknown result type (might be due to invalid IL or missing references) //IL_0bca: Expected O, but got Unknown //IL_0bea: Unknown result type (might be due to invalid IL or missing references) //IL_0bfb: Unknown result type (might be due to invalid IL or missing references) //IL_0c05: Expected O, but got Unknown //IL_0c43: Unknown result type (might be due to invalid IL or missing references) //IL_0c66: Unknown result type (might be due to invalid IL or missing references) //IL_0c6b: Unknown result type (might be due to invalid IL or missing references) //IL_0c8d: Unknown result type (might be due to invalid IL or missing references) //IL_0ca8: Unknown result type (might be due to invalid IL or missing references) //IL_0cc3: Unknown result type (might be due to invalid IL or missing references) //IL_0ce8: Unknown result type (might be due to invalid IL or missing references) //IL_0ced: Unknown result type (might be due to invalid IL or missing references) //IL_0d1e: Unknown result type (might be due to invalid IL or missing references) //IL_0d30: Unknown result type (might be due to invalid IL or missing references) //IL_0d35: Unknown result type (might be due to invalid IL or missing references) //IL_0d45: Unknown result type (might be due to invalid IL or missing references) //IL_0d57: Unknown result type (might be due to invalid IL or missing references) //IL_0d5c: Unknown result type (might be due to invalid IL or missing references) //IL_0da9: Unknown result type (might be due to invalid IL or missing references) //IL_0dae: Unknown result type (might be due to invalid IL or missing references) //IL_0dc1: Unknown result type (might be due to invalid IL or missing references) //IL_0dcb: Expected O, but got Unknown //IL_0de8: Unknown result type (might be due to invalid IL or missing references) //IL_0df2: Unknown result type (might be due to invalid IL or missing references) //IL_0df7: Unknown result type (might be due to invalid IL or missing references) //IL_0e0d: Unknown result type (might be due to invalid IL or missing references) //IL_0e17: Unknown result type (might be due to invalid IL or missing references) //IL_0e1c: Unknown result type (might be due to invalid IL or missing references) //IL_0e33: Unknown result type (might be due to invalid IL or missing references) //IL_0e38: Unknown result type (might be due to invalid IL or missing references) //IL_0e49: Unknown result type (might be due to invalid IL or missing references) //IL_0e4e: Unknown result type (might be due to invalid IL or missing references) //IL_0e65: Unknown result type (might be due to invalid IL or missing references) //IL_0e77: Unknown result type (might be due to invalid IL or missing references) //IL_0e7c: Unknown result type (might be due to invalid IL or missing references) //IL_0e99: Unknown result type (might be due to invalid IL or missing references) //IL_0ee3: Unknown result type (might be due to invalid IL or missing references) //IL_0eed: Expected O, but got Unknown //IL_0f3d: Unknown result type (might be due to invalid IL or missing references) //IL_0f60: Unknown result type (might be due to invalid IL or missing references) //IL_0f65: Unknown result type (might be due to invalid IL or missing references) //IL_0f87: Unknown result type (might be due to invalid IL or missing references) //IL_0fa2: Unknown result type (might be due to invalid IL or missing references) //IL_0fe1: Unknown result type (might be due to invalid IL or missing references) //IL_1006: Unknown result type (might be due to invalid IL or missing references) //IL_100b: Unknown result type (might be due to invalid IL or missing references) //IL_103c: Unknown result type (might be due to invalid IL or missing references) //IL_104e: Unknown result type (might be due to invalid IL or missing references) //IL_1053: Unknown result type (might be due to invalid IL or missing references) //IL_1063: Unknown result type (might be due to invalid IL or missing references) //IL_1075: Unknown result type (might be due to invalid IL or missing references) //IL_107a: Unknown result type (might be due to invalid IL or missing references) //IL_10b6: Unknown result type (might be due to invalid IL or missing references) //IL_10bb: Unknown result type (might be due to invalid IL or missing references) //IL_10ce: Unknown result type (might be due to invalid IL or missing references) //IL_10d8: Expected O, but got Unknown //IL_10f5: Unknown result type (might be due to invalid IL or missing references) //IL_10ff: Unknown result type (might be due to invalid IL or missing references) //IL_1104: Unknown result type (might be due to invalid IL or missing references) //IL_111a: Unknown result type (might be due to invalid IL or missing references) //IL_1124: Unknown result type (might be due to invalid IL or missing references) //IL_1129: Unknown result type (might be due to invalid IL or missing references) //IL_113f: Unknown result type (might be due to invalid IL or missing references) //IL_1149: Unknown result type (might be due to invalid IL or missing references) //IL_114e: Unknown result type (might be due to invalid IL or missing references) //IL_1165: Unknown result type (might be due to invalid IL or missing references) //IL_116a: Unknown result type (might be due to invalid IL or missing references) //IL_117b: Unknown result type (might be due to invalid IL or missing references) //IL_1180: Unknown result type (might be due to invalid IL or missing references) //IL_1191: Unknown result type (might be due to invalid IL or missing references) //IL_1196: Unknown result type (might be due to invalid IL or missing references) //IL_11a7: Unknown result type (might be due to invalid IL or missing references) //IL_11ac: Unknown result type (might be due to invalid IL or missing references) //IL_11c3: Unknown result type (might be due to invalid IL or missing references) //IL_11d5: Unknown result type (might be due to invalid IL or missing references) //IL_11da: Unknown result type (might be due to invalid IL or missing references) //IL_11f7: Unknown result type (might be due to invalid IL or missing references) //IL_1241: Unknown result type (might be due to invalid IL or missing references) //IL_124b: Expected O, but got Unknown //IL_1289: Unknown result type (might be due to invalid IL or missing references) //IL_12ac: Unknown result type (might be due to invalid IL or missing references) //IL_12b1: Unknown result type (might be due to invalid IL or missing references) //IL_12d3: Unknown result type (might be due to invalid IL or missing references) //IL_12ee: Unknown result type (might be due to invalid IL or missing references) //IL_132d: Unknown result type (might be due to invalid IL or missing references) //IL_1352: Unknown result type (might be due to invalid IL or missing references) //IL_1357: Unknown result type (might be due to invalid IL or missing references) //IL_1388: Unknown result type (might be due to invalid IL or missing references) //IL_139a: Unknown result type (might be due to invalid IL or missing references) //IL_139f: Unknown result type (might be due to invalid IL or missing references) //IL_13af: Unknown result type (might be due to invalid IL or missing references) //IL_13c1: Unknown result type (might be due to invalid IL or missing references) //IL_13c6: Unknown result type (might be due to invalid IL or missing references) //IL_1418: Unknown result type (might be due to invalid IL or missing references) //IL_142a: Unknown result type (might be due to invalid IL or missing references) //IL_142f: Unknown result type (might be due to invalid IL or missing references) //IL_1442: Unknown result type (might be due to invalid IL or missing references) //IL_144c: Expected O, but got Unknown //IL_149f: Unknown result type (might be due to invalid IL or missing references) //IL_14b1: Unknown result type (might be due to invalid IL or missing references) //IL_14b6: Unknown result type (might be due to invalid IL or missing references) //IL_14c9: Unknown result type (might be due to invalid IL or missing references) //IL_14d3: Expected O, but got Unknown //IL_14f0: Unknown result type (might be due to invalid IL or missing references) //IL_14fa: Unknown result type (might be due to invalid IL or missing references) //IL_14ff: Unknown result type (might be due to invalid IL or missing references) //IL_1515: Unknown result type (might be due to invalid IL or missing references) //IL_151f: Unknown result type (might be due to invalid IL or missing references) //IL_1524: Unknown result type (might be due to invalid IL or missing references) //IL_153a: Unknown result type (might be due to invalid IL or missing references) //IL_1544: Unknown result type (might be due to invalid IL or missing references) //IL_1549: Unknown result type (might be due to invalid IL or missing references) //IL_1560: Unknown result type (might be due to invalid IL or missing references) //IL_1565: Unknown result type (might be due to invalid IL or missing references) //IL_1576: Unknown result type (might be due to invalid IL or missing references) //IL_157b: Unknown result type (might be due to invalid IL or missing references) //IL_158c: Unknown result type (might be due to invalid IL or missing references) //IL_1591: Unknown result type (might be due to invalid IL or missing references) //IL_15a2: Unknown result type (might be due to invalid IL or missing references) //IL_15a7: Unknown result type (might be due to invalid IL or missing references) //IL_15be: Unknown result type (might be due to invalid IL or missing references) //IL_15d0: Unknown result type (might be due to invalid IL or missing references) //IL_15d5: Unknown result type (might be due to invalid IL or missing references) //IL_15f2: Unknown result type (might be due to invalid IL or missing references) //IL_1619: Unknown result type (might be due to invalid IL or missing references) //IL_162b: Unknown result type (might be due to invalid IL or missing references) //IL_1630: Unknown result type (might be due to invalid IL or missing references) //IL_1652: Unknown result type (might be due to invalid IL or missing references) //IL_168b: Unknown result type (might be due to invalid IL or missing references) //IL_1695: Expected O, but got Unknown //IL_16d9: Unknown result type (might be due to invalid IL or missing references) //IL_16fc: Unknown result type (might be due to invalid IL or missing references) //IL_1701: Unknown result type (might be due to invalid IL or missing references) //IL_1723: Unknown result type (might be due to invalid IL or missing references) //IL_173e: Unknown result type (might be due to invalid IL or missing references) //IL_1759: Unknown result type (might be due to invalid IL or missing references) //IL_177e: Unknown result type (might be due to invalid IL or missing references) //IL_1783: Unknown result type (might be due to invalid IL or missing references) //IL_17b4: Unknown result type (might be due to invalid IL or missing references) //IL_17c6: Unknown result type (might be due to invalid IL or missing references) //IL_17cb: Unknown result type (might be due to invalid IL or missing references) //IL_17db: Unknown result type (might be due to invalid IL or missing references) //IL_17ed: Unknown result type (might be due to invalid IL or missing references) //IL_17f2: Unknown result type (might be due to invalid IL or missing references) //IL_182f: Unknown result type (might be due to invalid IL or missing references) //IL_1834: Unknown result type (might be due to invalid IL or missing references) //IL_1847: Unknown result type (might be due to invalid IL or missing references) //IL_1851: Expected O, but got Unknown //IL_186e: Unknown result type (might be due to invalid IL or missing references) //IL_1878: Unknown result type (might be due to invalid IL or missing references) //IL_187d: Unknown result type (might be due to invalid IL or missing references) //IL_1893: Unknown result type (might be due to invalid IL or missing references) //IL_189d: Unknown result type (might be due to invalid IL or missing references) //IL_18a2: Unknown result type (might be due to invalid IL or missing references) //IL_18b9: Unknown result type (might be due to invalid IL or missing references) //IL_18be: Unknown result type (might be due to invalid IL or missing references) //IL_18cf: Unknown result type (might be due to invalid IL or missing references) //IL_18d4: Unknown result type (might be due to invalid IL or missing references) //IL_18eb: Unknown result type (might be due to invalid IL or missing references) //IL_18fd: Unknown result type (might be due to invalid IL or missing references) //IL_1902: Unknown result type (might be due to invalid IL or missing references) //IL_191f: Unknown result type (might be due to invalid IL or missing references) //IL_1983: Unknown result type (might be due to invalid IL or missing references) //IL_198f: Unknown result type (might be due to invalid IL or missing references) //IL_199b: Unknown result type (might be due to invalid IL or missing references) //IL_19a7: Unknown result type (might be due to invalid IL or missing references) //IL_19ba: Unknown result type (might be due to invalid IL or missing references) //IL_19cd: Unknown result type (might be due to invalid IL or missing references) //IL_19d9: Unknown result type (might be due to invalid IL or missing references) //IL_19fa: Unknown result type (might be due to invalid IL or missing references) //IL_1a06: Unknown result type (might be due to invalid IL or missing references) //IL_1a12: Unknown result type (might be due to invalid IL or missing references) //IL_1a1e: Unknown result type (might be due to invalid IL or missing references) //IL_1a31: Unknown result type (might be due to invalid IL or missing references) //IL_1a52: Unknown result type (might be due to invalid IL or missing references) //IL_1a5e: Unknown result type (might be due to invalid IL or missing references) //IL_1a6a: Unknown result type (might be due to invalid IL or missing references) //IL_1a76: Unknown result type (might be due to invalid IL or missing references) //IL_1a89: Unknown result type (might be due to invalid IL or missing references) //IL_1aaa: Unknown result type (might be due to invalid IL or missing references) //IL_1ab6: Unknown result type (might be due to invalid IL or missing references) //IL_1ac2: Unknown result type (might be due to invalid IL or missing references) //IL_1ace: Unknown result type (might be due to invalid IL or missing references) //IL_1ae1: Unknown result type (might be due to invalid IL or missing references) //IL_1af4: Unknown result type (might be due to invalid IL or missing references) //IL_1b00: Unknown result type (might be due to invalid IL or missing references) //IL_1b21: Unknown result type (might be due to invalid IL or missing references) //IL_1b2d: Unknown result type (might be due to invalid IL or missing references) //IL_1b39: Unknown result type (might be due to invalid IL or missing references) //IL_1b45: Unknown result type (might be due to invalid IL or missing references) //IL_1b58: Unknown result type (might be due to invalid IL or missing references) //IL_2d42: Unknown result type (might be due to invalid IL or missing references) //IL_2d13: Unknown result type (might be due to invalid IL or missing references) //IL_2eba: Unknown result type (might be due to invalid IL or missing references) //IL_2efd: Unknown result type (might be due to invalid IL or missing references) //IL_2f0d: Unknown result type (might be due to invalid IL or missing references) //IL_3212: Unknown result type (might be due to invalid IL or missing references) //IL_3222: Unknown result type (might be due to invalid IL or missing references) //IL_2f57: Unknown result type (might be due to invalid IL or missing references) //IL_2f5c: Unknown result type (might be due to invalid IL or missing references) //IL_2f94: Unknown result type (might be due to invalid IL or missing references) //IL_2fa6: Unknown result type (might be due to invalid IL or missing references) //IL_3088: Unknown result type (might be due to invalid IL or missing references) //IL_3098: Unknown result type (might be due to invalid IL or missing references) //IL_343b: Unknown result type (might be due to invalid IL or missing references) //IL_344b: Unknown result type (might be due to invalid IL or missing references) switch (<>1__state) { default: return false; case 0: <>1__state = -1; <targetPlayerCtrl>5__1 = null; if ((Object)(object)((GrabbableObject)<>4__this).playerHeldBy != (Object)null) { <targetPlayerCtrl>5__1 = ((GrabbableObject)<>4__this).playerHeldBy; Debug.Log((object)("[ElderStaffItem] Ziel = Stab-Halter: " + <targetPlayerCtrl>5__1.playerUsername)); } if ((Object)(object)<targetPlayerCtrl>5__1 == (Object)null) { <targetPlayerCtrl>5__1 = <>4__this.FindPlayerById(targetPlayerId); if ((Object)(object)<targetPlayerCtrl>5__1 != (Object)null) { Debug.Log((object)("[ElderStaffItem] Ziel per ID gefunden: " + <targetPlayerCtrl>5__1.playerUsername)); } } if ((Object)(object)<targetPlayerCtrl>5__1 == (Object)null) { Debug.Log((object)$"[ElderStaffItem] Ziel-Spieler {targetPlayerId} nicht gefunden!"); <>4__this._dementorActive = false; return false; } <targetPlayer>5__2 = (Component)(object)<targetPlayerCtrl>5__1; <playerPos>5__3 = <targetPlayer>5__2.transform.position; Debug.Log((object)$"[ElderStaffItem] Dementor spawnt bei {spawnPos} (Ziel: Spieler {targetPlayerId})"); <dementor>5__4 = new GameObject("Dementor"); <dementor>5__4.transform.position = spawnPos; <lookAtPlayer>5__5 = <playerPos>5__3 - spawnPos; <lookAtPlayer>5__5.y = 0f; if (((Vector3)(ref <lookAtPlayer>5__5)).sqrMagnitude > 0.01f) { <dementor>5__4.transform.rotation = Quaternion.LookRotation(((Vector3)(ref <lookAtPlayer>5__5)).normalized); } <rng>5__6 = new Random(); <dementorAudio>5__7 = <dementor>5__4.AddComponent<AudioSource>(); <dementorAudio>5__7.spatialBlend = 1f; <dementorAudio>5__7.volume = 0f; <dementorAudio>5__7.loop = false; <auraLight>5__8 = <dementor>5__4.AddComponent<Light>(); <auraLight>5__8.color = new Color(0.05f, 0.02f, 0.15f); <auraLight>5__8.intensity = 60f; <auraLight>5__8.range = 25f; <auraLight>5__8.type = (LightType)2; <frostObj>5__9 = new GameObject("FrostLight"); <frostObj>5__9.transform.SetParent(<dementor>5__4.transform); <frostObj>5__9.transform.localPosition = Vector3.zero; <frostLight>5__10 = <frostObj>5__9.AddComponent<Light>(); <frostLight>5__10.color = new Color(0.15f, 0.2f, 0.5f); <frostLight>5__10.intensity = 40f; <frostLight>5__10.range = 18f; <frostLight>5__10.type = (LightType)2; <lineMat>5__11 = new Material(Shader.Find("Sprites/Default")); <modelInstance>5__12 = null; try { <pluginType>5__40 = Type.GetType("ElderStaffMod.Plugin, ElderStaffMod"); if (<pluginType>5__40 != null) { <prefabField>5__41 = <pluginType>5__40.GetField("DementorModelPrefab", BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); if (<prefabField>5__41 != null) { ref GameObject reference = ref <prefab>5__42; object? value = <prefabField>5__41.GetValue(null); reference = (GameObject)((value is GameObject) ? value : null); if ((Object)(object)<prefab>5__42 != (Object)null) { <modelInstance>5__12 = Object.Instantiate<GameObject>(<prefab>5__42, <dementor>5__4.transform); ((Object)<modelInstance>5__12).name = "DementorBody"; <modelInstance>5__12.transform.localPosition = new Vector3(0f, (0f - <>4__this._dementorScale) * 0.5f, 0f); <modelInstance>5__12.transform.localRotation = Quaternion.Euler(0f, 0f, 0f); <>4__this._dementorScale = 2.4f; <modelInstance>5__12.transform.localScale = Vector3.one * <>4__this._dementorScale; <darkShader>5__43 = Shader.Find("HDRP/Lit"); if ((Object)(object)<darkShader>5__43 == (Object)null) { <darkShader>5__43 = Shader.Find("HDRenderPipeline/Lit"); } if ((Object)(object)<darkShader>5__43 == (Object)null) { <darkShader>5__43 = Shader.Find("Lit"); } if ((Object)(object)<darkShader>5__43 == (Object)null) { <darkShader>5__43 = Shader.Find("Standard"); } Debug.Log((object)("[ElderStaffItem] Dementor-Shader: " + (((Object)(object)<darkShader>5__43 != (Object)null) ? ((Object)<darkShader>5__43).name : "KEINER GEFUNDEN"))); <>s__44 = <modelInstance>5__12.GetComponentsInChildren<Renderer>(); for (<>s__45 = 0; <>s__45 < <>s__44.Length; <>s__45++) { <rend>5__46 = <>s__44[<>s__45]; if ((Object)(object)<darkShader>5__43 != (Object)null) { <mats>5__47 = (Material[])(object)new Material[<rend>5__46.sharedMaterials.Length]; <m>5__48 = 0; while (<m>5__48 < <mats>5__47.Length) { <dm>5__49 = new Material(<darkShader>5__43); <dm>5__49.color = new Color(0.03f, 0.015f, 0.04f, 1f); <dm>5__49.SetFloat("_Smoothness", 0.1f); <dm>5__49.SetFloat("_Metallic", 0f); <dm>5__49.SetColor("_EmissiveColor", new Color(0.015f, 0.005f, 0.025f) * 2f); <dm>5__49.EnableKeyword("_EMISSION"); <dm>5__49.SetFloat("_Glossiness", 0.1f); <dm>5__49.SetColor("_EmissionColor", new Color(0.015f, 0.005f, 0.025f)); <mats>5__47[<m>5__48] = <dm>5__49; <dm>5__49 = null; <m>5__48++; } <rend>5__46.materials = <mats>5__47; <mats>5__47 = null; } <rend>5__46 = null; } <>s__44 = null; <>s__50 = <modelInstance>5__12.GetComponentsInChildren<Collider>(); for (<>s__51 = 0; <>s__51 < <>s__50.Length; <>s__51++) { <col>5__52 = <>s__50[<>s__51]; Object.Destroy((Object)(object)<col>5__52); <col>5__52 = null; } <>s__50 = null; try { <headHeight>5__53 = <>4__this._dementorScale * 1.15f; <headSmoke>5__54 = new GameObject("DementorHeadSmoke"); <headSmoke>5__54.transform.SetParent(<dementor>5__4.transform, false); <headSmoke>5__54.transform.localPosition = new Vector3(0f, <headHeight>5__53, 0.1f); <ps>5__55 = <headSmoke>5__54.AddComponent<ParticleSystem>(); <main>5__56 = <ps>5__55.main; ((MainModule)(ref <main>5__56)).loop = true; ((MainModule)(ref <main>5__56)).startLifetime = new MinMaxCurve(0.8f, 1.5f); ((MainModule)(ref <main>5__56)).startSpeed = new MinMaxCurve(0.05f, 0.25f); ((MainModule)(ref <main>5__56)).startSize = new MinMaxCurve(0.3f * <>4__this._dementorScale / 3f, 0.7f * <>4__this._dementorScale / 3f); ((MainModule)(ref <main>5__56)).startColor = MinMaxGradient.op_Implicit(new Color(0.02f, 0.01f, 0.03f, 0.85f)); ((MainModule)(ref <main>5__56)).maxParticles = 40; ((MainModule)(ref <main>5__56)).simulationSpace = (ParticleSystemSimulationSpace)1; ((MainModule)(ref <main>5__56)).gravityModifier = MinMaxCurve.op_Implicit(-0.03f); <emission>5__57 = <ps>5__55.emission; ((EmissionModule)(ref <emission>5__57)).rateOverTime = MinMaxCurve.op_Implicit(18f); <shape>5__58 = <ps>5__55.shape; ((ShapeModule)(ref <shape>5__58)).shapeType = (ParticleSystemShapeType)0; ((ShapeModule)(ref <shape>5__58)).radius = 0.25f * <>4__this._dementorScale / 3f; <sizeOverLife>5__59 = <ps>5__55.sizeOverLifetime; ((SizeOverLifetimeModule)(ref <sizeOverLife>5__59)).enabled = true; <sizeCurve>5__60 = new AnimationCurve(); <sizeCurve>5__60.AddKey(0f, 0.5f); <sizeCurve>5__60.AddKey(0.3f, 1f); <sizeCurve>5__60.AddKey(1f, 0.2f); ((SizeOverLifetimeModule)(ref <sizeOverLife>5__59)).size = new MinMaxCurve(1f, <sizeCurve>5__60); <colorOverLife>5__61 = <ps>5__55.colorOverLifetime; ((ColorOverLifetimeModule)(ref <colorOverLife>5__61)).enabled = true; <grad>5__62 = new Gradient(); <grad>5__62.SetKeys((GradientColorKey[])(object)new GradientColorKey[3] { new GradientColorKey(new Color(0.02f, 0.01f, 0.03f), 0f), new GradientColorKey(new Color(0.05f, 0.02f, 0.06f), 0.5f), new GradientColorKey(new Color(0.01f, 0f, 0.02f), 1f) }, (GradientAlphaKey[])(object)new GradientAlphaKey[4] { new GradientAlphaKey(0f, 0f), new GradientAlphaKey(0.9f, 0.15f), new GradientAlphaKey(0.7f, 0.6f), new GradientAlphaKey(0f, 1f) }); ((ColorOverLifetimeModule)(ref <colorOverLife>5__61)).color = MinMaxGradient.op_Implicit(<grad>5__62); <rotOverLife>5__63 = <ps>5__55.rotationOverLifetime; ((RotationOverLifetimeModule)(ref <rotOverLife>5__63)).enabled = true; ((RotationOverLifetimeModule)(ref <rotOverLife>5__63)).z = new MinMaxCurve(-1f, 1f); <noise>5__64 = <ps>5__55.noise; ((NoiseModule)(ref <noise>5__64)).enabled = true; ((NoiseModule)(ref <noise>5__64)).strength = MinMaxCurve.op_Implicit(0.3f); ((NoiseModule)(ref <noise>5__64)).frequency = 1.5f; ((NoiseModule)(ref <noise>5__64)).scrollSpeed = MinMaxCurve.op_Implicit(0.5f); <renderer>5__65 = <headSmoke>5__54.GetComponent<ParticleSystemRenderer>(); ((Renderer)<renderer>5__65).material = new Material(Shader.Find("Particles/Standard Unlit") ?? Shader.Find("Legacy Shaders/Particles/Alpha Blended") ?? Shader.Find("Standard")); ((Renderer)<renderer>5__65).material.color = new Color(0.02f, 0.01f, 0.03f, 0.8f); <headWisps>5__66 = new GameObject("DementorHeadWisps"); <headWisps>5__66.transform.SetParent(<dementor>5__4.transform, false); <headWisps>5__66.transform.localPosition = new Vector3(0f, <headHeight>5__53 - 0.1f, 0.15f); <ps2>5__67 = <headWisps>5__66.AddComponent<ParticleSystem>(); <main2>5__68 = <ps2>5__67.main; ((MainModule)(ref <main2>5__68)).loop = true; ((MainModule)(ref <main2>5__68)).startLifetime = new MinMaxCurve(0.4f, 0.9f); ((MainModule)(ref <main2>5__68)).startSpeed = new MinMaxCurve(0.1f, 0.4f); ((MainModule)(ref <main2>5__68)).startSize = new MinMaxCurve(0.05f, 0.15f); ((MainModule)(ref <main2>5__68)).startColor = MinMaxGradient.op_Implicit(new Color(0.03f, 0.01f, 0.05f, 0.6f)); ((MainModule)(ref <main2>5__68)).maxParticles = 25; ((MainModule)(ref <main2>5__68)).simulationSpace = (ParticleSystemSimulationSpace)1; ((MainModule)(ref <main2>5__68)).gravityModifier = MinMaxCurve.op_Implicit(-0.08f); <emission2>5__69 = <ps2>5__67.emission; ((EmissionModule)(ref <emission2>5__69)).rateOverTime = MinMaxCurve.op_Implicit(12f); <shape2>5__70 = <ps2>5__67.shape; ((ShapeModule)(ref <shape2>5__70)).shapeType = (ParticleSystemShapeType)4; ((ShapeModule)(ref <shape2>5__70)).angle = 25f; ((ShapeModule)(ref <shape2>5__70)).radius = 0.1f * <>4__this._dementorScale / 3f; <colorOverLife2>5__71 = <ps2>5__67.colorOverLifetime; ((ColorOverLifetimeModule)(ref <colorOverLife2>5__71)).enabled = true; <grad2>5__72 = new Gradient(); <grad2>5__72.SetKeys((GradientColorKey[])(object)new GradientColorKey[2] { new GradientColorKey(new Color(0.04f, 0.01f, 0.06f), 0f), new GradientColorKey(new Color(0.01f, 0f, 0.02f), 1f) }, (GradientAlphaKey[])(object)new GradientAlphaKey[2] { new GradientAlphaKey(0.6f, 0f), new GradientAlphaKey(0f, 1f) }); ((ColorOverLifetimeModule)(ref <colorOverLife2>5__71)).color = MinMaxGradient.op_Implicit(<grad2>5__72); <noise2>5__73 = <ps2>5__67.noise; ((NoiseModule)(ref <noise2>5__73)).enabled = true; ((NoiseModule)(ref <noise2>5__73)).strength = MinMaxCurve.op_Implicit(0.5f); ((NoiseModule)(ref <noise2>5__73)).frequency = 2f; <renderer2>5__74 = <headWisps>5__66.GetComponent<ParticleSystemRenderer>(); ((Renderer)<renderer2>5__74).material = ((Renderer)<renderer>5__65).material; <faceCloud>5__75 = new GameObject("DementorFaceCloud"); <faceCloud>5__75.transform.SetParent(<dementor>5__4.transform, false); <faceCloud>5__75.transform.localPosition = new Vector3(0f, <headHeight>5__53 - 0.15f, 0.25f * <>4__this._dementorScale / 3f); <ps3>5__76 = <faceCloud>5__75.AddComponent<ParticleSystem>(); <main3>5__77 = <ps3>5__76.main; ((MainModule)(ref <main3>5__77)).loop = true; ((MainModule)(ref <main3>5__77)).startLifetime = new MinMaxCurve(1f, 2f); ((MainModule)(ref <main3>5__77)).startSpeed = new MinMaxCurve(0.02f, 0.1f); ((MainModule)(ref <main3>5__77)).startSize = new MinMaxCurve(0.4f * <>4__this._dementorScale / 3f, 0.9f * <>4__this._dementorScale / 3f); ((MainModule)(ref <main3>5__77)).startColor = MinMaxGradient.op_Implicit(new Color(0.01f, 0.005f, 0.015f, 0.95f)); ((MainModule)(ref <main3>5__77)).maxParticles = 30; ((MainModule)(ref <main3>5__77)).simulationSpace = (ParticleSystemSimulationSpace)0; ((MainModule)(ref <main3>5__77)).gravityModifier = MinMaxCurve.op_Implicit(0f); <emission3>5__78 = <ps3>5__76.emission; ((EmissionModule)(ref <emission3>5__78)).rateOverTime = MinMaxCurve.op_Implicit(15f); <shape3>5__79 = <ps3>5__76.shape; ((ShapeModule)(ref <shape3>5__79)).shapeType = (ParticleSystemShapeType)0; ((ShapeModule)(ref <shape3>5__79)).radius = 0.15f * <>4__this._dementorScale / 3f; <colorOL3>5__80 = <ps3>5__76.colorOverLifetime; ((ColorOverLifetimeModule)(ref <colorOL3>5__80)).enabled = true; <grad3>5__81 = new Gradient(); <grad3>5__81.SetKeys((GradientColorKey[])(object)new GradientColorKey[3] { new GradientColorKey(new Color(0.01f, 0.005f, 0.015f), 0f), new GradientColorKey(new Color(0.02f, 0.01f, 0.025f), 0.5f), new GradientColorKey(new Color(0.005f, 0f, 0.01f), 1f) }, (GradientAlphaKey[])(object)new GradientAlphaKey[4] { new GradientAlphaKey(0f, 0f), new GradientAlphaKey(0.95f, 0.1f), new GradientAlphaKey(0.9f, 0.7f), new GradientAlphaKey(0f, 1f) }); ((ColorOverLifetimeModule)(ref <colorOL3>5__80)).color = MinMaxGradient.op_Implicit(<grad3>5__81); <noise3>5__82 = <ps3>5__76.noise; ((NoiseModule)(ref <noise3>5__82)).enabled = true; ((NoiseModule)(ref <noise3>5__82)).strength = MinMaxCurve.op_Implicit(0.15f); ((NoiseModule)(ref <noise3>5__82)).frequency = 2f; <renderer3>5__83 = <faceCloud>5__75.GetComponent<ParticleSystemRenderer>(); ((Renderer)<renderer3>5__83).material = ((Renderer)<renderer>5__65).material; <bodySmoke>5__84 = new GameObject("DementorBodySmoke"); <bodySmoke>5__84.transform.SetParent(<dementor>5__4.transform, false); <bodySmoke>5__84.transform.localPosition = new Vector3(0f, <headHeight>5__53 * 0.4f, 0f); <ps4>5__85 = <bodySmoke>5__84.AddComponent<ParticleSystem>(); <main4>5__86 = <ps4>5__85.main; ((MainModule)(ref <main4>5__86)).loop = true; ((MainModule)(ref <main4>5__86)).startLifetime = new MinMaxCurve(1.5f, 3f); ((MainModule)(ref <main4>5__86)).startSpeed = new MinMaxCurve(0.05f, 0.2f); ((MainModule)(ref <main4>5__86)).startSize = new MinMaxCurve(0.3f * <>4__this._dementorScale / 3f, 0.8f * <>4__this._dementorScale / 3f); ((MainModule)(ref <main4>5__86)).startColor = MinMaxGradient.op_Implicit(new Color(0.02f, 0.01f, 0.03f, 0.6f)); ((MainModule)(ref <main4>5__86)).maxParticles = 50; ((MainModule)(ref <main4>5__86)).simulationSpace = (ParticleSystemSimulationSpace)1; ((MainModule)(ref <main4>5__86)).gravityModifier = MinMaxCurve.op_Implicit(-0.02f); <emission4>5__87 = <ps4>5__85.emission; ((EmissionModule)(ref <emission4>5__87)).rateOverTime = MinMaxCurve.op_Implicit(14f); <shape4>5__88 = <ps4>5__85.shape; ((ShapeModule)(ref <shape4>5__88)).shapeType = (ParticleSystemShapeType)5; ((ShapeModule)(ref <shape4>5__88)).scale = new Vector3(0.6f * <>4__this._dementorScale / 3f, <headHeight>5__53 * 0.7f, 0.4f * <>4__this._dementorScale / 3f); <sizeOL4>5__89 = <ps4>5__85.sizeOverLifetime; ((SizeOverLifetimeModule)(ref <sizeOL4>5__89)).enabled = true; <sizeCurve4>5__90 = new AnimationCurve(); <sizeCurve4>5__90.AddKey(0f, 0.6f); <sizeCurve4>5__90.AddKey(0.4f, 1f); <sizeCurve4>5__90.AddKey(1f, 0.3f); ((SizeOverLifetimeModule)(ref <sizeOL4>5__89)).size = new MinMaxCurve(1f, <sizeCurve4>5__90); <colorOL4>5__91 = <ps4>5__85.colorOverLifetime; ((ColorOverLifetimeModule)(ref <colorOL4>5__91)).enabled = true; <grad4>5__92 = new Gradient(); <grad4>5__92.SetKeys((GradientColorKey[])(object)new GradientColorKey[3] { new GradientColorKey(new Color(0.02f, 0.01f, 0.03f), 0f), new GradientColorKey(new Color(0.03f, 0.015f, 0.04f), 0.3f), new GradientColorKey(new Color(0.01f, 0f, 0.015f), 1f) }, (GradientAlphaKey[])(object)new GradientAlphaKey[4] { new GradientAlphaKey(0f, 0f), new GradientAlphaKey(0.6f, 0.15f), new GradientAlphaKey(0.4f, 0.6f), new GradientAlphaKey(0f, 1f) }); ((ColorOverLifetimeModule)(ref <colorOL4>5__91)).color = MinMaxGradient.op_Implicit(<grad4>5__92); <noise4>5__93 = <ps4>5__85.noise; ((NoiseModule)(ref <noise4>5__93)).enabled = true; ((NoiseModule)(ref <noise4>5__93)).strength = MinMaxCurve.op_Implicit(0.4f); ((NoiseModule)(ref <noise4>5__93)).frequency = 1f; ((NoiseModule)(ref <noise4>5__93)).scrollSpeed = MinMaxCurve.op_Implicit(0.3f); <rotOL4>5__94 = <ps4>5__85.rotationOverLifetime; ((RotationOverLifetimeModule)(ref <rotOL4>5__94)).enabled = true; ((RotationOverLifetimeModule)(ref <rotOL4>5__94)).z = new MinMaxCurve(-0.5f, 0.5f); <renderer4>5__95 = <bodySmoke>5__84.GetComponent<ParticleSystemRenderer>(); ((Renderer)<renderer4>5__95).material = ((Renderer)<renderer>5__65).material; <hemWisps>5__96 = new GameObject("DementorHemWisps"); <hemWisps>5__96.transform.SetParent(<dementor>5__4.transform, false); <hemWisps>5__96.transform.localPosition = new Vector3(0f, (0f - <>4__this._dementorScale) * 0.3f, 0f); <ps5>5__97 = <hemWisps>5__96.AddComponent<ParticleSystem>(); <main5>5__98 = <ps5>5__97.main; ((MainModule)(ref <main5>5__98)).loop = true; ((MainModule)(ref <main5>5__98)).startLifetime = new MinMaxCurve(0.6f, 1.2f); ((MainModule)(ref <main5>5__98)).startSpeed = new MinMaxCurve(0.1f, 0.5f); ((MainModule)(ref <main5>5__98)).startSize = new MinMaxCurve(0.1f, 0.35f); ((MainModule)(ref <main5>5__98)).startColor = MinMaxGradient.op_Implicit(new Color(0.015f, 0.005f, 0.025f, 0.5f)); ((MainModule)(ref <main5>5__98)).maxParticles = 30; ((MainModule)(ref <main5>5__98)).simulationSpace = (ParticleSystemSimulationSpace)1; ((MainModule)(ref <main5>5__98)).gravityModifier = MinMaxCurve.op_Implicit(0.15f); <emission5>5__99 = <ps5>5__97.emission; ((EmissionModule)(ref <emission5>5__99)).rateOverTime = MinMaxCurve.op_Implicit(12f); <shape5>5__100 = <ps5>5__97.shape; ((ShapeModule)(ref <shape5>5__100)).shapeType = (ParticleSystemShapeType)10; ((ShapeModule)(ref <shape5>5__100)).radius = 0.4f * <>4__this._dementorScale / 3f; <colorOL5>5__101 = <ps5>5__97.colorOverLifetime; ((ColorOverLifetimeModule)(ref <colorOL5>5__101)).enabled = true; <grad5>5__102 = new Gradient(); <grad5>5__102.SetKeys((GradientColorKey[])(object)new GradientColorKey[2] { new GradientColorKey(new Color(0.02f, 0.01f, 0.03f), 0f), new GradientColorKey(new Color(0.005f, 0f, 0.01f), 1f) }, (GradientAlphaKey[])(object)new GradientAlphaKey[2] { new GradientAlphaKey(0.5f, 0f), new GradientAlphaKey(0f, 1f) }); ((ColorOverLifetimeModule)(ref <colorOL5>5__101)).color = MinMaxGradient.op_Implicit(<grad5>5__102); <noise5>5__103 = <ps5>5__97.noise; ((NoiseModule)(ref <noise5>5__103)).enabled = true; ((NoiseModule)(ref <noise5>5__103)).strength = MinMaxCurve.op_Implicit(0.6f); ((NoiseModule)(ref <noise5>5__103)).frequency = 2.5f; <renderer5>5__104 = <hemWisps>5__96.GetComponent<ParticleSystemRenderer>(); ((Renderer)<renderer5>5__104).material = ((Renderer)<renderer>5__65).material; Debug.Log((object)"[ElderStaffItem] Dementor Partikel erstellt (Gesicht + Kopf + Koerper + Saum)"); <headSmoke>5__54 = null; <ps>5__55 = null; <main>5__56 = default(MainModule); <emission>5__57 = default(EmissionModule); <shape>5__58 = default(ShapeModule); <sizeOverLife>5__59 = default(SizeOverLifetimeModule); <sizeCurve>5__60 = null; <colorOverLife>5__61 = default(ColorOverLifetimeModule); <grad>5__62 = null; <rotOverLife>5__63 = default(RotationOverLifetimeModule); <noise>5__64 = default(NoiseModule); <renderer>5__65 = null; <headWisps>5__66 = null; <ps2>5__67 = null; <main2>5__68 = default(MainModule); <emission2>5__69 = default(EmissionModule); <shape2>5__70 = default(ShapeModule); <colorOverLife2>5__71 = default(ColorOverLifetimeModule); <grad2>5__72 = null; <noise2>5__73 = default(NoiseModule); <renderer2>5__74 = null; <faceCloud>5__75 = null; <ps3>5__76 = null; <main3>5__77 = default(MainModule); <emission3>5__78 = default(EmissionModule); <shape3>5__79 = default(ShapeModule); <colorOL3>5__80 = default(ColorOverLifetimeModule); <grad3>5__81 = null; <noise3>5__82 = default(NoiseModule); <renderer3>5__83 = null; <bodySmoke>5__84 = null; <ps4>5__85 = null; <main4>5__86 = default(MainModule); <emission4>5__87 = default(EmissionModule); <shape4>5__88 = default(ShapeModule); <sizeOL4>5__89 = default(SizeOverLifetimeModule); <sizeCurve4>5__90 = null; <colorOL4>5__91 = default(ColorOverLifetimeModule); <grad4>5__92 = null; <noise4>5__93 = default(NoiseModule); <rotOL4>5__94 = default(RotationOverLifetimeModule); <renderer4>5__95 = null; <hemWisps>5__96 = null; <ps5>5__97 = null; <main5>5__98 = default(MainModule); <emission5>5__99 = default(EmissionModule); <shape5>5__100 = default(ShapeModule); <colorOL5>5__101 = default(ColorOverLifetimeModule); <grad5>5__102 = null; <noise5>5__103 = default(NoiseModule); <renderer5>5__104 = null; } catch (Exception ex) { <ex>5__105 = ex; Debug.Log((object)("[ElderStaffItem] Kopf-Partikel Fehler: " + <ex>5__105.Message)); } Debug.Log((object)$"[ElderStaffItem] Dementor 3D-Modell geladen! Scale={<modelInstance>5__12.transform.localScale}, Renderers={<modelInstance>5__12.GetComponentsInChildren<Renderer>().Length}"); <darkShader>5__43 = null; } <prefab>5__42 = null; } <prefabField>5__41 = null; } <pluginType>5__40 = null; } catch (Exception ex) { <ex>5__106 = ex; Debug.Log((object)("[ElderStaffItem] Kein 3D-Modell: " + <ex>5__106.Message)); } <bodyLineCount>5__13 = 12; <bodyLRs>5__14 = (LineRenderer[])(object)new LineRenderer[<bodyLineCount>5__13]; if ((Object)(object)<modelInstance>5__12 == (Object)null) { <i>5__107 = 0; while (<i>5__107 < <bodyLineCount>5__13) { <bodyLRs>5__14[<i>5__107] = <>4__this.CreateDementorLine(<dementor>5__4, $"Body_{<i>5__107}", <lineMat>5__11, new Color(0.015f, 0.005f, 0.02f, 0.9f), new Color(0.005f, 0f, 0.01f, 0.4f), 0.25f, 0.08f); <i>5__107++; } } <cloakCount>5__15 = ((!((Object)(object)<modelInstance>5__12 != (Object)null)) ? 8 : 0); <cloakLRs>5__16 = (LineRenderer[])(object)new LineRenderer[<cloakCount>5__15]; <i>5__108 = 0; while (<i>5__108 < <cloakCount>5__15) { <cloakLRs>5__16[<i>5__108] = <>4__this.CreateDementorLine(<dementor>5__4, $"CloakTatter_{<i>5__108}", <lineMat>5__11, new Color(0.025f, 0.005f, 0.04f, 0.8f), new Color(0f, 0f, 0.01f, 0.1f), 0.18f, 0.02f); <i>5__108++; } <smokeCount>5__17 = ((!((Object)(object)<modelInstance>5__12 != (Object)null)) ? 10 : 0); <smokeLRs>5__18 = (LineRenderer[])(object)new LineRenderer[<smokeCount>5__17]; <i>5__109 = 0; while (<i>5__109 < <smokeCount>5__17) { <smokeLRs>5__18[<i>5__109] = <>4__this.CreateDementorLine(<dementor>5__4, $"Smoke_{<i>5__109}", <lineMat>5__11, new Color(0.03f, 0.02f, 0.05f, 0.4f), new Color(0.02f, 0.01f, 0.03f, 0f), 0.15f, 0.01f); <i>5__109++; } <tendrilCount>5__19 = ((!((Object)(object)<modelInstance>5__12 != (Object)null)) ? 5 : 0); <tendrilLRs>5__20 = (LineRenderer[])(object)new LineRenderer[<tendrilCount>5__19]; <i>5__110 = 0; while (<i>5__110 < <tendrilCount>5__19) { <tendrilLRs>5__20[<i>5__110] = <>4__this.CreateDementorLine(<dementor>5__4, $"Tendril_{<i>5__110}", <lineMat>5__11, new Color(0.02f, 0f, 0.035f, 0.6f), new Color(0f, 0f, 0f, 0f), 0.1f, 0.01f); <i>5__110++; } <localPlayer>5__21 = GameNetworkManager.Instance?.localPlayerController; <frostCanvas>5__22 = null; <frostImage>5__23 = null; try { <frostCanvas>5__22 = new GameObject("DementorFrostOverlay"); <canvas>5__111 = <frostCanvas>5__22.AddComponent<Canvas>(); <canvas>5__111.renderMode = (RenderMode)0; <canvas>5__111.sortingOrder = 999; <frostCanvas>5__22.AddComponent<CanvasScaler>(); <imgObj>5__112 = new GameObject("FrostVignette"); <imgObj>5__112.transform.SetParent(<frostCanvas>5__22.transform, false); <frostImage>5__23 = <imgObj>5__112.AddComponent<Image>(); ((Graphic)<frostImage>5__23).color = new Color(0.05f, 0.1f, 0.25f, 0f); <rt>5__113 = <imgObj>5__112.GetComponent<RectTransform>(); <rt>5__113.anchorMin = Vector2.zero; <rt>5__113.anchorMax = Vector2.one; <rt>5__113.offsetMin = Vector2.zero; <rt>5__113.offsetMax = Vector2.zero; Debug.Log((object)"[ElderStaffItem] Frost-Overlay erstellt."); <canvas>5__111 = null; <imgObj>5__112 = null; <rt>5__113 = null; } catch (Exception ex) { <ex>5__114 = ex; Debug.Log((object)("[ElderStaffItem] Frost-Overlay Fehler: " + <ex>5__114.Message)); } <dementorTrail>5__24 = null; try { <dementorTrail>5__24 = <dementor>5__4.AddComponent<TrailRenderer>(); <dementorTrail>5__24.time = 2.5f; <dementorTrail>5__24.startW