Skip to content

Instantly share code, notes, and snippets.

@sillypears
Last active May 23, 2018 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sillypears/25da0dfdbbe63c3eaf73df9a34226a32 to your computer and use it in GitHub Desktop.
Save sillypears/25da0dfdbbe63c3eaf73df9a34226a32 to your computer and use it in GitHub Desktop.
Wizard of Legend splitter with level splits
//Originally created by TheFuncannon
//Updated by sillypears
state("WizardOfLegend")
{
float gameTime: "mono.dll", 0x00296BC8, 0xC8, 0x80, 0x78, 0x70, 0x90;
float floorTime: "mono.dll", 0x00296BC8, 0xC8, 0x80, 0x78, 0x70, 0x94;
}
start
{
if (old.gameTime < 0.02 && old.gameTime != current.gameTime) {
return true;
}
}
reset
{
if (old.gameTime > 1 && current.gameTime < 0.3) {
return true;
}
}
split
{
if (old.gameTime != 0 && current.gameTime != 0 && old.floorTime == 0.0 && old.floorTime != current.floorTime) {
return true;
}
}
isLoading
{
return true;
}
gameTime
{
return TimeSpan.FromSeconds(current.gameTime);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment