Decompiled source of EventAlert v1.1.0
GDWeave/mods/EventAlert/EventAlert.dll
Decompiled a month 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.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Text.Json.Serialization; using GDWeave; using GDWeave.Godot; using GDWeave.Godot.Variants; using GDWeave.Modding; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(/*Could not decode attribute arguments.*/)] [assembly: TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] [assembly: AssemblyCompany("EventAlert")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+981992c573ef46e7ea92acf2da2aa3939979234f")] [assembly: AssemblyProduct("EventAlert")] [assembly: AssemblyTitle("EventAlert")] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] namespace EventAlert; public class Config { [JsonInclude] public bool HideVanillaChatPrompts = true; [JsonInclude] public bool ShowLogs = true; [JsonInclude] public bool ShowSeconds = true; [JsonInclude] public bool MeteorAlert = true; [JsonInclude] public bool RainAlert = true; [JsonInclude] public bool VoidPortalAlert = true; } public class MeteorSpawnPatch : IScriptMod { [CompilerGenerated] private sealed class <Modify>d__4 : global::System.Collections.Generic.IEnumerable<Token>, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator<Token>, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; private string path; public string <>3__path; private global::System.Collections.Generic.IEnumerable<Token> tokens; public global::System.Collections.Generic.IEnumerable<Token> <>3__tokens; public MeteorSpawnPatch <>4__this; private TokenConsumer <newlineConsumer>5__1; private MultiTokenWaiter <readyMatch>5__2; private global::System.Collections.Generic.IEnumerator<Token> <>s__3; private Token <token>5__4; Token global::System.Collections.Generic.IEnumerator<Token>.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <Modify>d__4(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { int num = <>1__state; if (num != -3 && (uint)(num - 1) > 107u) { return; } try { } finally { <>m__Finally1(); } } private bool MoveNext() { //IL_05bf: Unknown result type (might be due to invalid IL or missing references) //IL_05c9: Expected O, but got Unknown //IL_05ec: Unknown result type (might be due to invalid IL or missing references) //IL_05f6: Expected O, but got Unknown //IL_0612: Unknown result type (might be due to invalid IL or missing references) //IL_061c: Expected O, but got Unknown //IL_063f: Unknown result type (might be due to invalid IL or missing references) //IL_0649: Expected O, but got Unknown //IL_0665: Unknown result type (might be due to invalid IL or missing references) //IL_066f: Expected O, but got Unknown //IL_0692: Unknown result type (might be due to invalid IL or missing references) //IL_069c: Expected O, but got Unknown //IL_06bf: Unknown result type (might be due to invalid IL or missing references) //IL_06c9: Expected O, but got Unknown //IL_06e9: Unknown result type (might be due to invalid IL or missing references) //IL_06f3: Expected O, but got Unknown //IL_0755: Unknown result type (might be due to invalid IL or missing references) //IL_075f: Expected O, but got Unknown //IL_077c: Unknown result type (might be due to invalid IL or missing references) //IL_0786: Expected O, but got Unknown //IL_07aa: Unknown result type (might be due to invalid IL or missing references) //IL_07b4: Expected O, but got Unknown //IL_07d1: Unknown result type (might be due to invalid IL or missing references) //IL_07db: Expected O, but got Unknown //IL_07ff: Unknown result type (might be due to invalid IL or missing references) //IL_0809: Expected O, but got Unknown //IL_0826: Unknown result type (might be due to invalid IL or missing references) //IL_0830: Expected O, but got Unknown //IL_0854: Unknown result type (might be due to invalid IL or missing references) //IL_085e: Expected O, but got Unknown //IL_0882: Unknown result type (might be due to invalid IL or missing references) //IL_088c: Expected O, but got Unknown //IL_08b0: Unknown result type (might be due to invalid IL or missing references) //IL_08ba: Expected O, but got Unknown //IL_08d5: Unknown result type (might be due to invalid IL or missing references) //IL_08df: Expected O, but got Unknown //IL_08da: Unknown result type (might be due to invalid IL or missing references) //IL_08e4: Expected O, but got Unknown //IL_0908: Unknown result type (might be due to invalid IL or missing references) //IL_0912: Expected O, but got Unknown //IL_092d: Unknown result type (might be due to invalid IL or missing references) //IL_0937: Expected O, but got Unknown //IL_0932: Unknown result type (might be due to invalid IL or missing references) //IL_093c: Expected O, but got Unknown //IL_0960: Unknown result type (might be due to invalid IL or missing references) //IL_096a: Expected O, but got Unknown //IL_098a: Unknown result type (might be due to invalid IL or missing references) //IL_0994: Expected O, but got Unknown //IL_09e0: Unknown result type (might be due to invalid IL or missing references) //IL_09ea: Expected O, but got Unknown //IL_0a07: Unknown result type (might be due to invalid IL or missing references) //IL_0a11: Expected O, but got Unknown //IL_0a35: Unknown result type (might be due to invalid IL or missing references) //IL_0a3f: Expected O, but got Unknown //IL_0a5c: Unknown result type (might be due to invalid IL or missing references) //IL_0a66: Expected O, but got Unknown //IL_0a8a: Unknown result type (might be due to invalid IL or missing references) //IL_0a94: Expected O, but got Unknown //IL_0ab1: Unknown result type (might be due to invalid IL or missing references) //IL_0abb: Expected O, but got Unknown //IL_0ab6: Unknown result type (might be due to invalid IL or missing references) //IL_0ac0: Expected O, but got Unknown //IL_0ae4: Unknown result type (might be due to invalid IL or missing references) //IL_0aee: Expected O, but got Unknown //IL_0b0e: Unknown result type (might be due to invalid IL or missing references) //IL_0b18: Expected O, but got Unknown //IL_0b35: Unknown result type (might be due to invalid IL or missing references) //IL_0b3f: Expected O, but got Unknown //IL_0b63: Unknown result type (might be due to invalid IL or missing references) //IL_0b6d: Expected O, but got Unknown //IL_0b8a: Unknown result type (might be due to invalid IL or missing references) //IL_0b94: Expected O, but got Unknown //IL_0bb8: Unknown result type (might be due to invalid IL or missing references) //IL_0bc2: Expected O, but got Unknown //IL_0bdf: Unknown result type (might be due to invalid IL or missing references) //IL_0be9: Expected O, but got Unknown //IL_0be4: Unknown result type (might be due to invalid IL or missing references) //IL_0bee: Expected O, but got Unknown //IL_0c12: Unknown result type (might be due to invalid IL or missing references) //IL_0c1c: Expected O, but got Unknown //IL_0c39: Unknown result type (might be due to invalid IL or missing references) //IL_0c43: Expected O, but got Unknown //IL_0c67: Unknown result type (might be due to invalid IL or missing references) //IL_0c71: Expected O, but got Unknown //IL_0c8e: Unknown result type (might be due to invalid IL or missing references) //IL_0c98: Expected O, but got Unknown //IL_0c93: Unknown result type (might be due to invalid IL or missing references) //IL_0c9d: Expected O, but got Unknown //IL_0cc1: Unknown result type (might be due to invalid IL or missing references) //IL_0ccb: Expected O, but got Unknown //IL_0ceb: Unknown result type (might be due to invalid IL or missing references) //IL_0cf5: Expected O, but got Unknown //IL_0d41: Unknown result type (might be due to invalid IL or missing references) //IL_0d4b: Expected O, but got Unknown //IL_0d6f: Unknown result type (might be due to invalid IL or missing references) //IL_0d79: Expected O, but got Unknown //IL_0d96: Unknown result type (might be due to invalid IL or missing references) //IL_0da0: Expected O, but got Unknown //IL_0dc4: Unknown result type (might be due to invalid IL or missing references) //IL_0dce: Expected O, but got Unknown //IL_0deb: Unknown result type (might be due to invalid IL or missing references) //IL_0df5: Expected O, but got Unknown //IL_0e19: Unknown result type (might be due to invalid IL or missing references) //IL_0e23: Expected O, but got Unknown //IL_0e47: Unknown result type (might be due to invalid IL or missing references) //IL_0e51: Expected O, but got Unknown //IL_0e71: Unknown result type (might be due to invalid IL or missing references) //IL_0e7b: Expected O, but got Unknown //IL_0e9f: Unknown result type (might be due to invalid IL or missing references) //IL_0ea9: Expected O, but got Unknown //IL_0ec6: Unknown result type (might be due to invalid IL or missing references) //IL_0ed0: Expected O, but got Unknown //IL_0ef4: Unknown result type (might be due to invalid IL or missing references) //IL_0efe: Expected O, but got Unknown //IL_0f1e: Unknown result type (might be due to invalid IL or missing references) //IL_0f28: Expected O, but got Unknown //IL_0f4c: Unknown result type (might be due to invalid IL or missing references) //IL_0f56: Expected O, but got Unknown //IL_0f73: Unknown result type (might be due to invalid IL or missing references) //IL_0f7d: Expected O, but got Unknown //IL_0f78: Unknown result type (might be due to invalid IL or missing references) //IL_0f82: Expected O, but got Unknown //IL_0fa6: Unknown result type (might be due to invalid IL or missing references) //IL_0fb0: Expected O, but got Unknown //IL_0fd0: Unknown result type (might be due to invalid IL or missing references) //IL_0fda: Expected O, but got Unknown //IL_0ff7: Unknown result type (might be due to invalid IL or missing references) //IL_1001: Expected O, but got Unknown //IL_1025: Unknown result type (might be due to invalid IL or missing references) //IL_102f: Expected O, but got Unknown //IL_104c: Unknown result type (might be due to invalid IL or missing references) //IL_1056: Expected O, but got Unknown //IL_107a: Unknown result type (might be due to invalid IL or missing references) //IL_1084: Expected O, but got Unknown //IL_10a4: Unknown result type (might be due to invalid IL or missing references) //IL_10ae: Expected O, but got Unknown //IL_10cb: Unknown result type (might be due to invalid IL or missing references) //IL_10d5: Expected O, but got Unknown //IL_10f9: Unknown result type (might be due to invalid IL or missing references) //IL_1103: Expected O, but got Unknown //IL_1120: Unknown result type (might be due to invalid IL or missing references) //IL_112a: Expected O, but got Unknown //IL_114e: Unknown result type (might be due to invalid IL or missing references) //IL_1158: Expected O, but got Unknown //IL_1175: Unknown result type (might be due to invalid IL or missing references) //IL_117f: Expected O, but got Unknown //IL_11a3: Unknown result type (might be due to invalid IL or missing references) //IL_11ad: Expected O, but got Unknown //IL_11cd: Unknown result type (might be due to invalid IL or missing references) //IL_11d7: Expected O, but got Unknown //IL_11f4: Unknown result type (might be due to invalid IL or missing references) //IL_11fe: Expected O, but got Unknown //IL_1222: Unknown result type (might be due to invalid IL or missing references) //IL_122c: Expected O, but got Unknown //IL_1249: Unknown result type (might be due to invalid IL or missing references) //IL_1253: Expected O, but got Unknown //IL_1277: Unknown result type (might be due to invalid IL or missing references) //IL_1281: Expected O, but got Unknown //IL_129d: Unknown result type (might be due to invalid IL or missing references) //IL_12a7: Expected O, but got Unknown //IL_12a2: Unknown result type (might be due to invalid IL or missing references) //IL_12ac: Expected O, but got Unknown //IL_12cc: Unknown result type (might be due to invalid IL or missing references) //IL_12d6: Expected O, but got Unknown //IL_12f3: Unknown result type (might be due to invalid IL or missing references) //IL_12fd: Expected O, but got Unknown //IL_1321: Unknown result type (might be due to invalid IL or missing references) //IL_132b: Expected O, but got Unknown //IL_1348: Unknown result type (might be due to invalid IL or missing references) //IL_1352: Expected O, but got Unknown //IL_1376: Unknown result type (might be due to invalid IL or missing references) //IL_1380: Expected O, but got Unknown //IL_139b: Unknown result type (might be due to invalid IL or missing references) //IL_13a5: Expected O, but got Unknown //IL_13a0: Unknown result type (might be due to invalid IL or missing references) //IL_13aa: Expected O, but got Unknown //IL_13ca: Unknown result type (might be due to invalid IL or missing references) //IL_13d4: Expected O, but got Unknown //IL_13f1: Unknown result type (might be due to invalid IL or missing references) //IL_13fb: Expected O, but got Unknown //IL_141f: Unknown result type (might be due to invalid IL or missing references) //IL_1429: Expected O, but got Unknown //IL_1446: Unknown result type (might be due to invalid IL or missing references) //IL_1450: Expected O, but got Unknown //IL_1474: Unknown result type (might be due to invalid IL or missing references) //IL_147e: Expected O, but got Unknown //IL_149b: Unknown result type (might be due to invalid IL or missing references) //IL_14a5: Expected O, but got Unknown //IL_14a0: Unknown result type (might be due to invalid IL or missing references) //IL_14aa: Expected O, but got Unknown //IL_14ca: Unknown result type (might be due to invalid IL or missing references) //IL_14d4: Expected O, but got Unknown //IL_14f1: Unknown result type (might be due to invalid IL or missing references) //IL_14fb: Expected O, but got Unknown //IL_151f: Unknown result type (might be due to invalid IL or missing references) //IL_1529: Expected O, but got Unknown //IL_1546: Unknown result type (might be due to invalid IL or missing references) //IL_1550: Expected O, but got Unknown //IL_1574: Unknown result type (might be due to invalid IL or missing references) //IL_157e: Expected O, but got Unknown //IL_15a2: Unknown result type (might be due to invalid IL or missing references) //IL_15ac: Expected O, but got Unknown //IL_15cc: Unknown result type (might be due to invalid IL or missing references) //IL_15d6: Expected O, but got Unknown //IL_15f3: Unknown result type (might be due to invalid IL or missing references) //IL_15fd: Expected O, but got Unknown //IL_1621: Unknown result type (might be due to invalid IL or missing references) //IL_162b: Expected O, but got Unknown //IL_1648: Unknown result type (might be due to invalid IL or missing references) //IL_1652: Expected O, but got Unknown //IL_1676: Unknown result type (might be due to invalid IL or missing references) //IL_1680: Expected O, but got Unknown //IL_169d: Unknown result type (might be due to invalid IL or missing references) //IL_16a7: Expected O, but got Unknown //IL_16a2: Unknown result type (might be due to invalid IL or missing references) //IL_16ac: Expected O, but got Unknown //IL_16d0: Unknown result type (might be due to invalid IL or missing references) //IL_16da: Expected O, but got Unknown //IL_16f5: Unknown result type (might be due to invalid IL or missing references) //IL_16ff: Expected O, but got Unknown //IL_16fa: Unknown result type (might be due to invalid IL or missing references) //IL_1704: Expected O, but got Unknown //IL_1728: Unknown result type (might be due to invalid IL or missing references) //IL_1732: Expected O, but got Unknown //IL_0416: Unknown result type (might be due to invalid IL or missing references) //IL_0420: Expected O, but got Unknown //IL_09b2: Unknown result type (might be due to invalid IL or missing references) //IL_09bc: Expected O, but got Unknown //IL_0727: Unknown result type (might be due to invalid IL or missing references) //IL_0731: Expected O, but got Unknown //IL_0d1a: Unknown result type (might be due to invalid IL or missing references) //IL_0d24: Expected O, but got Unknown //IL_0599: Unknown result type (might be due to invalid IL or missing references) //IL_05a3: Expected O, but got Unknown //IL_04d3: Unknown result type (might be due to invalid IL or missing references) //IL_04dd: Expected O, but got Unknown try { switch (<>1__state) { default: return false; case 0: <>1__state = -1; <newlineConsumer>5__1 = new TokenConsumer((Func<Token, bool>)((Token t) => (int)t.Type == 89)); <readyMatch>5__2 = new MultiTokenWaiter(new Func<Token, bool>[5] { delegate(Token t) { IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val != null && val.Name == "_ready"; }, (Token t) => (int)t.Type == 80, (Token t) => (int)t.Type == 81, (Token t) => (int)t.Type == 86, (Token t) => (int)t.Type == 89 }, false, false); <>s__3 = tokens.GetEnumerator(); <>1__state = -3; break; case 1: <>1__state = -3; if (Mod.Config.MeteorAlert) { if (Mod.Config.ShowLogs) { <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 2; return true; } goto IL_0d0d; } goto IL_174a; case 2: <>1__state = -3; <>2__current = (Token)new IdentifierToken("time"); <>1__state = 3; return true; case 3: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 4; return true; case 4: <>1__state = -3; <>2__current = (Token)new IdentifierToken("Time"); <>1__state = 5; return true; case 5: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 6; return true; case 6: <>1__state = -3; <>2__current = (Token)new IdentifierToken("get_time_string_from_system"); <>1__state = 7; return true; case 7: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 8; return true; case 8: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 9; return true; case 9: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 10; return true; case 10: <>1__state = -3; if (!Mod.Config.ShowSeconds) { <>2__current = (Token)new IdentifierToken("time"); <>1__state = 11; return true; } goto IL_09ac; case 11: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 12; return true; case 12: <>1__state = -3; <>2__current = (Token)new IdentifierToken("erase"); <>1__state = 13; return true; case 13: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 14; return true; case 14: <>1__state = -3; <>2__current = (Token)new IdentifierToken("time"); <>1__state = 15; return true; case 15: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 16; return true; case 16: <>1__state = -3; <>2__current = (Token)new IdentifierToken("length"); <>1__state = 17; return true; case 17: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 18; return true; case 18: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 19; return true; case 19: <>1__state = -3; <>2__current = new Token((TokenType)17, (uint?)null); <>1__state = 20; return true; case 20: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(3L, false)); <>1__state = 21; return true; case 21: <>1__state = -3; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 22; return true; case 22: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(3L, false)); <>1__state = 23; return true; case 23: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 24; return true; case 24: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 25; return true; case 25: <>1__state = -3; goto IL_09ac; case 26: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 27; return true; case 27: <>1__state = -3; <>2__current = (Token)new IdentifierToken("time"); <>1__state = 28; return true; case 28: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 29; return true; case 29: <>1__state = -3; <>2__current = (Token)new IdentifierToken("trim_prefix"); <>1__state = 30; return true; case 30: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 31; return true; case 31: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("0")); <>1__state = 32; return true; case 32: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 33; return true; case 33: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 34; return true; case 34: <>1__state = -3; <>2__current = (Token)new IdentifierToken("Network"); <>1__state = 35; return true; case 35: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 36; return true; case 36: <>1__state = -3; <>2__current = (Token)new IdentifierToken("_update_chat"); <>1__state = 37; return true; case 37: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 38; return true; case 38: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("[color=#1e814e](")); <>1__state = 39; return true; case 39: <>1__state = -3; <>2__current = new Token((TokenType)16, (uint?)null); <>1__state = 40; return true; case 40: <>1__state = -3; <>2__current = (Token)new IdentifierToken("time"); <>1__state = 41; return true; case 41: <>1__state = -3; <>2__current = new Token((TokenType)16, (uint?)null); <>1__state = 42; return true; case 42: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant(" Meteor)[/color] a meteor has landed!")); <>1__state = 43; return true; case 43: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 44; return true; case 44: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 45; return true; case 45: <>1__state = -3; goto IL_0d0d; case 46: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 47; return true; case 47: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 48; return true; case 48: <>1__state = -3; <>2__current = (Token)new IdentifierToken("AudioStreamPlayer"); <>1__state = 49; return true; case 49: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 50; return true; case 50: <>1__state = -3; <>2__current = (Token)new IdentifierToken("new"); <>1__state = 51; return true; case 51: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 52; return true; case 52: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 53; return true; case 53: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 54; return true; case 54: <>1__state = -3; <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 55; return true; case 55: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notifsound"); <>1__state = 56; return true; case 56: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 57; return true; case 57: <>1__state = -3; <>2__current = new Token((TokenType)5, (uint?)76u); <>1__state = 58; return true; case 58: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 59; return true; case 59: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("res://mods/EventAlert/Assets/drip3.ogg")); <>1__state = 60; return true; case 60: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 61; return true; case 61: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 62; return true; case 62: <>1__state = -3; <>2__current = (Token)new IdentifierToken("add_child"); <>1__state = 63; return true; case 63: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 64; return true; case 64: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 65; return true; case 65: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 66; return true; case 66: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 67; return true; case 67: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 68; return true; case 68: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 69; return true; case 69: <>1__state = -3; <>2__current = (Token)new IdentifierToken("set_stream"); <>1__state = 70; return true; case 70: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 71; return true; case 71: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notifsound"); <>1__state = 72; return true; case 72: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 73; return true; case 73: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 74; return true; case 74: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 75; return true; case 75: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 76; return true; case 76: <>1__state = -3; <>2__current = (Token)new IdentifierToken("volume_db"); <>1__state = 77; return true; case 77: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 78; return true; case 78: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(-16L, false)); <>1__state = 79; return true; case 79: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 80; return true; case 80: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 81; return true; case 81: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 82; return true; case 82: <>1__state = -3; <>2__current = (Token)new IdentifierToken("pitch_scale"); <>1__state = 83; return true; case 83: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 84; return true; case 84: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(1L, false)); <>1__state = 85; return true; case 85: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 86; return true; case 86: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 87; return true; case 87: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 88; return true; case 88: <>1__state = -3; <>2__current = (Token)new IdentifierToken("bus"); <>1__state = 89; return true; case 89: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 90; return true; case 90: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("SFX")); <>1__state = 91; return true; case 91: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 92; return true; case 92: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 93; return true; case 93: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 94; return true; case 94: <>1__state = -3; <>2__current = (Token)new IdentifierToken("play"); <>1__state = 95; return true; case 95: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 96; return true; case 96: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 97; return true; case 97: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 98; return true; case 98: <>1__state = -3; <>2__current = (Token)new IdentifierToken("PlayerData"); <>1__state = 99; return true; case 99: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 100; return true; case 100: <>1__state = -3; <>2__current = (Token)new IdentifierToken("_send_notification"); <>1__state = 101; return true; case 101: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 102; return true; case 102: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("a meteor has landed!")); <>1__state = 103; return true; case 103: <>1__state = -3; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 104; return true; case 104: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(1L, false)); <>1__state = 105; return true; case 105: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 106; return true; case 106: <>1__state = -3; goto IL_174a; case 107: <>1__state = -3; goto IL_17ad; case 108: { <>1__state = -3; goto IL_17ad; } IL_09ac: <>2__current = (Token)new IdentifierToken("time"); <>1__state = 26; return true; IL_17ad: <token>5__4 = null; break; IL_0d0d: <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 46; return true; IL_174a: if (Mod.Config.HideVanillaChatPrompts) { <newlineConsumer>5__1.SetReady(); goto IL_17ad; } <>2__current = <token>5__4; <>1__state = 107; return true; } while (((global::System.Collections.IEnumerator)<>s__3).MoveNext()) { <token>5__4 = <>s__3.Current; if (<newlineConsumer>5__1.Check(<token>5__4)) { continue; } if (<readyMatch>5__2.Check(<token>5__4)) { <>2__current = <token>5__4; <>1__state = 1; return true; } <>2__current = <token>5__4; <>1__state = 108; return true; } <>m__Finally1(); <>s__3 = null; return false; } catch { //try-fault ((global::System.IDisposable)this).Dispose(); throw; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } private void <>m__Finally1() { <>1__state = -1; if (<>s__3 != null) { ((global::System.IDisposable)<>s__3).Dispose(); } } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator<Token> global::System.Collections.Generic.IEnumerable<Token>.GetEnumerator() { <Modify>d__4 <Modify>d__; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; <Modify>d__ = this; } else { <Modify>d__ = new <Modify>d__4(0) { <>4__this = <>4__this }; } <Modify>d__.path = <>3__path; <Modify>d__.tokens = <>3__tokens; return <Modify>d__; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator(); } } private const string Time = "time"; private const string Notif = "notif"; private const string NotifSound = "notifsound"; public bool ShouldRun(string path) { return path == "res://Scenes/Entities/MeteorSpawn/meteor_spawn.gdc"; } [IteratorStateMachine(typeof(<Modify>d__4))] public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens) { TokenConsumer newlineConsumer = new TokenConsumer((Func<Token, bool>)((Token t) => (int)t.Type == 89)); MultiTokenWaiter readyMatch = new MultiTokenWaiter(new Func<Token, bool>[5] { delegate(Token t) { IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val != null && val.Name == "_ready"; }, (Token t) => (int)t.Type == 80, (Token t) => (int)t.Type == 81, (Token t) => (int)t.Type == 86, (Token t) => (int)t.Type == 89 }, false, false); global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { Token token = enumerator.Current; if (newlineConsumer.Check(token)) { continue; } if (readyMatch.Check(token)) { yield return token; if (Mod.Config.MeteorAlert) { if (Mod.Config.ShowLogs) { yield return new Token((TokenType)59, (uint?)null); yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new IdentifierToken("Time"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("get_time_string_from_system"); yield return new Token((TokenType)80, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); if (!Mod.Config.ShowSeconds) { yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("erase"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("length"); yield return new Token((TokenType)80, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)17, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(3L, false)); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(3L, false)); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); } yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("trim_prefix"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("0")); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("Network"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("_update_chat"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("[color=#1e814e](")); yield return new Token((TokenType)16, (uint?)null); yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)16, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant(" Meteor)[/color] a meteor has landed!")); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); } yield return new Token((TokenType)59, (uint?)null); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new IdentifierToken("AudioStreamPlayer"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("new"); yield return new Token((TokenType)80, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return new Token((TokenType)59, (uint?)null); yield return (Token)new IdentifierToken("notifsound"); yield return new Token((TokenType)23, (uint?)null); yield return new Token((TokenType)5, (uint?)76u); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("res://mods/EventAlert/Assets/drip3.ogg")); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("add_child"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("set_stream"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("notifsound"); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("volume_db"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(-16L, false)); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("pitch_scale"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(1L, false)); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("bus"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("SFX")); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("play"); yield return new Token((TokenType)80, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("PlayerData"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("_send_notification"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("a meteor has landed!")); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(1L, false)); yield return new Token((TokenType)81, (uint?)null); } if (Mod.Config.HideVanillaChatPrompts) { newlineConsumer.SetReady(); } else { yield return token; } } else { yield return token; } } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } } } public class Mod : IMod, global::System.IDisposable { public static Config Config; public Mod(IModInterface modInterface) { Config = modInterface.ReadConfig<Config>(); modInterface.RegisterScriptMod((IScriptMod)(object)new MeteorSpawnPatch()); modInterface.RegisterScriptMod((IScriptMod)(object)new RainCloudPatch()); modInterface.RegisterScriptMod((IScriptMod)(object)new VoidPortalPatch()); } public void Dispose() { } } public class RainCloudPatch : IScriptMod { [CompilerGenerated] private sealed class <Modify>d__4 : global::System.Collections.Generic.IEnumerable<Token>, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator<Token>, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; private string path; public string <>3__path; private global::System.Collections.Generic.IEnumerable<Token> tokens; public global::System.Collections.Generic.IEnumerable<Token> <>3__tokens; public RainCloudPatch <>4__this; private MultiTokenWaiter <readyMatch>5__1; private global::System.Collections.Generic.IEnumerator<Token> <>s__2; private Token <token>5__3; Token global::System.Collections.Generic.IEnumerator<Token>.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <Modify>d__4(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { int num = <>1__state; if (num != -3 && (uint)(num - 1) > 107u) { return; } try { } finally { <>m__Finally1(); } } private bool MoveNext() { //IL_0578: Unknown result type (might be due to invalid IL or missing references) //IL_0582: Expected O, but got Unknown //IL_05a5: Unknown result type (might be due to invalid IL or missing references) //IL_05af: Expected O, but got Unknown //IL_05cb: Unknown result type (might be due to invalid IL or missing references) //IL_05d5: Expected O, but got Unknown //IL_05f8: Unknown result type (might be due to invalid IL or missing references) //IL_0602: Expected O, but got Unknown //IL_061e: Unknown result type (might be due to invalid IL or missing references) //IL_0628: Expected O, but got Unknown //IL_064b: Unknown result type (might be due to invalid IL or missing references) //IL_0655: Expected O, but got Unknown //IL_0678: Unknown result type (might be due to invalid IL or missing references) //IL_0682: Expected O, but got Unknown //IL_06a2: Unknown result type (might be due to invalid IL or missing references) //IL_06ac: Expected O, but got Unknown //IL_070e: Unknown result type (might be due to invalid IL or missing references) //IL_0718: Expected O, but got Unknown //IL_0735: Unknown result type (might be due to invalid IL or missing references) //IL_073f: Expected O, but got Unknown //IL_0763: Unknown result type (might be due to invalid IL or missing references) //IL_076d: Expected O, but got Unknown //IL_078a: Unknown result type (might be due to invalid IL or missing references) //IL_0794: Expected O, but got Unknown //IL_07b8: Unknown result type (might be due to invalid IL or missing references) //IL_07c2: Expected O, but got Unknown //IL_07df: Unknown result type (might be due to invalid IL or missing references) //IL_07e9: Expected O, but got Unknown //IL_080d: Unknown result type (might be due to invalid IL or missing references) //IL_0817: Expected O, but got Unknown //IL_083b: Unknown result type (might be due to invalid IL or missing references) //IL_0845: Expected O, but got Unknown //IL_0869: Unknown result type (might be due to invalid IL or missing references) //IL_0873: Expected O, but got Unknown //IL_088e: Unknown result type (might be due to invalid IL or missing references) //IL_0898: Expected O, but got Unknown //IL_0893: Unknown result type (might be due to invalid IL or missing references) //IL_089d: Expected O, but got Unknown //IL_08c1: Unknown result type (might be due to invalid IL or missing references) //IL_08cb: Expected O, but got Unknown //IL_08e6: Unknown result type (might be due to invalid IL or missing references) //IL_08f0: Expected O, but got Unknown //IL_08eb: Unknown result type (might be due to invalid IL or missing references) //IL_08f5: Expected O, but got Unknown //IL_0919: Unknown result type (might be due to invalid IL or missing references) //IL_0923: Expected O, but got Unknown //IL_0943: Unknown result type (might be due to invalid IL or missing references) //IL_094d: Expected O, but got Unknown //IL_0999: Unknown result type (might be due to invalid IL or missing references) //IL_09a3: Expected O, but got Unknown //IL_09c0: Unknown result type (might be due to invalid IL or missing references) //IL_09ca: Expected O, but got Unknown //IL_09ee: Unknown result type (might be due to invalid IL or missing references) //IL_09f8: Expected O, but got Unknown //IL_0a15: Unknown result type (might be due to invalid IL or missing references) //IL_0a1f: Expected O, but got Unknown //IL_0a43: Unknown result type (might be due to invalid IL or missing references) //IL_0a4d: Expected O, but got Unknown //IL_0a6a: Unknown result type (might be due to invalid IL or missing references) //IL_0a74: Expected O, but got Unknown //IL_0a6f: Unknown result type (might be due to invalid IL or missing references) //IL_0a79: Expected O, but got Unknown //IL_0a9d: Unknown result type (might be due to invalid IL or missing references) //IL_0aa7: Expected O, but got Unknown //IL_0ac7: Unknown result type (might be due to invalid IL or missing references) //IL_0ad1: Expected O, but got Unknown //IL_0aee: Unknown result type (might be due to invalid IL or missing references) //IL_0af8: Expected O, but got Unknown //IL_0b1c: Unknown result type (might be due to invalid IL or missing references) //IL_0b26: Expected O, but got Unknown //IL_0b43: Unknown result type (might be due to invalid IL or missing references) //IL_0b4d: Expected O, but got Unknown //IL_0b71: Unknown result type (might be due to invalid IL or missing references) //IL_0b7b: Expected O, but got Unknown //IL_0b98: Unknown result type (might be due to invalid IL or missing references) //IL_0ba2: Expected O, but got Unknown //IL_0b9d: Unknown result type (might be due to invalid IL or missing references) //IL_0ba7: Expected O, but got Unknown //IL_0bcb: Unknown result type (might be due to invalid IL or missing references) //IL_0bd5: Expected O, but got Unknown //IL_0bf2: Unknown result type (might be due to invalid IL or missing references) //IL_0bfc: Expected O, but got Unknown //IL_0c20: Unknown result type (might be due to invalid IL or missing references) //IL_0c2a: Expected O, but got Unknown //IL_0c47: Unknown result type (might be due to invalid IL or missing references) //IL_0c51: Expected O, but got Unknown //IL_0c4c: Unknown result type (might be due to invalid IL or missing references) //IL_0c56: Expected O, but got Unknown //IL_0c7a: Unknown result type (might be due to invalid IL or missing references) //IL_0c84: Expected O, but got Unknown //IL_0ca4: Unknown result type (might be due to invalid IL or missing references) //IL_0cae: Expected O, but got Unknown //IL_0cfa: Unknown result type (might be due to invalid IL or missing references) //IL_0d04: Expected O, but got Unknown //IL_0d28: Unknown result type (might be due to invalid IL or missing references) //IL_0d32: Expected O, but got Unknown //IL_0d4f: Unknown result type (might be due to invalid IL or missing references) //IL_0d59: Expected O, but got Unknown //IL_0d7d: Unknown result type (might be due to invalid IL or missing references) //IL_0d87: Expected O, but got Unknown //IL_0da4: Unknown result type (might be due to invalid IL or missing references) //IL_0dae: Expected O, but got Unknown //IL_0dd2: Unknown result type (might be due to invalid IL or missing references) //IL_0ddc: Expected O, but got Unknown //IL_0e00: Unknown result type (might be due to invalid IL or missing references) //IL_0e0a: Expected O, but got Unknown //IL_0e2a: Unknown result type (might be due to invalid IL or missing references) //IL_0e34: Expected O, but got Unknown //IL_0e58: Unknown result type (might be due to invalid IL or missing references) //IL_0e62: Expected O, but got Unknown //IL_0e7f: Unknown result type (might be due to invalid IL or missing references) //IL_0e89: Expected O, but got Unknown //IL_0ead: Unknown result type (might be due to invalid IL or missing references) //IL_0eb7: Expected O, but got Unknown //IL_0ed7: Unknown result type (might be due to invalid IL or missing references) //IL_0ee1: Expected O, but got Unknown //IL_0f05: Unknown result type (might be due to invalid IL or missing references) //IL_0f0f: Expected O, but got Unknown //IL_0f2c: Unknown result type (might be due to invalid IL or missing references) //IL_0f36: Expected O, but got Unknown //IL_0f31: Unknown result type (might be due to invalid IL or missing references) //IL_0f3b: Expected O, but got Unknown //IL_0f5f: Unknown result type (might be due to invalid IL or missing references) //IL_0f69: Expected O, but got Unknown //IL_0f89: Unknown result type (might be due to invalid IL or missing references) //IL_0f93: Expected O, but got Unknown //IL_0fb0: Unknown result type (might be due to invalid IL or missing references) //IL_0fba: Expected O, but got Unknown //IL_0fde: Unknown result type (might be due to invalid IL or missing references) //IL_0fe8: Expected O, but got Unknown //IL_1005: Unknown result type (might be due to invalid IL or missing references) //IL_100f: Expected O, but got Unknown //IL_1033: Unknown result type (might be due to invalid IL or missing references) //IL_103d: Expected O, but got Unknown //IL_105d: Unknown result type (might be due to invalid IL or missing references) //IL_1067: Expected O, but got Unknown //IL_1084: Unknown result type (might be due to invalid IL or missing references) //IL_108e: Expected O, but got Unknown //IL_10b2: Unknown result type (might be due to invalid IL or missing references) //IL_10bc: Expected O, but got Unknown //IL_10d9: Unknown result type (might be due to invalid IL or missing references) //IL_10e3: Expected O, but got Unknown //IL_1107: Unknown result type (might be due to invalid IL or missing references) //IL_1111: Expected O, but got Unknown //IL_112e: Unknown result type (might be due to invalid IL or missing references) //IL_1138: Expected O, but got Unknown //IL_115c: Unknown result type (might be due to invalid IL or missing references) //IL_1166: Expected O, but got Unknown //IL_1186: Unknown result type (might be due to invalid IL or missing references) //IL_1190: Expected O, but got Unknown //IL_11ad: Unknown result type (might be due to invalid IL or missing references) //IL_11b7: Expected O, but got Unknown //IL_11db: Unknown result type (might be due to invalid IL or missing references) //IL_11e5: Expected O, but got Unknown //IL_1202: Unknown result type (might be due to invalid IL or missing references) //IL_120c: Expected O, but got Unknown //IL_1230: Unknown result type (might be due to invalid IL or missing references) //IL_123a: Expected O, but got Unknown //IL_1256: Unknown result type (might be due to invalid IL or missing references) //IL_1260: Expected O, but got Unknown //IL_125b: Unknown result type (might be due to invalid IL or missing references) //IL_1265: Expected O, but got Unknown //IL_1285: Unknown result type (might be due to invalid IL or missing references) //IL_128f: Expected O, but got Unknown //IL_12ac: Unknown result type (might be due to invalid IL or missing references) //IL_12b6: Expected O, but got Unknown //IL_12da: Unknown result type (might be due to invalid IL or missing references) //IL_12e4: Expected O, but got Unknown //IL_1301: Unknown result type (might be due to invalid IL or missing references) //IL_130b: Expected O, but got Unknown //IL_132f: Unknown result type (might be due to invalid IL or missing references) //IL_1339: Expected O, but got Unknown //IL_1354: Unknown result type (might be due to invalid IL or missing references) //IL_135e: Expected O, but got Unknown //IL_1359: Unknown result type (might be due to invalid IL or missing references) //IL_1363: Expected O, but got Unknown //IL_1383: Unknown result type (might be due to invalid IL or missing references) //IL_138d: Expected O, but got Unknown //IL_13aa: Unknown result type (might be due to invalid IL or missing references) //IL_13b4: Expected O, but got Unknown //IL_13d8: Unknown result type (might be due to invalid IL or missing references) //IL_13e2: Expected O, but got Unknown //IL_13ff: Unknown result type (might be due to invalid IL or missing references) //IL_1409: Expected O, but got Unknown //IL_142d: Unknown result type (might be due to invalid IL or missing references) //IL_1437: Expected O, but got Unknown //IL_1454: Unknown result type (might be due to invalid IL or missing references) //IL_145e: Expected O, but got Unknown //IL_1459: Unknown result type (might be due to invalid IL or missing references) //IL_1463: Expected O, but got Unknown //IL_1483: Unknown result type (might be due to invalid IL or missing references) //IL_148d: Expected O, but got Unknown //IL_14aa: Unknown result type (might be due to invalid IL or missing references) //IL_14b4: Expected O, but got Unknown //IL_14d8: Unknown result type (might be due to invalid IL or missing references) //IL_14e2: Expected O, but got Unknown //IL_14ff: Unknown result type (might be due to invalid IL or missing references) //IL_1509: Expected O, but got Unknown //IL_152d: Unknown result type (might be due to invalid IL or missing references) //IL_1537: Expected O, but got Unknown //IL_155b: Unknown result type (might be due to invalid IL or missing references) //IL_1565: Expected O, but got Unknown //IL_1585: Unknown result type (might be due to invalid IL or missing references) //IL_158f: Expected O, but got Unknown //IL_15ac: Unknown result type (might be due to invalid IL or missing references) //IL_15b6: Expected O, but got Unknown //IL_15da: Unknown result type (might be due to invalid IL or missing references) //IL_15e4: Expected O, but got Unknown //IL_1601: Unknown result type (might be due to invalid IL or missing references) //IL_160b: Expected O, but got Unknown //IL_162f: Unknown result type (might be due to invalid IL or missing references) //IL_1639: Expected O, but got Unknown //IL_1656: Unknown result type (might be due to invalid IL or missing references) //IL_1660: Expected O, but got Unknown //IL_165b: Unknown result type (might be due to invalid IL or missing references) //IL_1665: Expected O, but got Unknown //IL_1689: Unknown result type (might be due to invalid IL or missing references) //IL_1693: Expected O, but got Unknown //IL_16ae: Unknown result type (might be due to invalid IL or missing references) //IL_16b8: Expected O, but got Unknown //IL_16b3: Unknown result type (might be due to invalid IL or missing references) //IL_16bd: Expected O, but got Unknown //IL_16e1: Unknown result type (might be due to invalid IL or missing references) //IL_16eb: Expected O, but got Unknown //IL_096b: Unknown result type (might be due to invalid IL or missing references) //IL_0975: Expected O, but got Unknown //IL_06e0: Unknown result type (might be due to invalid IL or missing references) //IL_06ea: Expected O, but got Unknown //IL_0cd3: Unknown result type (might be due to invalid IL or missing references) //IL_0cdd: Expected O, but got Unknown //IL_0552: Unknown result type (might be due to invalid IL or missing references) //IL_055c: Expected O, but got Unknown //IL_04a9: Unknown result type (might be due to invalid IL or missing references) //IL_04b3: Expected O, but got Unknown try { switch (<>1__state) { default: return false; case 0: <>1__state = -1; <readyMatch>5__1 = new MultiTokenWaiter(new Func<Token, bool>[5] { delegate(Token t) { IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val != null && val.Name == "_ready"; }, (Token t) => (int)t.Type == 80, (Token t) => (int)t.Type == 81, (Token t) => (int)t.Type == 86, (Token t) => (int)t.Type == 89 }, false, false); <>s__2 = tokens.GetEnumerator(); <>1__state = -3; break; case 1: <>1__state = -3; if (Mod.Config.RainAlert) { if (Mod.Config.ShowLogs) { <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 2; return true; } goto IL_0cc6; } goto IL_1703; case 2: <>1__state = -3; <>2__current = (Token)new IdentifierToken("time"); <>1__state = 3; return true; case 3: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 4; return true; case 4: <>1__state = -3; <>2__current = (Token)new IdentifierToken("Time"); <>1__state = 5; return true; case 5: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 6; return true; case 6: <>1__state = -3; <>2__current = (Token)new IdentifierToken("get_time_string_from_system"); <>1__state = 7; return true; case 7: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 8; return true; case 8: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 9; return true; case 9: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 10; return true; case 10: <>1__state = -3; if (!Mod.Config.ShowSeconds) { <>2__current = (Token)new IdentifierToken("time"); <>1__state = 11; return true; } goto IL_0965; case 11: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 12; return true; case 12: <>1__state = -3; <>2__current = (Token)new IdentifierToken("erase"); <>1__state = 13; return true; case 13: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 14; return true; case 14: <>1__state = -3; <>2__current = (Token)new IdentifierToken("time"); <>1__state = 15; return true; case 15: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 16; return true; case 16: <>1__state = -3; <>2__current = (Token)new IdentifierToken("length"); <>1__state = 17; return true; case 17: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 18; return true; case 18: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 19; return true; case 19: <>1__state = -3; <>2__current = new Token((TokenType)17, (uint?)null); <>1__state = 20; return true; case 20: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(3L, false)); <>1__state = 21; return true; case 21: <>1__state = -3; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 22; return true; case 22: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(3L, false)); <>1__state = 23; return true; case 23: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 24; return true; case 24: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 25; return true; case 25: <>1__state = -3; goto IL_0965; case 26: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 27; return true; case 27: <>1__state = -3; <>2__current = (Token)new IdentifierToken("time"); <>1__state = 28; return true; case 28: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 29; return true; case 29: <>1__state = -3; <>2__current = (Token)new IdentifierToken("trim_prefix"); <>1__state = 30; return true; case 30: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 31; return true; case 31: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("0")); <>1__state = 32; return true; case 32: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 33; return true; case 33: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 34; return true; case 34: <>1__state = -3; <>2__current = (Token)new IdentifierToken("Network"); <>1__state = 35; return true; case 35: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 36; return true; case 36: <>1__state = -3; <>2__current = (Token)new IdentifierToken("_update_chat"); <>1__state = 37; return true; case 37: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 38; return true; case 38: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("[color=#1e814e](")); <>1__state = 39; return true; case 39: <>1__state = -3; <>2__current = new Token((TokenType)16, (uint?)null); <>1__state = 40; return true; case 40: <>1__state = -3; <>2__current = (Token)new IdentifierToken("time"); <>1__state = 41; return true; case 41: <>1__state = -3; <>2__current = new Token((TokenType)16, (uint?)null); <>1__state = 42; return true; case 42: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant(" Rain)[/color] a raincloud has formed!")); <>1__state = 43; return true; case 43: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 44; return true; case 44: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 45; return true; case 45: <>1__state = -3; goto IL_0cc6; case 46: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 47; return true; case 47: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 48; return true; case 48: <>1__state = -3; <>2__current = (Token)new IdentifierToken("AudioStreamPlayer"); <>1__state = 49; return true; case 49: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 50; return true; case 50: <>1__state = -3; <>2__current = (Token)new IdentifierToken("new"); <>1__state = 51; return true; case 51: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 52; return true; case 52: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 53; return true; case 53: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 54; return true; case 54: <>1__state = -3; <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 55; return true; case 55: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notifsound"); <>1__state = 56; return true; case 56: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 57; return true; case 57: <>1__state = -3; <>2__current = new Token((TokenType)5, (uint?)76u); <>1__state = 58; return true; case 58: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 59; return true; case 59: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("res://mods/EventAlert/Assets/drip3.ogg")); <>1__state = 60; return true; case 60: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 61; return true; case 61: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 62; return true; case 62: <>1__state = -3; <>2__current = (Token)new IdentifierToken("add_child"); <>1__state = 63; return true; case 63: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 64; return true; case 64: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 65; return true; case 65: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 66; return true; case 66: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 67; return true; case 67: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 68; return true; case 68: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 69; return true; case 69: <>1__state = -3; <>2__current = (Token)new IdentifierToken("set_stream"); <>1__state = 70; return true; case 70: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 71; return true; case 71: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notifsound"); <>1__state = 72; return true; case 72: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 73; return true; case 73: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 74; return true; case 74: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 75; return true; case 75: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 76; return true; case 76: <>1__state = -3; <>2__current = (Token)new IdentifierToken("volume_db"); <>1__state = 77; return true; case 77: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 78; return true; case 78: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(-16L, false)); <>1__state = 79; return true; case 79: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 80; return true; case 80: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 81; return true; case 81: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 82; return true; case 82: <>1__state = -3; <>2__current = (Token)new IdentifierToken("pitch_scale"); <>1__state = 83; return true; case 83: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 84; return true; case 84: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(1L, false)); <>1__state = 85; return true; case 85: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 86; return true; case 86: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 87; return true; case 87: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 88; return true; case 88: <>1__state = -3; <>2__current = (Token)new IdentifierToken("bus"); <>1__state = 89; return true; case 89: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 90; return true; case 90: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("SFX")); <>1__state = 91; return true; case 91: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 92; return true; case 92: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 93; return true; case 93: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 94; return true; case 94: <>1__state = -3; <>2__current = (Token)new IdentifierToken("play"); <>1__state = 95; return true; case 95: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 96; return true; case 96: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 97; return true; case 97: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 98; return true; case 98: <>1__state = -3; <>2__current = (Token)new IdentifierToken("PlayerData"); <>1__state = 99; return true; case 99: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 100; return true; case 100: <>1__state = -3; <>2__current = (Token)new IdentifierToken("_send_notification"); <>1__state = 101; return true; case 101: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 102; return true; case 102: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("a raincloud has formed!")); <>1__state = 103; return true; case 103: <>1__state = -3; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 104; return true; case 104: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(1L, false)); <>1__state = 105; return true; case 105: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 106; return true; case 106: <>1__state = -3; goto IL_1703; case 107: <>1__state = -3; goto IL_1748; case 108: { <>1__state = -3; goto IL_1748; } IL_1748: <token>5__3 = null; break; IL_1703: <>2__current = <token>5__3; <>1__state = 107; return true; IL_0965: <>2__current = (Token)new IdentifierToken("time"); <>1__state = 26; return true; IL_0cc6: <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 46; return true; } if (((global::System.Collections.IEnumerator)<>s__2).MoveNext()) { <token>5__3 = <>s__2.Current; if (<readyMatch>5__1.Check(<token>5__3)) { <>2__current = <token>5__3; <>1__state = 1; return true; } <>2__current = <token>5__3; <>1__state = 108; return true; } <>m__Finally1(); <>s__2 = null; return false; } catch { //try-fault ((global::System.IDisposable)this).Dispose(); throw; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } private void <>m__Finally1() { <>1__state = -1; if (<>s__2 != null) { ((global::System.IDisposable)<>s__2).Dispose(); } } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator<Token> global::System.Collections.Generic.IEnumerable<Token>.GetEnumerator() { <Modify>d__4 <Modify>d__; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; <Modify>d__ = this; } else { <Modify>d__ = new <Modify>d__4(0) { <>4__this = <>4__this }; } <Modify>d__.path = <>3__path; <Modify>d__.tokens = <>3__tokens; return <Modify>d__; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator(); } } private const string Time = "time"; private const string Notif = "notif"; private const string NotifSound = "notifsound"; public bool ShouldRun(string path) { return path == "res://Scenes/Entities/RainCloud/raincloud.gdc"; } [IteratorStateMachine(typeof(<Modify>d__4))] public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens) { MultiTokenWaiter readyMatch = new MultiTokenWaiter(new Func<Token, bool>[5] { delegate(Token t) { IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val != null && val.Name == "_ready"; }, (Token t) => (int)t.Type == 80, (Token t) => (int)t.Type == 81, (Token t) => (int)t.Type == 86, (Token t) => (int)t.Type == 89 }, false, false); global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { Token token = enumerator.Current; if (readyMatch.Check(token)) { yield return token; if (Mod.Config.RainAlert) { if (Mod.Config.ShowLogs) { yield return new Token((TokenType)59, (uint?)null); yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new IdentifierToken("Time"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("get_time_string_from_system"); yield return new Token((TokenType)80, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); if (!Mod.Config.ShowSeconds) { yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("erase"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("length"); yield return new Token((TokenType)80, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)17, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(3L, false)); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(3L, false)); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); } yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("trim_prefix"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("0")); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("Network"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("_update_chat"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("[color=#1e814e](")); yield return new Token((TokenType)16, (uint?)null); yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)16, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant(" Rain)[/color] a raincloud has formed!")); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); } yield return new Token((TokenType)59, (uint?)null); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new IdentifierToken("AudioStreamPlayer"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("new"); yield return new Token((TokenType)80, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return new Token((TokenType)59, (uint?)null); yield return (Token)new IdentifierToken("notifsound"); yield return new Token((TokenType)23, (uint?)null); yield return new Token((TokenType)5, (uint?)76u); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("res://mods/EventAlert/Assets/drip3.ogg")); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("add_child"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("set_stream"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("notifsound"); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("volume_db"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(-16L, false)); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("pitch_scale"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(1L, false)); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("bus"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("SFX")); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("play"); yield return new Token((TokenType)80, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("PlayerData"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("_send_notification"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("a raincloud has formed!")); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(1L, false)); yield return new Token((TokenType)81, (uint?)null); } yield return token; } else { yield return token; } } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } } } public class VoidPortalPatch : IScriptMod { [CompilerGenerated] private sealed class <Modify>d__4 : global::System.Collections.Generic.IEnumerable<Token>, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator<Token>, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; private string path; public string <>3__path; private global::System.Collections.Generic.IEnumerable<Token> tokens; public global::System.Collections.Generic.IEnumerable<Token> <>3__tokens; public VoidPortalPatch <>4__this; private MultiTokenWaiter <readyMatch>5__1; private global::System.Collections.Generic.IEnumerator<Token> <>s__2; private Token <token>5__3; Token global::System.Collections.Generic.IEnumerator<Token>.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <Modify>d__4(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { int num = <>1__state; if (num != -3 && (uint)(num - 1) > 107u) { return; } try { } finally { <>m__Finally1(); } } private bool MoveNext() { //IL_0578: Unknown result type (might be due to invalid IL or missing references) //IL_0582: Expected O, but got Unknown //IL_05a5: Unknown result type (might be due to invalid IL or missing references) //IL_05af: Expected O, but got Unknown //IL_05cb: Unknown result type (might be due to invalid IL or missing references) //IL_05d5: Expected O, but got Unknown //IL_05f8: Unknown result type (might be due to invalid IL or missing references) //IL_0602: Expected O, but got Unknown //IL_061e: Unknown result type (might be due to invalid IL or missing references) //IL_0628: Expected O, but got Unknown //IL_064b: Unknown result type (might be due to invalid IL or missing references) //IL_0655: Expected O, but got Unknown //IL_0678: Unknown result type (might be due to invalid IL or missing references) //IL_0682: Expected O, but got Unknown //IL_06a2: Unknown result type (might be due to invalid IL or missing references) //IL_06ac: Expected O, but got Unknown //IL_070e: Unknown result type (might be due to invalid IL or missing references) //IL_0718: Expected O, but got Unknown //IL_0735: Unknown result type (might be due to invalid IL or missing references) //IL_073f: Expected O, but got Unknown //IL_0763: Unknown result type (might be due to invalid IL or missing references) //IL_076d: Expected O, but got Unknown //IL_078a: Unknown result type (might be due to invalid IL or missing references) //IL_0794: Expected O, but got Unknown //IL_07b8: Unknown result type (might be due to invalid IL or missing references) //IL_07c2: Expected O, but got Unknown //IL_07df: Unknown result type (might be due to invalid IL or missing references) //IL_07e9: Expected O, but got Unknown //IL_080d: Unknown result type (might be due to invalid IL or missing references) //IL_0817: Expected O, but got Unknown //IL_083b: Unknown result type (might be due to invalid IL or missing references) //IL_0845: Expected O, but got Unknown //IL_0869: Unknown result type (might be due to invalid IL or missing references) //IL_0873: Expected O, but got Unknown //IL_088e: Unknown result type (might be due to invalid IL or missing references) //IL_0898: Expected O, but got Unknown //IL_0893: Unknown result type (might be due to invalid IL or missing references) //IL_089d: Expected O, but got Unknown //IL_08c1: Unknown result type (might be due to invalid IL or missing references) //IL_08cb: Expected O, but got Unknown //IL_08e6: Unknown result type (might be due to invalid IL or missing references) //IL_08f0: Expected O, but got Unknown //IL_08eb: Unknown result type (might be due to invalid IL or missing references) //IL_08f5: Expected O, but got Unknown //IL_0919: Unknown result type (might be due to invalid IL or missing references) //IL_0923: Expected O, but got Unknown //IL_0943: Unknown result type (might be due to invalid IL or missing references) //IL_094d: Expected O, but got Unknown //IL_0999: Unknown result type (might be due to invalid IL or missing references) //IL_09a3: Expected O, but got Unknown //IL_09c0: Unknown result type (might be due to invalid IL or missing references) //IL_09ca: Expected O, but got Unknown //IL_09ee: Unknown result type (might be due to invalid IL or missing references) //IL_09f8: Expected O, but got Unknown //IL_0a15: Unknown result type (might be due to invalid IL or missing references) //IL_0a1f: Expected O, but got Unknown //IL_0a43: Unknown result type (might be due to invalid IL or missing references) //IL_0a4d: Expected O, but got Unknown //IL_0a6a: Unknown result type (might be due to invalid IL or missing references) //IL_0a74: Expected O, but got Unknown //IL_0a6f: Unknown result type (might be due to invalid IL or missing references) //IL_0a79: Expected O, but got Unknown //IL_0a9d: Unknown result type (might be due to invalid IL or missing references) //IL_0aa7: Expected O, but got Unknown //IL_0ac7: Unknown result type (might be due to invalid IL or missing references) //IL_0ad1: Expected O, but got Unknown //IL_0aee: Unknown result type (might be due to invalid IL or missing references) //IL_0af8: Expected O, but got Unknown //IL_0b1c: Unknown result type (might be due to invalid IL or missing references) //IL_0b26: Expected O, but got Unknown //IL_0b43: Unknown result type (might be due to invalid IL or missing references) //IL_0b4d: Expected O, but got Unknown //IL_0b71: Unknown result type (might be due to invalid IL or missing references) //IL_0b7b: Expected O, but got Unknown //IL_0b98: Unknown result type (might be due to invalid IL or missing references) //IL_0ba2: Expected O, but got Unknown //IL_0b9d: Unknown result type (might be due to invalid IL or missing references) //IL_0ba7: Expected O, but got Unknown //IL_0bcb: Unknown result type (might be due to invalid IL or missing references) //IL_0bd5: Expected O, but got Unknown //IL_0bf2: Unknown result type (might be due to invalid IL or missing references) //IL_0bfc: Expected O, but got Unknown //IL_0c20: Unknown result type (might be due to invalid IL or missing references) //IL_0c2a: Expected O, but got Unknown //IL_0c47: Unknown result type (might be due to invalid IL or missing references) //IL_0c51: Expected O, but got Unknown //IL_0c4c: Unknown result type (might be due to invalid IL or missing references) //IL_0c56: Expected O, but got Unknown //IL_0c7a: Unknown result type (might be due to invalid IL or missing references) //IL_0c84: Expected O, but got Unknown //IL_0ca4: Unknown result type (might be due to invalid IL or missing references) //IL_0cae: Expected O, but got Unknown //IL_0cfa: Unknown result type (might be due to invalid IL or missing references) //IL_0d04: Expected O, but got Unknown //IL_0d28: Unknown result type (might be due to invalid IL or missing references) //IL_0d32: Expected O, but got Unknown //IL_0d4f: Unknown result type (might be due to invalid IL or missing references) //IL_0d59: Expected O, but got Unknown //IL_0d7d: Unknown result type (might be due to invalid IL or missing references) //IL_0d87: Expected O, but got Unknown //IL_0da4: Unknown result type (might be due to invalid IL or missing references) //IL_0dae: Expected O, but got Unknown //IL_0dd2: Unknown result type (might be due to invalid IL or missing references) //IL_0ddc: Expected O, but got Unknown //IL_0e00: Unknown result type (might be due to invalid IL or missing references) //IL_0e0a: Expected O, but got Unknown //IL_0e2a: Unknown result type (might be due to invalid IL or missing references) //IL_0e34: Expected O, but got Unknown //IL_0e58: Unknown result type (might be due to invalid IL or missing references) //IL_0e62: Expected O, but got Unknown //IL_0e7f: Unknown result type (might be due to invalid IL or missing references) //IL_0e89: Expected O, but got Unknown //IL_0ead: Unknown result type (might be due to invalid IL or missing references) //IL_0eb7: Expected O, but got Unknown //IL_0ed7: Unknown result type (might be due to invalid IL or missing references) //IL_0ee1: Expected O, but got Unknown //IL_0f05: Unknown result type (might be due to invalid IL or missing references) //IL_0f0f: Expected O, but got Unknown //IL_0f2c: Unknown result type (might be due to invalid IL or missing references) //IL_0f36: Expected O, but got Unknown //IL_0f31: Unknown result type (might be due to invalid IL or missing references) //IL_0f3b: Expected O, but got Unknown //IL_0f5f: Unknown result type (might be due to invalid IL or missing references) //IL_0f69: Expected O, but got Unknown //IL_0f89: Unknown result type (might be due to invalid IL or missing references) //IL_0f93: Expected O, but got Unknown //IL_0fb0: Unknown result type (might be due to invalid IL or missing references) //IL_0fba: Expected O, but got Unknown //IL_0fde: Unknown result type (might be due to invalid IL or missing references) //IL_0fe8: Expected O, but got Unknown //IL_1005: Unknown result type (might be due to invalid IL or missing references) //IL_100f: Expected O, but got Unknown //IL_1033: Unknown result type (might be due to invalid IL or missing references) //IL_103d: Expected O, but got Unknown //IL_105d: Unknown result type (might be due to invalid IL or missing references) //IL_1067: Expected O, but got Unknown //IL_1084: Unknown result type (might be due to invalid IL or missing references) //IL_108e: Expected O, but got Unknown //IL_10b2: Unknown result type (might be due to invalid IL or missing references) //IL_10bc: Expected O, but got Unknown //IL_10d9: Unknown result type (might be due to invalid IL or missing references) //IL_10e3: Expected O, but got Unknown //IL_1107: Unknown result type (might be due to invalid IL or missing references) //IL_1111: Expected O, but got Unknown //IL_112e: Unknown result type (might be due to invalid IL or missing references) //IL_1138: Expected O, but got Unknown //IL_115c: Unknown result type (might be due to invalid IL or missing references) //IL_1166: Expected O, but got Unknown //IL_1186: Unknown result type (might be due to invalid IL or missing references) //IL_1190: Expected O, but got Unknown //IL_11ad: Unknown result type (might be due to invalid IL or missing references) //IL_11b7: Expected O, but got Unknown //IL_11db: Unknown result type (might be due to invalid IL or missing references) //IL_11e5: Expected O, but got Unknown //IL_1202: Unknown result type (might be due to invalid IL or missing references) //IL_120c: Expected O, but got Unknown //IL_1230: Unknown result type (might be due to invalid IL or missing references) //IL_123a: Expected O, but got Unknown //IL_1256: Unknown result type (might be due to invalid IL or missing references) //IL_1260: Expected O, but got Unknown //IL_125b: Unknown result type (might be due to invalid IL or missing references) //IL_1265: Expected O, but got Unknown //IL_1285: Unknown result type (might be due to invalid IL or missing references) //IL_128f: Expected O, but got Unknown //IL_12ac: Unknown result type (might be due to invalid IL or missing references) //IL_12b6: Expected O, but got Unknown //IL_12da: Unknown result type (might be due to invalid IL or missing references) //IL_12e4: Expected O, but got Unknown //IL_1301: Unknown result type (might be due to invalid IL or missing references) //IL_130b: Expected O, but got Unknown //IL_132f: Unknown result type (might be due to invalid IL or missing references) //IL_1339: Expected O, but got Unknown //IL_1354: Unknown result type (might be due to invalid IL or missing references) //IL_135e: Expected O, but got Unknown //IL_1359: Unknown result type (might be due to invalid IL or missing references) //IL_1363: Expected O, but got Unknown //IL_1383: Unknown result type (might be due to invalid IL or missing references) //IL_138d: Expected O, but got Unknown //IL_13aa: Unknown result type (might be due to invalid IL or missing references) //IL_13b4: Expected O, but got Unknown //IL_13d8: Unknown result type (might be due to invalid IL or missing references) //IL_13e2: Expected O, but got Unknown //IL_13ff: Unknown result type (might be due to invalid IL or missing references) //IL_1409: Expected O, but got Unknown //IL_142d: Unknown result type (might be due to invalid IL or missing references) //IL_1437: Expected O, but got Unknown //IL_1454: Unknown result type (might be due to invalid IL or missing references) //IL_145e: Expected O, but got Unknown //IL_1459: Unknown result type (might be due to invalid IL or missing references) //IL_1463: Expected O, but got Unknown //IL_1483: Unknown result type (might be due to invalid IL or missing references) //IL_148d: Expected O, but got Unknown //IL_14aa: Unknown result type (might be due to invalid IL or missing references) //IL_14b4: Expected O, but got Unknown //IL_14d8: Unknown result type (might be due to invalid IL or missing references) //IL_14e2: Expected O, but got Unknown //IL_14ff: Unknown result type (might be due to invalid IL or missing references) //IL_1509: Expected O, but got Unknown //IL_152d: Unknown result type (might be due to invalid IL or missing references) //IL_1537: Expected O, but got Unknown //IL_155b: Unknown result type (might be due to invalid IL or missing references) //IL_1565: Expected O, but got Unknown //IL_1585: Unknown result type (might be due to invalid IL or missing references) //IL_158f: Expected O, but got Unknown //IL_15ac: Unknown result type (might be due to invalid IL or missing references) //IL_15b6: Expected O, but got Unknown //IL_15da: Unknown result type (might be due to invalid IL or missing references) //IL_15e4: Expected O, but got Unknown //IL_1601: Unknown result type (might be due to invalid IL or missing references) //IL_160b: Expected O, but got Unknown //IL_162f: Unknown result type (might be due to invalid IL or missing references) //IL_1639: Expected O, but got Unknown //IL_1656: Unknown result type (might be due to invalid IL or missing references) //IL_1660: Expected O, but got Unknown //IL_165b: Unknown result type (might be due to invalid IL or missing references) //IL_1665: Expected O, but got Unknown //IL_1689: Unknown result type (might be due to invalid IL or missing references) //IL_1693: Expected O, but got Unknown //IL_16ae: Unknown result type (might be due to invalid IL or missing references) //IL_16b8: Expected O, but got Unknown //IL_16b3: Unknown result type (might be due to invalid IL or missing references) //IL_16bd: Expected O, but got Unknown //IL_16e1: Unknown result type (might be due to invalid IL or missing references) //IL_16eb: Expected O, but got Unknown //IL_096b: Unknown result type (might be due to invalid IL or missing references) //IL_0975: Expected O, but got Unknown //IL_06e0: Unknown result type (might be due to invalid IL or missing references) //IL_06ea: Expected O, but got Unknown //IL_0cd3: Unknown result type (might be due to invalid IL or missing references) //IL_0cdd: Expected O, but got Unknown //IL_0552: Unknown result type (might be due to invalid IL or missing references) //IL_055c: Expected O, but got Unknown //IL_04a9: Unknown result type (might be due to invalid IL or missing references) //IL_04b3: Expected O, but got Unknown try { switch (<>1__state) { default: return false; case 0: <>1__state = -1; <readyMatch>5__1 = new MultiTokenWaiter(