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("bothermeless")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0.0")]
[assembly: AssemblyProduct("bothermeless")]
[assembly: AssemblyTitle("bothermeless")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace BotherMeLess;
public class Config
{
[JsonInclude]
public bool ThisDoesNothing = true;
}
public class PlayerMod : 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 PlayerMod <>4__this;
private MultiTokenWaiter <baitwarn>5__1;
private MultiTokenWaiter <chalkwarn>5__2;
private MultiTokenWaiter <baitretiming>5__3;
private global::System.Collections.Generic.IEnumerator<Token> <>s__4;
private Token <token>5__5;
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) > 17u)
{
return;
}
try
{
}
finally
{
<>m__Finally1();
}
}
private bool MoveNext()
{
//IL_032b: Unknown result type (might be due to invalid IL or missing references)
//IL_0335: Expected O, but got Unknown
//IL_0357: Unknown result type (might be due to invalid IL or missing references)
//IL_0361: Expected O, but got Unknown
//IL_037d: Unknown result type (might be due to invalid IL or missing references)
//IL_0387: Expected O, but got Unknown
//IL_03a9: Unknown result type (might be due to invalid IL or missing references)
//IL_03b3: Expected O, but got Unknown
//IL_03cf: Unknown result type (might be due to invalid IL or missing references)
//IL_03d9: Expected O, but got Unknown
//IL_03d4: Unknown result type (might be due to invalid IL or missing references)
//IL_03de: Expected O, but got Unknown
//IL_0400: Unknown result type (might be due to invalid IL or missing references)
//IL_040a: Expected O, but got Unknown
//IL_0429: Unknown result type (might be due to invalid IL or missing references)
//IL_0433: Expected O, but got Unknown
//IL_0455: Unknown result type (might be due to invalid IL or missing references)
//IL_045f: Expected O, but got Unknown
//IL_0478: Unknown result type (might be due to invalid IL or missing references)
//IL_0482: 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_0518: Unknown result type (might be due to invalid IL or missing references)
//IL_0522: Expected O, but got Unknown
//IL_053b: Unknown result type (might be due to invalid IL or missing references)
//IL_0545: Expected O, but got Unknown
//IL_0540: Unknown result type (might be due to invalid IL or missing references)
//IL_054a: Expected O, but got Unknown
//IL_05ae: Unknown result type (might be due to invalid IL or missing references)
//IL_05b8: Expected O, but got Unknown
//IL_05d4: Unknown result type (might be due to invalid IL or missing references)
//IL_05de: Expected O, but got Unknown
//IL_05d9: Unknown result type (might be due to invalid IL or missing references)
//IL_05e3: Expected O, but got Unknown
//IL_0135: Unknown result type (might be due to invalid IL or missing references)
//IL_013f: Expected O, but got Unknown
//IL_0236: Unknown result type (might be due to invalid IL or missing references)
//IL_0240: Expected O, but got Unknown
//IL_02af: Unknown result type (might be due to invalid IL or missing references)
//IL_02b9: Expected O, but got Unknown
try
{
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<baitwarn>5__1 = new MultiTokenWaiter(new Func<Token, bool>[3]
{
delegate(Token t)
{
ConstantToken val8 = (ConstantToken)(object)((t is ConstantToken) ? t : null);
int result3;
if (val8 != null)
{
Variant value3 = val8.Value;
StringVariant val9 = (StringVariant)(object)((value3 is StringVariant) ? value3 : null);
if (val9 != null)
{
result3 = ((val9.Value == "[color=#ac0029]Seems nothing is going to bite... perhaps your bait isn't for this water...[/color]") ? 1 : 0);
goto IL_002c;
}
}
result3 = 0;
goto IL_002c;
IL_002c:
return (byte)result3 != 0;
},
(Token t) => (int)t.Type == 89,
(Token t) => (int)t.Type == 89
}, false, false);
<chalkwarn>5__2 = new MultiTokenWaiter(new Func<Token, bool>[7]
{
delegate(Token t)
{
IdentifierToken val7 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val7 != null && val7.Name == "in_zone";
},
(Token t) => (int)t.Type == 23,
delegate(Token t)
{
ConstantToken val5 = (ConstantToken)(object)((t is ConstantToken) ? t : null);
int result2;
if (val5 != null)
{
Variant value2 = val5.Value;
BoolVariant val6 = (BoolVariant)(object)((value2 is BoolVariant) ? value2 : null);
if (val6 != null)
{
result2 = (val6.Value ? 1 : 0);
goto IL_0022;
}
}
result2 = 0;
goto IL_0022;
IL_0022:
return (byte)result2 != 0;
},
(Token t) => (int)t.Type == 89,
(Token t) => (int)t.Type == 38,
(Token t) => (int)t.Type == 15,
delegate(Token t)
{
IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val4 != null && val4.Name == "in_zone";
}
}, false, false);
<baitretiming>5__3 = new MultiTokenWaiter(new Func<Token, bool>[3]
{
delegate(Token t)
{
IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val3 != null && val3.Name == "bait_warn";
},
(Token t) => (int)t.Type == 23,
delegate(Token t)
{
ConstantToken val = (ConstantToken)(object)((t is ConstantToken) ? t : null);
int result;
if (val != null)
{
Variant value = val.Value;
IntVariant val2 = (IntVariant)(object)((value is IntVariant) ? value : null);
if (val2 != null)
{
result = ((val2.Value == 8) ? 1 : 0);
goto IL_0026;
}
}
result = 0;
goto IL_0026;
IL_0026:
return (byte)result != 0;
}
}, false, false);
<>s__4 = tokens.GetEnumerator();
<>1__state = -3;
break;
case 1:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("PlayerData");
<>1__state = 2;
return true;
case 2:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 3;
return true;
case 3:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("_send_notification");
<>1__state = 4;
return true;
case 4:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 5;
return true;
case 5:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("no bait attached!"));
<>1__state = 6;
return true;
case 6:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 7;
return true;
case 7:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 8;
return true;
case 8:
<>1__state = -3;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 9;
return true;
case 9:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new BoolVariant(false));
<>1__state = 10;
return true;
case 10:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 11;
return true;
case 11:
<>1__state = -3;
goto IL_061c;
case 12:
<>1__state = -3;
<>2__current = new Token((TokenType)13, (uint?)null);
<>1__state = 13;
return true;
case 13:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new BoolVariant(false));
<>1__state = 14;
return true;
case 14:
<>1__state = -3;
goto IL_061c;
case 15:
<>1__state = -3;
<>2__current = new Token((TokenType)16, (uint?)null);
<>1__state = 16;
return true;
case 16:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant(22L, false));
<>1__state = 17;
return true;
case 17:
<>1__state = -3;
goto IL_061c;
case 18:
{
<>1__state = -3;
goto IL_061c;
}
IL_061c:
<token>5__5 = null;
break;
}
if (((global::System.Collections.IEnumerator)<>s__4).MoveNext())
{
<token>5__5 = <>s__4.Current;
if (<baitwarn>5__1.Check(<token>5__5))
{
<>2__current = <token>5__5;
<>1__state = 1;
return true;
}
if (<chalkwarn>5__2.Check(<token>5__5))
{
<>2__current = <token>5__5;
<>1__state = 12;
return true;
}
if (<baitretiming>5__3.Check(<token>5__5))
{
<>2__current = <token>5__5;
<>1__state = 15;
return true;
}
<>2__current = <token>5__5;
<>1__state = 18;
return true;
}
<>m__Finally1();
<>s__4 = 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__4 != null)
{
((global::System.IDisposable)<>s__4).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/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 baitwarn = new MultiTokenWaiter(new Func<Token, bool>[3]
{
delegate(Token t)
{
ConstantToken val8 = (ConstantToken)(object)((t is ConstantToken) ? t : null);
int result3;
if (val8 != null)
{
Variant value3 = val8.Value;
StringVariant val9 = (StringVariant)(object)((value3 is StringVariant) ? value3 : null);
if (val9 != null)
{
result3 = ((val9.Value == "[color=#ac0029]Seems nothing is going to bite... perhaps your bait isn't for this water...[/color]") ? 1 : 0);
goto IL_002c;
}
}
result3 = 0;
goto IL_002c;
IL_002c:
return (byte)result3 != 0;
},
(Token t) => (int)t.Type == 89,
(Token t) => (int)t.Type == 89
}, false, false);
MultiTokenWaiter chalkwarn = new MultiTokenWaiter(new Func<Token, bool>[7]
{
delegate(Token t)
{
IdentifierToken val7 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val7 != null && val7.Name == "in_zone";
},
(Token t) => (int)t.Type == 23,
delegate(Token t)
{
ConstantToken val5 = (ConstantToken)(object)((t is ConstantToken) ? t : null);
int result2;
if (val5 != null)
{
Variant value2 = val5.Value;
BoolVariant val6 = (BoolVariant)(object)((value2 is BoolVariant) ? value2 : null);
if (val6 != null)
{
result2 = (val6.Value ? 1 : 0);
goto IL_0022;
}
}
result2 = 0;
goto IL_0022;
IL_0022:
return (byte)result2 != 0;
},
(Token t) => (int)t.Type == 89,
(Token t) => (int)t.Type == 38,
(Token t) => (int)t.Type == 15,
delegate(Token t)
{
IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val4 != null && val4.Name == "in_zone";
}
}, false, false);
MultiTokenWaiter baitretiming = new MultiTokenWaiter(new Func<Token, bool>[3]
{
delegate(Token t)
{
IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val3 != null && val3.Name == "bait_warn";
},
(Token t) => (int)t.Type == 23,
delegate(Token t)
{
ConstantToken val = (ConstantToken)(object)((t is ConstantToken) ? t : null);
int result;
if (val != null)
{
Variant value = val.Value;
IntVariant val2 = (IntVariant)(object)((value is IntVariant) ? value : null);
if (val2 != null)
{
result = ((val2.Value == 8) ? 1 : 0);
goto IL_0026;
}
}
result = 0;
goto IL_0026;
IL_0026:
return (byte)result != 0;
}
}, false, false);
global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator();
try
{
while (((global::System.Collections.IEnumerator)enumerator).MoveNext())
{
Token token = enumerator.Current;
if (baitwarn.Check(token))
{
yield return token;
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("no bait attached!"));
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)89, (uint?)2u);
yield return new Token((TokenType)38, (uint?)null);
yield return (Token)new ConstantToken((Variant)new BoolVariant(false));
yield return new Token((TokenType)86, (uint?)null);
}
else if (chalkwarn.Check(token))
{
yield return token;
yield return new Token((TokenType)13, (uint?)null);
yield return (Token)new ConstantToken((Variant)new BoolVariant(false));
}
else if (baitretiming.Check(token))
{
yield return token;
yield return new Token((TokenType)16, (uint?)null);
yield return (Token)new ConstantToken((Variant)new IntVariant(22L, false));
}
else
{
yield return token;
}
}
}
finally
{
((global::System.IDisposable)enumerator)?.Dispose();
}
}
}
public 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 <badgepop>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__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) > 10u)
{
return;
}
try
{
}
finally
{
<>m__Finally1();
}
}
private bool MoveNext()
{
//IL_0200: Unknown result type (might be due to invalid IL or missing references)
//IL_020a: Expected O, but got Unknown
//IL_0226: Unknown result type (might be due to invalid IL or missing references)
//IL_0230: Expected O, but got Unknown
//IL_0252: Unknown result type (might be due to invalid IL or missing references)
//IL_025c: Expected O, but got Unknown
//IL_0278: Unknown result type (might be due to invalid IL or missing references)
//IL_0282: Expected O, but got Unknown
//IL_02a4: Unknown result type (might be due to invalid IL or missing references)
//IL_02ae: Expected O, but got Unknown
//IL_02ca: Unknown result type (might be due to invalid IL or missing references)
//IL_02d4: Expected O, but got Unknown
//IL_02f6: Unknown result type (might be due to invalid IL or missing references)
//IL_0300: Expected O, but got Unknown
//IL_0322: Unknown result type (might be due to invalid IL or missing references)
//IL_032c: Expected O, but got Unknown
//IL_034f: Unknown result type (might be due to invalid IL or missing references)
//IL_0359: Expected O, but got Unknown
//IL_017e: Unknown result type (might be due to invalid IL or missing references)
//IL_0188: Expected O, but got Unknown
try
{
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<badgepop>5__1 = new MultiTokenWaiter(new Func<Token, bool>[7]
{
(Token t) => (int)t.Type == 80,
delegate(Token t)
{
ConstantToken val3 = (ConstantToken)(object)((t is ConstantToken) ? t : null);
int result2;
if (val3 != null)
{
Variant value2 = val3.Value;
RealVariant val4 = (RealVariant)(object)((value2 is RealVariant) ? value2 : null);
if (val4 != null)
{
result2 = ((val4.Value == 0.5) ? 1 : 0);
goto IL_002d;
}
}
result2 = 0;
goto IL_002d;
IL_002d:
return (byte)result2 != 0;
},
(Token t) => (int)t.Type == 81,
(Token t) => (int)t.Type == 82,
delegate(Token t)
{
ConstantToken val = (ConstantToken)(object)((t is ConstantToken) ? t : null);
int result;
if (val != null)
{
Variant value = val.Value;
StringVariant val2 = (StringVariant)(object)((value is StringVariant) ? value : null);
if (val2 != null)
{
result = ((val2.Value == "timeout") ? 1 : 0);
goto IL_002c;
}
}
result = 0;
goto IL_002c;
IL_002c:
return (byte)result != 0;
},
(Token t) => (int)t.Type == 81,
(Token t) => (int)t.Type == 89
}, false, false);
<>s__2 = tokens.GetEnumerator();
<>1__state = -3;
break;
case 1:
<>1__state = -3;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 2;
return true;
case 2:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("badge_level");
<>1__state = 3;
return true;
case 3:
<>1__state = -3;
<>2__current = new Token((TokenType)9, (uint?)null);
<>1__state = 4;
return true;
case 4:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("BADGE_LEVEL_DATA");
<>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("size");
<>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)86, (uint?)null);
<>1__state = 10;
return true;
case 10:
<>1__state = -3;
goto IL_0392;
case 11:
{
<>1__state = -3;
goto IL_0392;
}
IL_0392:
<token>5__3 = null;
break;
}
if (((global::System.Collections.IEnumerator)<>s__2).MoveNext())
{
<token>5__3 = <>s__2.Current;
if (<badgepop>5__1.Check(<token>5__3))
{
<>2__current = <token>5__3;
<>1__state = 1;
return true;
}
<>2__current = <token>5__3;
<>1__state = 11;
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__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 badgepop = new MultiTokenWaiter(new Func<Token, bool>[7]
{
(Token t) => (int)t.Type == 80,
delegate(Token t)
{
ConstantToken val3 = (ConstantToken)(object)((t is ConstantToken) ? t : null);
int result2;
if (val3 != null)
{
Variant value2 = val3.Value;
RealVariant val4 = (RealVariant)(object)((value2 is RealVariant) ? value2 : null);
if (val4 != null)
{
result2 = ((val4.Value == 0.5) ? 1 : 0);
goto IL_002d;
}
}
result2 = 0;
goto IL_002d;
IL_002d:
return (byte)result2 != 0;
},
(Token t) => (int)t.Type == 81,
(Token t) => (int)t.Type == 82,
delegate(Token t)
{
ConstantToken val = (ConstantToken)(object)((t is ConstantToken) ? t : null);
int result;
if (val != null)
{
Variant value = val.Value;
StringVariant val2 = (StringVariant)(object)((value is StringVariant) ? value : null);
if (val2 != null)
{
result = ((val2.Value == "timeout") ? 1 : 0);
goto IL_002c;
}
}
result = 0;
goto IL_002c;
IL_002c:
return (byte)result != 0;
},
(Token t) => (int)t.Type == 81,
(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 (badgepop.Check(token))
{
yield return token;
yield return new Token((TokenType)38, (uint?)null);
yield return (Token)new IdentifierToken("badge_level");
yield return new Token((TokenType)9, (uint?)null);
yield return (Token)new IdentifierToken("BADGE_LEVEL_DATA");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("size");
yield return new Token((TokenType)80, (uint?)null);
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)86, (uint?)null);
}
else
{
yield return token;
}
}
}
finally
{
((global::System.IDisposable)enumerator)?.Dispose();
}
}
}
public class Mod : IMod, global::System.IDisposable
{
public Config Config;
public Mod(IModInterface modInterface)
{
Config = modInterface.ReadConfig<Config>();
modInterface.RegisterScriptMod((IScriptMod)(object)new PlayerMod());
modInterface.RegisterScriptMod((IScriptMod)(object)new PlayerDataMod());
modInterface.Logger.Information("[officer balls] less bothering incoming");
}
public void Dispose()
{
}
}