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("LRFLEW.TenMinuteEnergy")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0.0+8ce7ded565a7f1478272f605f88cf403c0a67585")]
[assembly: AssemblyProduct("LRFLEW.TenMinuteEnergy")]
[assembly: AssemblyTitle("LRFLEW.TenMinuteEnergy")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace LRFLEW.TenMinuteEnergy;
public class Mod : IMod, global::System.IDisposable
{
public Mod(IModInterface modInterface)
{
modInterface.Logger.Information("10 Minute Energy Loaded");
modInterface.RegisterScriptMod((IScriptMod)(object)new PlayerPatcher());
}
public void Dispose()
{
}
}
internal class PlayerPatcher : IScriptMod
{
[CompilerGenerated]
private sealed class <Modify>d__2 : 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;
public PlayerPatcher <>4__this;
private global::System.Collections.Generic.IEnumerable<Token> tokens;
public global::System.Collections.Generic.IEnumerable<Token> <>3__tokens;
private MultiTokenWaiter <func_waiter>5__2;
private MultiTokenWaiter[] <speed_waiters>5__3;
private double[] <speed_atms>5__4;
private int[] <speed_timers>5__5;
private MultiTokenWaiter[] <catch_waiters>5__6;
private MultiTokenWaiter[] <bounce_waiters>5__7;
private int[] <bounce_timers>5__8;
private int <newline_skip>5__9;
private global::System.Collections.Generic.IEnumerator<Token> <>7__wrap9;
private Token <token>5__11;
private int <i>5__12;
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__2(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) <= 52u)
{
try
{
}
finally
{
<>m__Finally1();
}
}
}
private bool MoveNext()
{
//IL_0328: Unknown result type (might be due to invalid IL or missing references)
//IL_0332: Expected O, but got Unknown
//IL_0355: Unknown result type (might be due to invalid IL or missing references)
//IL_035f: Expected O, but got Unknown
//IL_0379: Unknown result type (might be due to invalid IL or missing references)
//IL_0383: Expected O, but got Unknown
//IL_037e: Unknown result type (might be due to invalid IL or missing references)
//IL_0388: Expected O, but got Unknown
//IL_03ab: Unknown result type (might be due to invalid IL or missing references)
//IL_03b5: Expected O, but got Unknown
//IL_03d1: Unknown result type (might be due to invalid IL or missing references)
//IL_03db: Expected O, but got Unknown
//IL_03fd: Unknown result type (might be due to invalid IL or missing references)
//IL_0407: Expected O, but got Unknown
//IL_042c: Unknown result type (might be due to invalid IL or missing references)
//IL_0436: Expected O, but got Unknown
//IL_0431: Unknown result type (might be due to invalid IL or missing references)
//IL_043b: Expected O, but got Unknown
//IL_045f: Unknown result type (might be due to invalid IL or missing references)
//IL_0469: Expected O, but got Unknown
//IL_0486: Unknown result type (might be due to invalid IL or missing references)
//IL_0490: Expected O, but got Unknown
//IL_04b4: Unknown result type (might be due to invalid IL or missing references)
//IL_04be: Expected O, but got Unknown
//IL_04e5: Unknown result type (might be due to invalid IL or missing references)
//IL_04ef: Expected O, but got Unknown
//IL_04ea: Unknown result type (might be due to invalid IL or missing references)
//IL_04f4: Expected O, but got Unknown
//IL_0514: Unknown result type (might be due to invalid IL or missing references)
//IL_051e: Expected O, but got Unknown
//IL_0542: Unknown result type (might be due to invalid IL or missing references)
//IL_054c: Expected O, but got Unknown
//IL_0570: Unknown result type (might be due to invalid IL or missing references)
//IL_057a: Expected O, but got Unknown
//IL_0611: Unknown result type (might be due to invalid IL or missing references)
//IL_061b: 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_0664: Unknown result type (might be due to invalid IL or missing references)
//IL_066e: Expected O, but got Unknown
//IL_0669: Unknown result type (might be due to invalid IL or missing references)
//IL_0673: Expected O, but got Unknown
//IL_0697: Unknown result type (might be due to invalid IL or missing references)
//IL_06a1: Expected O, but got Unknown
//IL_06be: Unknown result type (might be due to invalid IL or missing references)
//IL_06c8: Expected O, but got Unknown
//IL_06eb: Unknown result type (might be due to invalid IL or missing references)
//IL_06f5: Expected O, but got Unknown
//IL_0717: Unknown result type (might be due to invalid IL or missing references)
//IL_0721: Expected O, but got Unknown
//IL_071c: Unknown result type (might be due to invalid IL or missing references)
//IL_0726: Expected O, but got Unknown
//IL_074a: Unknown result type (might be due to invalid IL or missing references)
//IL_0754: Expected O, but got Unknown
//IL_0771: Unknown result type (might be due to invalid IL or missing references)
//IL_077b: Expected O, but got Unknown
//IL_079f: Unknown result type (might be due to invalid IL or missing references)
//IL_07a9: Expected O, but got Unknown
//IL_07c8: Unknown result type (might be due to invalid IL or missing references)
//IL_07d2: Expected O, but got Unknown
//IL_07cd: Unknown result type (might be due to invalid IL or missing references)
//IL_07d7: Expected O, but got Unknown
//IL_07f7: Unknown result type (might be due to invalid IL or missing references)
//IL_0801: Expected O, but got Unknown
//IL_0825: Unknown result type (might be due to invalid IL or missing references)
//IL_082f: Expected O, but got Unknown
//IL_0853: Unknown result type (might be due to invalid IL or missing references)
//IL_085d: Expected O, but got Unknown
//IL_08f4: Unknown result type (might be due to invalid IL or missing references)
//IL_08fe: Expected O, but got Unknown
//IL_0922: Unknown result type (might be due to invalid IL or missing references)
//IL_092c: Expected O, but got Unknown
//IL_0947: Unknown result type (might be due to invalid IL or missing references)
//IL_0951: Expected O, but got Unknown
//IL_094c: Unknown result type (might be due to invalid IL or missing references)
//IL_0956: Expected O, but got Unknown
//IL_097a: Unknown result type (might be due to invalid IL or missing references)
//IL_0984: Expected O, but got Unknown
//IL_09a1: Unknown result type (might be due to invalid IL or missing references)
//IL_09ab: Expected O, but got Unknown
//IL_09ce: Unknown result type (might be due to invalid IL or missing references)
//IL_09d8: Expected O, but got Unknown
//IL_09fa: Unknown result type (might be due to invalid IL or missing references)
//IL_0a04: Expected O, but got Unknown
//IL_09ff: Unknown result type (might be due to invalid IL or missing references)
//IL_0a09: Expected O, but got Unknown
//IL_0a2d: Unknown result type (might be due to invalid IL or missing references)
//IL_0a37: Expected O, but got Unknown
//IL_0a54: Unknown result type (might be due to invalid IL or missing references)
//IL_0a5e: Expected O, but got Unknown
//IL_0a82: Unknown result type (might be due to invalid IL or missing references)
//IL_0a8c: Expected O, but got Unknown
//IL_0ab3: Unknown result type (might be due to invalid IL or missing references)
//IL_0abd: Expected O, but got Unknown
//IL_0ab8: Unknown result type (might be due to invalid IL or missing references)
//IL_0ac2: Expected O, but got Unknown
//IL_0ae2: Unknown result type (might be due to invalid IL or missing references)
//IL_0aec: Expected O, but got Unknown
//IL_0b10: Unknown result type (might be due to invalid IL or missing references)
//IL_0b1a: Expected O, but got Unknown
//IL_0b3e: Unknown result type (might be due to invalid IL or missing references)
//IL_0b48: Expected O, but got Unknown
//IL_0b65: Unknown result type (might be due to invalid IL or missing references)
//IL_0b6f: Expected O, but got Unknown
//IL_0b93: Unknown result type (might be due to invalid IL or missing references)
//IL_0b9d: Expected O, but got Unknown
//IL_0bc4: Unknown result type (might be due to invalid IL or missing references)
//IL_0bce: 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_0bf3: Unknown result type (might be due to invalid IL or missing references)
//IL_0bfd: Expected O, but got Unknown
//IL_0c1a: Unknown result type (might be due to invalid IL or missing references)
//IL_0c24: 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_0c74: Unknown result type (might be due to invalid IL or missing references)
//IL_0c7e: Expected O, but got Unknown
//IL_0c79: Unknown result type (might be due to invalid IL or missing references)
//IL_0c83: Expected O, but got Unknown
//IL_0147: Unknown result type (might be due to invalid IL or missing references)
//IL_0151: Expected O, but got Unknown
//IL_0302: Unknown result type (might be due to invalid IL or missing references)
//IL_030c: Expected O, but got Unknown
//IL_05ea: Unknown result type (might be due to invalid IL or missing references)
//IL_05f4: Expected O, but got Unknown
//IL_08cd: Unknown result type (might be due to invalid IL or missing references)
//IL_08d7: Expected O, but got Unknown
//IL_0278: Unknown result type (might be due to invalid IL or missing references)
//IL_027f: Invalid comparison between Unknown and I4
try
{
int num = <>1__state;
PlayerPatcher playerPatcher = <>4__this;
int num2;
switch (num)
{
default:
return false;
case 0:
<>1__state = -1;
<func_waiter>5__2 = new MultiTokenWaiter(new Func<Token, bool>[2]
{
(Token t) => (int)t.Type == 48,
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "_consume_item";
}
}, false, false);
<speed_waiters>5__3 = (MultiTokenWaiter[])(object)new MultiTokenWaiter[2]
{
playerPatcher.MatchWaiter("speed"),
playerPatcher.MatchWaiter("speed_burst")
};
<speed_atms>5__4 = new double[2] { 1.3, 4.0 };
<speed_timers>5__5 = new int[2] { 18000, 900 };
<catch_waiters>5__6 = (MultiTokenWaiter[])(object)new MultiTokenWaiter[3]
{
playerPatcher.MatchWaiter("catch"),
playerPatcher.MatchWaiter("catch_big"),
playerPatcher.MatchWaiter("catch_deluxe")
};
<bounce_waiters>5__7 = (MultiTokenWaiter[])(object)new MultiTokenWaiter[2]
{
playerPatcher.MatchWaiter("bounce"),
playerPatcher.MatchWaiter("bounce_big")
};
<bounce_timers>5__8 = new int[2] { 1200, 600 };
<newline_skip>5__9 = 0;
<>7__wrap9 = tokens.GetEnumerator();
<>1__state = -3;
goto IL_0cdc;
case 1:
<>1__state = -3;
goto IL_02bc;
case 2:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("boost_timer");
<>1__state = 3;
return true;
case 3:
<>1__state = -3;
<>2__current = new Token((TokenType)11, (uint?)null);
<>1__state = 4;
return true;
case 4:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant(0L, false));
<>1__state = 5;
return true;
case 5:
<>1__state = -3;
<>2__current = new Token((TokenType)13, (uint?)null);
<>1__state = 6;
return true;
case 6:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("boost_amt");
<>1__state = 7;
return true;
case 7:
<>1__state = -3;
<>2__current = new Token((TokenType)7, (uint?)null);
<>1__state = 8;
return true;
case 8:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new RealVariant(<speed_atms>5__4[<i>5__12], false));
<>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;
<>2__current = (Token)new IdentifierToken("boost_timer");
<>1__state = 11;
return true;
case 11:
<>1__state = -3;
<>2__current = new Token((TokenType)24, (uint?)null);
<>1__state = 12;
return true;
case 12:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant((long)<speed_timers>5__5[<i>5__12], false));
<>1__state = 13;
return true;
case 13:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)3u);
<>1__state = 14;
return true;
case 14:
<>1__state = -3;
<>2__current = new Token((TokenType)40, (uint?)null);
<>1__state = 15;
return true;
case 15:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 16;
return true;
case 16:
<>1__state = -3;
goto IL_0591;
case 17:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("catch_drink_timer");
<>1__state = 18;
return true;
case 18:
<>1__state = -3;
<>2__current = new Token((TokenType)11, (uint?)null);
<>1__state = 19;
return true;
case 19:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant(0L, false));
<>1__state = 20;
return true;
case 20:
<>1__state = -3;
<>2__current = new Token((TokenType)13, (uint?)null);
<>1__state = 21;
return true;
case 21:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("catch_drink_tier");
<>1__state = 22;
return true;
case 22:
<>1__state = -3;
<>2__current = new Token((TokenType)7, (uint?)null);
<>1__state = 23;
return true;
case 23:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant((long)(<i>5__12 + 1), false));
<>1__state = 24;
return true;
case 24:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 25;
return true;
case 25:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("catch_drink_timer");
<>1__state = 26;
return true;
case 26:
<>1__state = -3;
<>2__current = new Token((TokenType)24, (uint?)null);
<>1__state = 27;
return true;
case 27:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant(18000L, false));
<>1__state = 28;
return true;
case 28:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)3u);
<>1__state = 29;
return true;
case 29:
<>1__state = -3;
<>2__current = new Token((TokenType)40, (uint?)null);
<>1__state = 30;
return true;
case 30:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 31;
return true;
case 31:
<>1__state = -3;
goto IL_0874;
case 32:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("jump_bonus_timer");
<>1__state = 33;
return true;
case 33:
<>1__state = -3;
<>2__current = new Token((TokenType)11, (uint?)null);
<>1__state = 34;
return true;
case 34:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant(0L, false));
<>1__state = 35;
return true;
case 35:
<>1__state = -3;
<>2__current = new Token((TokenType)13, (uint?)null);
<>1__state = 36;
return true;
case 36:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("jump_bonus_tier");
<>1__state = 37;
return true;
case 37:
<>1__state = -3;
<>2__current = new Token((TokenType)7, (uint?)null);
<>1__state = 38;
return true;
case 38:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant((long)(<i>5__12 + 1), false));
<>1__state = 39;
return true;
case 39:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 40;
return true;
case 40:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("jump_bonus_timer");
<>1__state = 41;
return true;
case 41:
<>1__state = -3;
<>2__current = new Token((TokenType)24, (uint?)null);
<>1__state = 42;
return true;
case 42:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant((long)<bounce_timers>5__8[<i>5__12], false));
<>1__state = 43;
return true;
case 43:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)3u);
<>1__state = 44;
return true;
case 44:
<>1__state = -3;
<>2__current = new Token((TokenType)40, (uint?)null);
<>1__state = 45;
return true;
case 45:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 46;
return true;
case 46:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("jump_bonus_timer");
<>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 ConstantToken((Variant)new IntVariant((long)<bounce_timers>5__8[<i>5__12], false));
<>1__state = 49;
return true;
case 49:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)3u);
<>1__state = 50;
return true;
case 50:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("jump_bonus_tier");
<>1__state = 51;
return true;
case 51:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 52;
return true;
case 52:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant((long)(<i>5__12 + 1), false));
<>1__state = 53;
return true;
case 53:
{
<>1__state = -3;
<newline_skip>5__9 = 2;
goto IL_0c9e;
}
IL_02bc:
if (<func_waiter>5__2.Matched)
{
<i>5__12 = 0;
goto IL_05a1;
}
<func_waiter>5__2.Check(<token>5__11);
goto IL_0cd5;
IL_05a1:
if (<i>5__12 < <speed_waiters>5__3.Length)
{
if (<speed_waiters>5__3[<i>5__12].Check(<token>5__11))
{
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 2;
return true;
}
goto IL_0591;
}
<i>5__12 = 0;
goto IL_0884;
IL_0c9e:
num2 = <i>5__12 + 1;
<i>5__12 = num2;
goto IL_0cae;
IL_0cdc:
if (((global::System.Collections.IEnumerator)<>7__wrap9).MoveNext())
{
<token>5__11 = <>7__wrap9.Current;
if (<newline_skip>5__9 > 0 && (int)<token>5__11.Type == 89)
{
<newline_skip>5__9--;
}
if (<newline_skip>5__9 <= 0)
{
<>2__current = <token>5__11;
<>1__state = 1;
return true;
}
goto IL_02bc;
}
<>m__Finally1();
<>7__wrap9 = null;
return false;
IL_0591:
num2 = <i>5__12 + 1;
<i>5__12 = num2;
goto IL_05a1;
IL_0884:
if (<i>5__12 < <catch_waiters>5__6.Length)
{
if (<catch_waiters>5__6[<i>5__12].Check(<token>5__11))
{
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 17;
return true;
}
goto IL_0874;
}
<i>5__12 = 0;
goto IL_0cae;
IL_0cae:
if (<i>5__12 < <bounce_waiters>5__7.Length)
{
if (<bounce_waiters>5__7[<i>5__12].Check(<token>5__11))
{
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 32;
return true;
}
goto IL_0c9e;
}
goto IL_0cd5;
IL_0cd5:
<token>5__11 = null;
goto IL_0cdc;
IL_0874:
num2 = <i>5__12 + 1;
<i>5__12 = num2;
goto IL_0884;
}
}
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__wrap9 != null)
{
((global::System.IDisposable)<>7__wrap9).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__2 <Modify>d__;
if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId)
{
<>1__state = 0;
<Modify>d__ = this;
}
else
{
<Modify>d__ = new <Modify>d__2(0)
{
<>4__this = <>4__this
};
}
<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";
}
private MultiTokenWaiter MatchWaiter(string caseString)
{
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_006e: Expected O, but got Unknown
string caseString2 = caseString;
return new MultiTokenWaiter(new Func<Token, bool>[3]
{
delegate(Token t)
{
//IL_0018: Unknown result type (might be due to invalid IL or missing references)
//IL_0022: Unknown result type (might be due to invalid IL or missing references)
ConstantToken val = (ConstantToken)(object)((t is ConstantToken) ? t : null);
return val != null && val.Value is StringVariant && ((StringVariant)((ConstantToken)t).Value).Value == caseString2;
},
(Token t) => (int)t.Type == 86,
(Token t) => (int)t.Type == 89
}, false, false);
}
[IteratorStateMachine(typeof(<Modify>d__2))]
public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens)
{
MultiTokenWaiter func_waiter = new MultiTokenWaiter(new Func<Token, bool>[2]
{
(Token t) => (int)t.Type == 48,
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "_consume_item";
}
}, false, false);
MultiTokenWaiter[] speed_waiters = (MultiTokenWaiter[])(object)new MultiTokenWaiter[2]
{
MatchWaiter("speed"),
MatchWaiter("speed_burst")
};
double[] speed_atms = new double[2] { 1.3, 4.0 };
int[] speed_timers = new int[2] { 18000, 900 };
MultiTokenWaiter[] catch_waiters = (MultiTokenWaiter[])(object)new MultiTokenWaiter[3]
{
MatchWaiter("catch"),
MatchWaiter("catch_big"),
MatchWaiter("catch_deluxe")
};
MultiTokenWaiter[] bounce_waiters = (MultiTokenWaiter[])(object)new MultiTokenWaiter[2]
{
MatchWaiter("bounce"),
MatchWaiter("bounce_big")
};
int[] bounce_timers = new int[2] { 1200, 600 };
int newline_skip = 0;
global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator();
try
{
while (((global::System.Collections.IEnumerator)enumerator).MoveNext())
{
Token token = enumerator.Current;
if (newline_skip > 0 && (int)token.Type == 89)
{
newline_skip--;
}
if (newline_skip <= 0)
{
yield return token;
}
if (func_waiter.Matched)
{
int i = 0;
while (i < speed_waiters.Length)
{
if (speed_waiters[i].Check(token))
{
yield return new Token((TokenType)38, (uint?)null);
yield return (Token)new IdentifierToken("boost_timer");
yield return new Token((TokenType)11, (uint?)null);
yield return (Token)new ConstantToken((Variant)new IntVariant(0L, false));
yield return new Token((TokenType)13, (uint?)null);
yield return (Token)new IdentifierToken("boost_amt");
yield return new Token((TokenType)7, (uint?)null);
yield return (Token)new ConstantToken((Variant)new RealVariant(speed_atms[i], false));
yield return new Token((TokenType)86, (uint?)null);
yield return (Token)new IdentifierToken("boost_timer");
yield return new Token((TokenType)24, (uint?)null);
yield return (Token)new ConstantToken((Variant)new IntVariant((long)speed_timers[i], false));
yield return new Token((TokenType)89, (uint?)3u);
yield return new Token((TokenType)40, (uint?)null);
yield return new Token((TokenType)86, (uint?)null);
}
int num = i + 1;
i = num;
}
i = 0;
while (i < catch_waiters.Length)
{
if (catch_waiters[i].Check(token))
{
yield return new Token((TokenType)38, (uint?)null);
yield return (Token)new IdentifierToken("catch_drink_timer");
yield return new Token((TokenType)11, (uint?)null);
yield return (Token)new ConstantToken((Variant)new IntVariant(0L, false));
yield return new Token((TokenType)13, (uint?)null);
yield return (Token)new IdentifierToken("catch_drink_tier");
yield return new Token((TokenType)7, (uint?)null);
yield return (Token)new ConstantToken((Variant)new IntVariant((long)(i + 1), false));
yield return new Token((TokenType)86, (uint?)null);
yield return (Token)new IdentifierToken("catch_drink_timer");
yield return new Token((TokenType)24, (uint?)null);
yield return (Token)new ConstantToken((Variant)new IntVariant(18000L, false));
yield return new Token((TokenType)89, (uint?)3u);
yield return new Token((TokenType)40, (uint?)null);
yield return new Token((TokenType)86, (uint?)null);
}
int num = i + 1;
i = num;
}
i = 0;
while (i < bounce_waiters.Length)
{
if (bounce_waiters[i].Check(token))
{
yield return new Token((TokenType)38, (uint?)null);
yield return (Token)new IdentifierToken("jump_bonus_timer");
yield return new Token((TokenType)11, (uint?)null);
yield return (Token)new ConstantToken((Variant)new IntVariant(0L, false));
yield return new Token((TokenType)13, (uint?)null);
yield return (Token)new IdentifierToken("jump_bonus_tier");
yield return new Token((TokenType)7, (uint?)null);
yield return (Token)new ConstantToken((Variant)new IntVariant((long)(i + 1), false));
yield return new Token((TokenType)86, (uint?)null);
yield return (Token)new IdentifierToken("jump_bonus_timer");
yield return new Token((TokenType)24, (uint?)null);
yield return (Token)new ConstantToken((Variant)new IntVariant((long)bounce_timers[i], false));
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("jump_bonus_timer");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new ConstantToken((Variant)new IntVariant((long)bounce_timers[i], false));
yield return new Token((TokenType)89, (uint?)3u);
yield return (Token)new IdentifierToken("jump_bonus_tier");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new ConstantToken((Variant)new IntVariant((long)(i + 1), false));
newline_skip = 2;
}
int num = i + 1;
i = num;
}
}
else
{
func_waiter.Check(token);
}
}
}
finally
{
((global::System.IDisposable)enumerator)?.Dispose();
}
}
}