about summary refs log tree commit diff stats
path: root/Taiji.asl
blob: 3505a86a8292ee803ba80e6a06130b0eda4d3eca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
state("Taiji")
{
    // v9.10.2022
    int solveCount: "GameAssembly.dll", 0x0168ED88, 0x80, 0x100, 0xD94;
}

startup
{
    vars.log = (Action<string>)((string logLine) => {
        print("[Taiji ASL] " + logLine);
    });

    vars.log("Autosplitter loaded");
}

onStart
{
    vars.maxSolve = 0;
}

split
{
    if (current.solveCount > vars.maxSolve) {
        vars.log(String.Format("Solve count increased from {0} to {1}", vars.maxSolve, current.solveCount));
        vars.maxSolve = current.solveCount;
        return true;
    }
}