Decompiled source of Quality Notifications v1.0.0

GDWeave/mods/z3roco01.qualityNotifications/z3roco01.qualityNotifications.dll

Decompiled 2 weeks ago
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
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("z3roco01")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.1")]
[assembly: AssemblyInformationalVersion("1.0.1+b504a32d8254a16fb4c770cba3924881e437eb29")]
[assembly: AssemblyProduct("z3roco01.qualityNotifications")]
[assembly: AssemblyTitle("z3roco01.qualityNotifications")]
[assembly: AssemblyVersion("1.0.1.0")]
[module: RefSafetyRules(11)]
internal class PlayerDataMod : IScriptMod
{
	[CompilerGenerated]
	private sealed class <Modify>d__1 : 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 PlayerDataMod <>4__this;

		private MultiTokenWaiter <waiter>5__1;

		private MultiTokenWaiter <ifWaiter>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__1(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) > 59u)
			{
				return;
			}
			try
			{
			}
			finally
			{
				<>m__Finally1();
			}
		}

		private bool MoveNext()
		{
			//IL_09f7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a01: Expected O, but got Unknown
			//IL_0a1d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a27: Expected O, but got Unknown
			//IL_0a49: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a53: 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_0a74: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a7e: 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_0ac9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ad3: Expected O, but got Unknown
			//IL_0af5: Unknown result type (might be due to invalid IL or missing references)
			//IL_0aff: Expected O, but got Unknown
			//IL_0b1b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b25: Expected O, but got Unknown
			//IL_0b48: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b52: Expected O, but got Unknown
			//IL_0b6f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b79: Expected O, but got Unknown
			//IL_0b9c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ba6: Expected O, but got Unknown
			//IL_0bc9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bd3: Expected O, but got Unknown
			//IL_0bf0: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bfa: Expected O, but got Unknown
			//IL_0c1c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c26: Expected O, but got Unknown
			//IL_0c43: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c4d: Expected O, but got Unknown
			//IL_0c48: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c52: Expected O, but got Unknown
			//IL_0c75: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c7f: Expected O, but got Unknown
			//IL_0ca2: Unknown result type (might be due to invalid IL or missing references)
			//IL_0cac: Expected O, but got Unknown
			//IL_0cc9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0cd3: Expected O, but got Unknown
			//IL_0cf6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d00: Expected O, but got Unknown
			//IL_0d1d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d27: Expected O, but got Unknown
			//IL_0d22: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d2c: Expected O, but got Unknown
			//IL_0d4c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d56: Expected O, but got Unknown
			//IL_0d79: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d83: Expected O, but got Unknown
			//IL_0da6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0db0: Expected O, but got Unknown
			//IL_0dcd: Unknown result type (might be due to invalid IL or missing references)
			//IL_0dd7: Expected O, but got Unknown
			//IL_0dfa: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e04: Expected O, but got Unknown
			//IL_0e21: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e2b: Expected O, but got Unknown
			//IL_0e4e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e58: Expected O, but got Unknown
			//IL_0e75: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e7f: Expected O, but got Unknown
			//IL_0ea2: Unknown result type (might be due to invalid IL or missing references)
			//IL_0eac: Expected O, but got Unknown
			//IL_0ecf: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ed9: Expected O, but got Unknown
			//IL_0ef6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f00: Expected O, but got Unknown
			//IL_0f20: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f2a: Expected O, but got Unknown
			//IL_0f47: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f51: Expected O, but got Unknown
			//IL_0f74: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f7e: Expected O, but got Unknown
			//IL_0f9b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fa5: Expected O, but got Unknown
			//IL_0fc8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fd2: Expected O, but got Unknown
			//IL_0fef: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ff9: Expected O, but got Unknown
			//IL_0ff4: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ffe: Expected O, but got Unknown
			//IL_1021: Unknown result type (might be due to invalid IL or missing references)
			//IL_102b: Expected O, but got Unknown
			//IL_1048: Unknown result type (might be due to invalid IL or missing references)
			//IL_1052: Expected O, but got Unknown
			//IL_1075: Unknown result type (might be due to invalid IL or missing references)
			//IL_107f: Expected O, but got Unknown
			//IL_109c: Unknown result type (might be due to invalid IL or missing references)
			//IL_10a6: Expected O, but got Unknown
			//IL_10a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_10ab: Expected O, but got Unknown
			//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: Expected O, but got Unknown
			//IL_1122: Unknown result type (might be due to invalid IL or missing references)
			//IL_112c: Expected O, but got Unknown
			//IL_1149: Unknown result type (might be due to invalid IL or missing references)
			//IL_1153: Expected O, but got Unknown
			//IL_1176: Unknown result type (might be due to invalid IL or missing references)
			//IL_1180: Expected O, but got Unknown
			//IL_119d: Unknown result type (might be due to invalid IL or missing references)
			//IL_11a7: Expected O, but got Unknown
			//IL_11ca: Unknown result type (might be due to invalid IL or missing references)
			//IL_11d4: Expected O, but got Unknown
			//IL_11f7: Unknown result type (might be due to invalid IL or missing references)
			//IL_1201: Expected O, but got Unknown
			//IL_121e: Unknown result type (might be due to invalid IL or missing references)
			//IL_1228: Expected O, but got Unknown
			//IL_1223: Unknown result type (might be due to invalid IL or missing references)
			//IL_122d: Expected O, but got Unknown
			//IL_1250: Unknown result type (might be due to invalid IL or missing references)
			//IL_125a: Expected O, but got Unknown
			//IL_127d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1287: Expected O, but got Unknown
			//IL_12a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_12ae: Expected O, but got Unknown
			//IL_12d1: Unknown result type (might be due to invalid IL or missing references)
			//IL_12db: Expected O, but got Unknown
			//IL_12f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_1302: Expected O, but got Unknown
			//IL_12fd: Unknown result type (might be due to invalid IL or missing references)
			//IL_1307: Expected O, but got Unknown
			//IL_132a: Unknown result type (might be due to invalid IL or missing references)
			//IL_1334: 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_13ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_13c4: Expected O, but got Unknown
			//IL_09cb: Unknown result type (might be due to invalid IL or missing references)
			//IL_09d5: Expected O, but got Unknown
			//IL_06ed: Unknown result type (might be due to invalid IL or missing references)
			//IL_06f7: Expected O, but got Unknown
			//IL_096e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0978: Expected O, but got Unknown
			try
			{
				switch (<>1__state)
				{
				default:
					return false;
				case 0:
					<>1__state = -1;
					<waiter>5__1 = new MultiTokenWaiter(new Func<Token, bool>[34]
					{
						(Token t) => (int)t.Type == 38,
						(Token t) => (int)t.Type == 15,
						delegate(Token t)
						{
							IdentifierToken val21 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
							return val21 != null && val21.Name == "journal_logs";
						},
						(Token t) => (int)t.Type == 76,
						delegate(Token t)
						{
							IdentifierToken val20 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
							return val20 != null && val20.Name == "category";
						},
						(Token t) => (int)t.Type == 77,
						(Token t) => (int)t.Type == 76,
						delegate(Token t)
						{
							IdentifierToken val19 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
							return val19 != null && val19.Name == "item_id";
						},
						(Token t) => (int)t.Type == 77,
						(Token t) => (int)t.Type == 76,
						delegate(Token t)
						{
							ConstantToken val17 = (ConstantToken)(object)((t is ConstantToken) ? t : null);
							int result3;
							if (val17 != null)
							{
								Variant value3 = val17.Value;
								StringVariant val18 = (StringVariant)(object)((value3 is StringVariant) ? value3 : null);
								if (val18 != null)
								{
									result3 = ((val18.Value == "quality") ? 1 : 0);
									goto IL_002c;
								}
							}
							result3 = 0;
							goto IL_002c;
							IL_002c:
							return (byte)result3 != 0;
						},
						(Token t) => (int)t.Type == 77,
						(Token t) => (int)t.Type == 84,
						delegate(Token t)
						{
							IdentifierToken val16 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
							return val16 != null && val16.Name == "has";
						},
						(Token t) => (int)t.Type == 80,
						delegate(Token t)
						{
							IdentifierToken val15 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
							return val15 != null && val15.Name == "quality";
						},
						(Token t) => (int)t.Type == 81,
						(Token t) => (int)t.Type == 86,
						delegate(Token t)
						{
							IdentifierToken val14 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
							return val14 != null && val14.Name == "journal_logs";
						},
						(Token t) => (int)t.Type == 76,
						delegate(Token t)
						{
							IdentifierToken val13 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
							return val13 != null && val13.Name == "category";
						},
						(Token t) => (int)t.Type == 77,
						(Token t) => (int)t.Type == 76,
						delegate(Token t)
						{
							IdentifierToken val12 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
							return val12 != null && val12.Name == "item_id";
						},
						(Token t) => (int)t.Type == 77,
						(Token t) => (int)t.Type == 76,
						delegate(Token t)
						{
							ConstantToken val10 = (ConstantToken)(object)((t is ConstantToken) ? t : null);
							int result2;
							if (val10 != null)
							{
								Variant value2 = val10.Value;
								StringVariant val11 = (StringVariant)(object)((value2 is StringVariant) ? value2 : null);
								if (val11 != null)
								{
									result2 = ((val11.Value == "quality") ? 1 : 0);
									goto IL_002c;
								}
							}
							result2 = 0;
							goto IL_002c;
							IL_002c:
							return (byte)result2 != 0;
						},
						(Token t) => (int)t.Type == 77,
						(Token t) => (int)t.Type == 84,
						delegate(Token t)
						{
							IdentifierToken val9 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
							return val9 != null && val9.Name == "append";
						},
						(Token t) => (int)t.Type == 80,
						delegate(Token t)
						{
							IdentifierToken val8 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
							return val8 != null && val8.Name == "quality";
						},
						(Token t) => (int)t.Type == 81,
						(Token t) => (int)t.Type == 89
					}, false, false);
					<ifWaiter>5__2 = new MultiTokenWaiter(new Func<Token, bool>[18]
					{
						(Token t) => (int)t.Type == 38,
						(Token t) => (int)t.Type == 15,
						delegate(Token t)
						{
							IdentifierToken val7 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
							return val7 != null && val7.Name == "journal_logs";
						},
						(Token t) => (int)t.Type == 76,
						delegate(Token t)
						{
							IdentifierToken val6 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
							return val6 != null && val6.Name == "category";
						},
						(Token t) => (int)t.Type == 77,
						(Token t) => (int)t.Type == 76,
						delegate(Token t)
						{
							IdentifierToken val5 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
							return val5 != null && val5.Name == "item_id";
						},
						(Token t) => (int)t.Type == 77,
						(Token t) => (int)t.Type == 76,
						delegate(Token t)
						{
							ConstantToken val3 = (ConstantToken)(object)((t is ConstantToken) ? t : null);
							int result;
							if (val3 != null)
							{
								Variant value = val3.Value;
								StringVariant val4 = (StringVariant)(object)((value is StringVariant) ? value : null);
								if (val4 != null)
								{
									result = ((val4.Value == "quality") ? 1 : 0);
									goto IL_002c;
								}
							}
							result = 0;
							goto IL_002c;
							IL_002c:
							return (byte)result != 0;
						},
						(Token t) => (int)t.Type == 77,
						(Token t) => (int)t.Type == 84,
						delegate(Token t)
						{
							IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
							return val2 != null && val2.Name == "has";
						},
						(Token t) => (int)t.Type == 80,
						delegate(Token t)
						{
							IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
							return val != null && val.Name == "quality";
						},
						(Token t) => (int)t.Type == 81,
						(Token t) => (int)t.Type == 86
					}, false, false);
					<>s__3 = tokens.GetEnumerator();
					<>1__state = -3;
					break;
				case 1:
					<>1__state = -3;
					<>2__current = new Token((TokenType)59, (uint?)null);
					<>1__state = 2;
					return true;
				case 2:
					<>1__state = -3;
					<>2__current = (Token)new IdentifierToken("qualityName");
					<>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 ConstantToken((Variant)new StringVariant(""));
					<>1__state = 5;
					return true;
				case 5:
					<>1__state = -3;
					<>2__current = new Token((TokenType)89, (uint?)3u);
					<>1__state = 6;
					return true;
				case 6:
					<>1__state = -3;
					<>2__current = new Token((TokenType)38, (uint?)null);
					<>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 = (Token)new IdentifierToken("QUALITY_DATA");
					<>1__state = 9;
					return true;
				case 9:
					<>1__state = -3;
					<>2__current = new Token((TokenType)76, (uint?)null);
					<>1__state = 10;
					return true;
				case 10:
					<>1__state = -3;
					<>2__current = (Token)new IdentifierToken("quality");
					<>1__state = 11;
					return true;
				case 11:
					<>1__state = -3;
					<>2__current = new Token((TokenType)77, (uint?)null);
					<>1__state = 12;
					return true;
				case 12:
					<>1__state = -3;
					<>2__current = new Token((TokenType)84, (uint?)null);
					<>1__state = 13;
					return true;
				case 13:
					<>1__state = -3;
					<>2__current = (Token)new IdentifierToken("name");
					<>1__state = 14;
					return true;
				case 14:
					<>1__state = -3;
					<>2__current = new Token((TokenType)7, (uint?)null);
					<>1__state = 15;
					return true;
				case 15:
					<>1__state = -3;
					<>2__current = (Token)new ConstantToken((Variant)new StringVariant(""));
					<>1__state = 16;
					return true;
				case 16:
					<>1__state = -3;
					<>2__current = new Token((TokenType)81, (uint?)null);
					<>1__state = 17;
					return true;
				case 17:
					<>1__state = -3;
					<>2__current = new Token((TokenType)86, (uint?)null);
					<>1__state = 18;
					return true;
				case 18:
					<>1__state = -3;
					<>2__current = (Token)new IdentifierToken("qualityName");
					<>1__state = 19;
					return true;
				case 19:
					<>1__state = -3;
					<>2__current = new Token((TokenType)23, (uint?)null);
					<>1__state = 20;
					return true;
				case 20:
					<>1__state = -3;
					<>2__current = (Token)new ConstantToken((Variant)new StringVariant("Normal"));
					<>1__state = 21;
					return true;
				case 21:
					<>1__state = -3;
					<>2__current = new Token((TokenType)89, (uint?)3u);
					<>1__state = 22;
					return true;
				case 22:
					<>1__state = -3;
					<>2__current = new Token((TokenType)40, (uint?)null);
					<>1__state = 23;
					return true;
				case 23:
					<>1__state = -3;
					<>2__current = new Token((TokenType)86, (uint?)null);
					<>1__state = 24;
					return true;
				case 24:
					<>1__state = -3;
					<>2__current = (Token)new IdentifierToken("qualityName");
					<>1__state = 25;
					return true;
				case 25:
					<>1__state = -3;
					<>2__current = new Token((TokenType)23, (uint?)null);
					<>1__state = 26;
					return true;
				case 26:
					<>1__state = -3;
					<>2__current = (Token)new IdentifierToken("QUALITY_DATA");
					<>1__state = 27;
					return true;
				case 27:
					<>1__state = -3;
					<>2__current = new Token((TokenType)76, (uint?)null);
					<>1__state = 28;
					return true;
				case 28:
					<>1__state = -3;
					<>2__current = (Token)new IdentifierToken("quality");
					<>1__state = 29;
					return true;
				case 29:
					<>1__state = -3;
					<>2__current = new Token((TokenType)77, (uint?)null);
					<>1__state = 30;
					return true;
				case 30:
					<>1__state = -3;
					<>2__current = new Token((TokenType)84, (uint?)null);
					<>1__state = 31;
					return true;
				case 31:
					<>1__state = -3;
					<>2__current = (Token)new IdentifierToken("name");
					<>1__state = 32;
					return true;
				case 32:
					<>1__state = -3;
					<>2__current = new Token((TokenType)89, (uint?)3u);
					<>1__state = 33;
					return true;
				case 33:
					<>1__state = -3;
					<>2__current = (Token)new IdentifierToken("PlayerData");
					<>1__state = 34;
					return true;
				case 34:
					<>1__state = -3;
					<>2__current = new Token((TokenType)84, (uint?)null);
					<>1__state = 35;
					return true;
				case 35:
					<>1__state = -3;
					<>2__current = (Token)new IdentifierToken("_send_notification");
					<>1__state = 36;
					return true;
				case 36:
					<>1__state = -3;
					<>2__current = new Token((TokenType)80, (uint?)null);
					<>1__state = 37;
					return true;
				case 37:
					<>1__state = -3;
					<>2__current = (Token)new ConstantToken((Variant)new StringVariant("You caught your first "));
					<>1__state = 38;
					return true;
				case 38:
					<>1__state = -3;
					<>2__current = new Token((TokenType)16, (uint?)null);
					<>1__state = 39;
					return true;
				case 39:
					<>1__state = -3;
					<>2__current = (Token)new IdentifierToken("qualityName");
					<>1__state = 40;
					return true;
				case 40:
					<>1__state = -3;
					<>2__current = new Token((TokenType)16, (uint?)null);
					<>1__state = 41;
					return true;
				case 41:
					<>1__state = -3;
					<>2__current = (Token)new ConstantToken((Variant)new StringVariant(" "));
					<>1__state = 42;
					return true;
				case 42:
					<>1__state = -3;
					<>2__current = new Token((TokenType)16, (uint?)null);
					<>1__state = 43;
					return true;
				case 43:
					<>1__state = -3;
					<>2__current = (Token)new IdentifierToken("Globals");
					<>1__state = 44;
					return true;
				case 44:
					<>1__state = -3;
					<>2__current = new Token((TokenType)84, (uint?)null);
					<>1__state = 45;
					return true;
				case 45:
					<>1__state = -3;
					<>2__current = (Token)new IdentifierToken("item_data");
					<>1__state = 46;
					return true;
				case 46:
					<>1__state = -3;
					<>2__current = new Token((TokenType)76, (uint?)null);
					<>1__state = 47;
					return true;
				case 47:
					<>1__state = -3;
					<>2__current = (Token)new IdentifierToken("item_id");
					<>1__state = 48;
					return true;
				case 48:
					<>1__state = -3;
					<>2__current = new Token((TokenType)77, (uint?)null);
					<>1__state = 49;
					return true;
				case 49:
					<>1__state = -3;
					<>2__current = new Token((TokenType)76, (uint?)null);
					<>1__state = 50;
					return true;
				case 50:
					<>1__state = -3;
					<>2__current = (Token)new ConstantToken((Variant)new StringVariant("file"));
					<>1__state = 51;
					return true;
				case 51:
					<>1__state = -3;
					<>2__current = new Token((TokenType)77, (uint?)null);
					<>1__state = 52;
					return true;
				case 52:
					<>1__state = -3;
					<>2__current = new Token((TokenType)84, (uint?)null);
					<>1__state = 53;
					return true;
				case 53:
					<>1__state = -3;
					<>2__current = (Token)new IdentifierToken("item_name");
					<>1__state = 54;
					return true;
				case 54:
					<>1__state = -3;
					<>2__current = new Token((TokenType)16, (uint?)null);
					<>1__state = 55;
					return true;
				case 55:
					<>1__state = -3;
					<>2__current = (Token)new ConstantToken((Variant)new StringVariant(" "));
					<>1__state = 56;
					return true;
				case 56:
					<>1__state = -3;
					<>2__current = new Token((TokenType)81, (uint?)null);
					<>1__state = 57;
					return true;
				case 57:
					<>1__state = -3;
					<>2__current = new Token((TokenType)89, (uint?)2u);
					<>1__state = 58;
					return true;
				case 58:
					<>1__state = -3;
					goto IL_13da;
				case 59:
					<>1__state = -3;
					if (<ifWaiter>5__2.Check(<token>5__4))
					{
						<>2__current = new Token((TokenType)89, (uint?)3u);
						<>1__state = 60;
						return true;
					}
					goto IL_13da;
				case 60:
					{
						<>1__state = -3;
						goto IL_13da;
					}
					IL_13da:
					<token>5__4 = null;
					break;
				}
				if (((global::System.Collections.IEnumerator)<>s__3).MoveNext())
				{
					<token>5__4 = <>s__3.Current;
					if (<waiter>5__1.Check(<token>5__4))
					{
						<>2__current = new Token((TokenType)89, (uint?)3u);
						<>1__state = 1;
						return true;
					}
					<>2__current = <token>5__4;
					<>1__state = 59;
					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__1 <Modify>d__;
			if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId)
			{
				<>1__state = 0;
				<Modify>d__ = this;
			}
			else
			{
				<Modify>d__ = new <Modify>d__1(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();
		}
	}

	public bool ShouldRun(string path)
	{
		return path == "res://Scenes/Singletons/playerdata.gdc";
	}

	[IteratorStateMachine(typeof(<Modify>d__1))]
	public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens)
	{
		MultiTokenWaiter waiter = new MultiTokenWaiter(new Func<Token, bool>[34]
		{
			(Token t) => (int)t.Type == 38,
			(Token t) => (int)t.Type == 15,
			delegate(Token t)
			{
				IdentifierToken val21 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
				return val21 != null && val21.Name == "journal_logs";
			},
			(Token t) => (int)t.Type == 76,
			delegate(Token t)
			{
				IdentifierToken val20 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
				return val20 != null && val20.Name == "category";
			},
			(Token t) => (int)t.Type == 77,
			(Token t) => (int)t.Type == 76,
			delegate(Token t)
			{
				IdentifierToken val19 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
				return val19 != null && val19.Name == "item_id";
			},
			(Token t) => (int)t.Type == 77,
			(Token t) => (int)t.Type == 76,
			delegate(Token t)
			{
				ConstantToken val17 = (ConstantToken)(object)((t is ConstantToken) ? t : null);
				int result3;
				if (val17 != null)
				{
					Variant value3 = val17.Value;
					StringVariant val18 = (StringVariant)(object)((value3 is StringVariant) ? value3 : null);
					if (val18 != null)
					{
						result3 = ((val18.Value == "quality") ? 1 : 0);
						goto IL_002c;
					}
				}
				result3 = 0;
				goto IL_002c;
				IL_002c:
				return (byte)result3 != 0;
			},
			(Token t) => (int)t.Type == 77,
			(Token t) => (int)t.Type == 84,
			delegate(Token t)
			{
				IdentifierToken val16 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
				return val16 != null && val16.Name == "has";
			},
			(Token t) => (int)t.Type == 80,
			delegate(Token t)
			{
				IdentifierToken val15 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
				return val15 != null && val15.Name == "quality";
			},
			(Token t) => (int)t.Type == 81,
			(Token t) => (int)t.Type == 86,
			delegate(Token t)
			{
				IdentifierToken val14 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
				return val14 != null && val14.Name == "journal_logs";
			},
			(Token t) => (int)t.Type == 76,
			delegate(Token t)
			{
				IdentifierToken val13 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
				return val13 != null && val13.Name == "category";
			},
			(Token t) => (int)t.Type == 77,
			(Token t) => (int)t.Type == 76,
			delegate(Token t)
			{
				IdentifierToken val12 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
				return val12 != null && val12.Name == "item_id";
			},
			(Token t) => (int)t.Type == 77,
			(Token t) => (int)t.Type == 76,
			delegate(Token t)
			{
				ConstantToken val10 = (ConstantToken)(object)((t is ConstantToken) ? t : null);
				int result2;
				if (val10 != null)
				{
					Variant value2 = val10.Value;
					StringVariant val11 = (StringVariant)(object)((value2 is StringVariant) ? value2 : null);
					if (val11 != null)
					{
						result2 = ((val11.Value == "quality") ? 1 : 0);
						goto IL_002c;
					}
				}
				result2 = 0;
				goto IL_002c;
				IL_002c:
				return (byte)result2 != 0;
			},
			(Token t) => (int)t.Type == 77,
			(Token t) => (int)t.Type == 84,
			delegate(Token t)
			{
				IdentifierToken val9 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
				return val9 != null && val9.Name == "append";
			},
			(Token t) => (int)t.Type == 80,
			delegate(Token t)
			{
				IdentifierToken val8 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
				return val8 != null && val8.Name == "quality";
			},
			(Token t) => (int)t.Type == 81,
			(Token t) => (int)t.Type == 89
		}, false, false);
		MultiTokenWaiter ifWaiter = new MultiTokenWaiter(new Func<Token, bool>[18]
		{
			(Token t) => (int)t.Type == 38,
			(Token t) => (int)t.Type == 15,
			delegate(Token t)
			{
				IdentifierToken val7 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
				return val7 != null && val7.Name == "journal_logs";
			},
			(Token t) => (int)t.Type == 76,
			delegate(Token t)
			{
				IdentifierToken val6 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
				return val6 != null && val6.Name == "category";
			},
			(Token t) => (int)t.Type == 77,
			(Token t) => (int)t.Type == 76,
			delegate(Token t)
			{
				IdentifierToken val5 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
				return val5 != null && val5.Name == "item_id";
			},
			(Token t) => (int)t.Type == 77,
			(Token t) => (int)t.Type == 76,
			delegate(Token t)
			{
				ConstantToken val3 = (ConstantToken)(object)((t is ConstantToken) ? t : null);
				int result;
				if (val3 != null)
				{
					Variant value = val3.Value;
					StringVariant val4 = (StringVariant)(object)((value is StringVariant) ? value : null);
					if (val4 != null)
					{
						result = ((val4.Value == "quality") ? 1 : 0);
						goto IL_002c;
					}
				}
				result = 0;
				goto IL_002c;
				IL_002c:
				return (byte)result != 0;
			},
			(Token t) => (int)t.Type == 77,
			(Token t) => (int)t.Type == 84,
			delegate(Token t)
			{
				IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
				return val2 != null && val2.Name == "has";
			},
			(Token t) => (int)t.Type == 80,
			delegate(Token t)
			{
				IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
				return val != null && val.Name == "quality";
			},
			(Token t) => (int)t.Type == 81,
			(Token t) => (int)t.Type == 86
		}, false, false);
		global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator();
		try
		{
			while (((global::System.Collections.IEnumerator)enumerator).MoveNext())
			{
				Token token = enumerator.Current;
				if (waiter.Check(token))
				{
					yield return new Token((TokenType)89, (uint?)3u);
					yield return new Token((TokenType)59, (uint?)null);
					yield return (Token)new IdentifierToken("qualityName");
					yield return new Token((TokenType)23, (uint?)null);
					yield return (Token)new ConstantToken((Variant)new StringVariant(""));
					yield return new Token((TokenType)89, (uint?)3u);
					yield return new Token((TokenType)38, (uint?)null);
					yield return new Token((TokenType)80, (uint?)null);
					yield return (Token)new IdentifierToken("QUALITY_DATA");
					yield return new Token((TokenType)76, (uint?)null);
					yield return (Token)new IdentifierToken("quality");
					yield return new Token((TokenType)77, (uint?)null);
					yield return new Token((TokenType)84, (uint?)null);
					yield return (Token)new IdentifierToken("name");
					yield return new Token((TokenType)7, (uint?)null);
					yield return (Token)new ConstantToken((Variant)new StringVariant(""));
					yield return new Token((TokenType)81, (uint?)null);
					yield return new Token((TokenType)86, (uint?)null);
					yield return (Token)new IdentifierToken("qualityName");
					yield return new Token((TokenType)23, (uint?)null);
					yield return (Token)new ConstantToken((Variant)new StringVariant("Normal"));
					yield return new Token((TokenType)89, (uint?)3u);
					yield return new Token((TokenType)40, (uint?)null);
					yield return new Token((TokenType)86, (uint?)null);
					yield return (Token)new IdentifierToken("qualityName");
					yield return new Token((TokenType)23, (uint?)null);
					yield return (Token)new IdentifierToken("QUALITY_DATA");
					yield return new Token((TokenType)76, (uint?)null);
					yield return (Token)new IdentifierToken("quality");
					yield return new Token((TokenType)77, (uint?)null);
					yield return new Token((TokenType)84, (uint?)null);
					yield return (Token)new IdentifierToken("name");
					yield return new Token((TokenType)89, (uint?)3u);
					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("You caught your first "));
					yield return new Token((TokenType)16, (uint?)null);
					yield return (Token)new IdentifierToken("qualityName");
					yield return new Token((TokenType)16, (uint?)null);
					yield return (Token)new ConstantToken((Variant)new StringVariant(" "));
					yield return new Token((TokenType)16, (uint?)null);
					yield return (Token)new IdentifierToken("Globals");
					yield return new Token((TokenType)84, (uint?)null);
					yield return (Token)new IdentifierToken("item_data");
					yield return new Token((TokenType)76, (uint?)null);
					yield return (Token)new IdentifierToken("item_id");
					yield return new Token((TokenType)77, (uint?)null);
					yield return new Token((TokenType)76, (uint?)null);
					yield return (Token)new ConstantToken((Variant)new StringVariant("file"));
					yield return new Token((TokenType)77, (uint?)null);
					yield return new Token((TokenType)84, (uint?)null);
					yield return (Token)new IdentifierToken("item_name");
					yield return new Token((TokenType)16, (uint?)null);
					yield return (Token)new ConstantToken((Variant)new StringVariant(" "));
					yield return new Token((TokenType)81, (uint?)null);
					yield return new Token((TokenType)89, (uint?)2u);
				}
				else
				{
					yield return token;
					if (ifWaiter.Check(token))
					{
						yield return new Token((TokenType)89, (uint?)3u);
					}
				}
			}
		}
		finally
		{
			((global::System.IDisposable)enumerator)?.Dispose();
		}
	}
}
namespace z3roco01.qualityNotifications;

public class Mod : IMod, global::System.IDisposable
{
	public static IModInterface ModInterface;

	public Mod(IModInterface modInterface)
	{
		ModInterface = modInterface;
		modInterface.RegisterScriptMod((IScriptMod)(object)new PlayerDataMod());
		modInterface.Logger.Information("now you have quality notifications !");
	}

	public void Dispose()
	{
	}
}