using System;
using System.CodeDom.Compiler;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.Reflection;
using System.Resources;
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("Erythtini.ReelBonusSpy")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0.0+61cf170a98fa8ecc96468ad887a411ebb34111eb")]
[assembly: AssemblyProduct("Erythtini.ReelBonusSpy")]
[assembly: AssemblyTitle("Erythtini.ReelBonusSpy")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace Erythtini.ReelBonusSpy.Properties
{
[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[DebuggerNonUserCode]
[CompilerGenerated]
internal class Resources
{
private static ResourceManager resourceMan;
private static CultureInfo resourceCulture;
[EditorBrowsable(/*Could not decode attribute arguments.*/)]
internal static ResourceManager ResourceManager
{
get
{
//IL_001b: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Expected O, but got Unknown
if (resourceMan == null)
{
resourceMan = new ResourceManager("Erythtini.ReelBonusSpy.Properties.Resources", typeof(Resources).Assembly);
}
return resourceMan;
}
}
[EditorBrowsable(/*Could not decode attribute arguments.*/)]
internal static CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
internal Resources()
{
}
}
}
namespace ReelBonusSpy
{
public class Config
{
}
public class Mod : IMod, global::System.IDisposable
{
public Config Config;
public Mod(IModInterface modInterface)
{
Config = modInterface.ReadConfig<Config>();
modInterface.Logger.Information("[Erythtini.ReelBonusSpy] Applying patches for RBS...");
modInterface.RegisterScriptMod((IScriptMod)(object)new SlowReelNotifPatch());
modInterface.Logger.Information("[Erythtini.ReelBonusSpy] Patches applied successfully! Good luck out there, fisher :D");
}
public void Dispose()
{
}
}
public class SlowReelNotifPatch : 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 global::System.Collections.Generic.IEnumerable<Token> tokens;
public global::System.Collections.Generic.IEnumerable<Token> <>3__tokens;
private MultiTokenWaiter <catchFishWaiter>5__2;
private TokenConsumer <newLineConsume>5__3;
private global::System.Collections.Generic.IEnumerator<Token> <>7__wrap3;
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) <= 18u)
{
try
{
}
finally
{
<>m__Finally1();
}
}
}
private bool MoveNext()
{
//IL_024a: Unknown result type (might be due to invalid IL or missing references)
//IL_0254: Expected O, but got Unknown
//IL_0276: Unknown result type (might be due to invalid IL or missing references)
//IL_0280: Expected O, but got Unknown
//IL_029c: Unknown result type (might be due to invalid IL or missing references)
//IL_02a6: Expected O, but got Unknown
//IL_02a1: Unknown result type (might be due to invalid IL or missing references)
//IL_02ab: Expected O, but got Unknown
//IL_02cd: Unknown result type (might be due to invalid IL or missing references)
//IL_02d7: Expected O, but got Unknown
//IL_02f9: Unknown result type (might be due to invalid IL or missing references)
//IL_0303: Expected O, but got Unknown
//IL_031f: Unknown result type (might be due to invalid IL or missing references)
//IL_0329: Expected O, but got Unknown
//IL_034b: Unknown result type (might be due to invalid IL or missing references)
//IL_0355: Expected O, but got Unknown
//IL_0371: Unknown result type (might be due to invalid IL or missing references)
//IL_037b: Expected O, but got Unknown
//IL_039e: Unknown result type (might be due to invalid IL or missing references)
//IL_03a8: Expected O, but got Unknown
//IL_03cb: Unknown result type (might be due to invalid IL or missing references)
//IL_03d5: Expected O, but got Unknown
//IL_03f2: Unknown result type (might be due to invalid IL or missing references)
//IL_03fc: Expected O, but got Unknown
//IL_041f: Unknown result type (might be due to invalid IL or missing references)
//IL_0429: Expected O, but got Unknown
//IL_044b: Unknown result type (might be due to invalid IL or missing references)
//IL_0455: Expected O, but got Unknown
//IL_0450: Unknown result type (might be due to invalid IL or missing references)
//IL_045a: Expected O, but got Unknown
//IL_047d: Unknown result type (might be due to invalid IL or missing references)
//IL_0487: Expected O, but got Unknown
//IL_04aa: Unknown result type (might be due to invalid IL or missing references)
//IL_04b4: Expected O, but got Unknown
//IL_04e2: Unknown result type (might be due to invalid IL or missing references)
//IL_04ec: Expected O, but got Unknown
//IL_0509: Unknown result type (might be due to invalid IL or missing references)
//IL_0513: Expected O, but got Unknown
//IL_01a7: Unknown result type (might be due to invalid IL or missing references)
//IL_01b1: Expected O, but got Unknown
//IL_01d1: Unknown result type (might be due to invalid IL or missing references)
//IL_01db: Expected O, but got Unknown
try
{
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<catchFishWaiter>5__2 = new MultiTokenWaiter(new Func<Token, bool>[9]
{
delegate(Token t)
{
IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val3 != null && val3.Name == "Network";
},
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val2 != null && val2.Name == "_update_chat";
},
(Token t) => (int)t.Type == 80,
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "text";
},
(Token t) => (int)t.Type == 81,
(Token t) => (int)t.Type == 89,
(Token t) => (int)t.Type == 89,
(Token t) => (int)t.Type == 38
}, false, false);
<newLineConsume>5__3 = new TokenConsumer((Func<Token, bool>)((Token t) => (int)t.Type == 89));
<>7__wrap3 = tokens.GetEnumerator();
<>1__state = -3;
break;
case 1:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("get_node");
<>1__state = 2;
return true;
case 2:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 3;
return true;
case 3:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("/root/ErythtiniReelBonusSpy"));
<>1__state = 4;
return true;
case 4:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>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("fishCatch");
<>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("fish_chance");
<>1__state = 9;
return true;
case 9:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 10;
return true;
case 10:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 11;
return true;
case 11:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("recent_reel");
<>1__state = 12;
return true;
case 12:
<>1__state = -3;
<>2__current = new Token((TokenType)11, (uint?)null);
<>1__state = 13;
return true;
case 13:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new RealVariant(0.0, false));
<>1__state = 14;
return true;
case 14:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 15;
return true;
case 15:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 16;
return true;
case 16:
<>1__state = -3;
<newLineConsume>5__3.SetReady();
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 17;
return true;
case 17:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 18;
return true;
case 18:
<>1__state = -3;
break;
case 19:
<>1__state = -3;
break;
}
while (((global::System.Collections.IEnumerator)<>7__wrap3).MoveNext())
{
Token current = <>7__wrap3.Current;
if (!<newLineConsume>5__3.Check(current))
{
if (<catchFishWaiter>5__2.Check(current))
{
<>2__current = current;
<>1__state = 1;
return true;
}
<>2__current = current;
<>1__state = 19;
return true;
}
}
<>m__Finally1();
<>7__wrap3 = 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 (<>7__wrap3 != null)
{
((global::System.IDisposable)<>7__wrap3).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);
}
<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/Entities/Player/player.gdc";
}
[IteratorStateMachine(typeof(<Modify>d__1))]
public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens)
{
MultiTokenWaiter catchFishWaiter = new MultiTokenWaiter(new Func<Token, bool>[9]
{
delegate(Token t)
{
IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val3 != null && val3.Name == "Network";
},
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val2 != null && val2.Name == "_update_chat";
},
(Token t) => (int)t.Type == 80,
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "text";
},
(Token t) => (int)t.Type == 81,
(Token t) => (int)t.Type == 89,
(Token t) => (int)t.Type == 89,
(Token t) => (int)t.Type == 38
}, false, false);
TokenConsumer newLineConsume = new TokenConsumer((Func<Token, bool>)((Token t) => (int)t.Type == 89));
global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator();
try
{
while (((global::System.Collections.IEnumerator)enumerator).MoveNext())
{
Token current = enumerator.Current;
if (!newLineConsume.Check(current))
{
if (catchFishWaiter.Check(current))
{
yield return current;
yield return (Token)new IdentifierToken("get_node");
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("/root/ErythtiniReelBonusSpy"));
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("fishCatch");
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new IdentifierToken("fish_chance");
yield return new Token((TokenType)82, (uint?)null);
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new IdentifierToken("recent_reel");
yield return new Token((TokenType)11, (uint?)null);
yield return (Token)new ConstantToken((Variant)new RealVariant(0.0, false));
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)81, (uint?)null);
newLineConsume.SetReady();
yield return new Token((TokenType)86, (uint?)null);
yield return new Token((TokenType)89, (uint?)2u);
}
else
{
yield return current;
}
}
}
}
finally
{
((global::System.IDisposable)enumerator)?.Dispose();
}
}
}
}