diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-09-11 09:39:22 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-09-11 09:39:22 -0400 |
commit | 8007db85e774cd6f80b3fbc1c5724e777c00f09f (patch) | |
tree | ba83fa52074a8ce1b4543cfba35ae1ef09e24d38 /Taiji.asl | |
parent | f650b0b59f4aaafc734abbb4cbebb169d7057a31 (diff) | |
download | autosplitters-8007db85e774cd6f80b3fbc1c5724e777c00f09f.tar.gz autosplitters-8007db85e774cd6f80b3fbc1c5724e777c00f09f.tar.bz2 autosplitters-8007db85e774cd6f80b3fbc1c5724e777c00f09f.zip |
[Taiji] Split when solving a puzzle for the first time
Diffstat (limited to 'Taiji.asl')
-rw-r--r-- | Taiji.asl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Taiji.asl b/Taiji.asl new file mode 100644 index 0000000..3505a86 --- /dev/null +++ b/Taiji.asl | |||
@@ -0,0 +1,28 @@ | |||
1 | state("Taiji") | ||
2 | { | ||
3 | // v9.10.2022 | ||
4 | int solveCount: "GameAssembly.dll", 0x0168ED88, 0x80, 0x100, 0xD94; | ||
5 | } | ||
6 | |||
7 | startup | ||
8 | { | ||
9 | vars.log = (Action<string>)((string logLine) => { | ||
10 | print("[Taiji ASL] " + logLine); | ||
11 | }); | ||
12 | |||
13 | vars.log("Autosplitter loaded"); | ||
14 | } | ||
15 | |||
16 | onStart | ||
17 | { | ||
18 | vars.maxSolve = 0; | ||
19 | } | ||
20 | |||
21 | split | ||
22 | { | ||
23 | if (current.solveCount > vars.maxSolve) { | ||
24 | vars.log(String.Format("Solve count increased from {0} to {1}", vars.maxSolve, current.solveCount)); | ||
25 | vars.maxSolve = current.solveCount; | ||
26 | return true; | ||
27 | } | ||
28 | } | ||