Release v0.1.6 2026-07-12

This commit is contained in:
Warren H
2026-07-12 23:20:15 -04:00
parent 35553c18dd
commit 122f159b94
55 changed files with 2229 additions and 587 deletions
+3 -1
View File
@@ -1,7 +1,7 @@
import { useEffect, useRef } from "react";
import { subscribeControllerToken } from "../input/controller";
import { ABILITY_ORDER } from "./data";
import { useGameStore } from "./store";
import { isRunBuffInputLocked, useGameStore } from "./store";
import type { AbilityId } from "./types";
function cycleRunBuff(direction: 1 | -1) {
@@ -43,6 +43,7 @@ export function useActionBindings(enabled = true, onExit?: () => void) {
}
if (store.phase === "intermission") {
if (["arrowleft", "arrowup", "arrowright", "arrowdown", "enter"].includes(key)) event.preventDefault();
if (isRunBuffInputLocked(store)) return;
if (key === "arrowleft" || key === "arrowup") cycleRunBuff(-1);
if (key === "arrowright" || key === "arrowdown") cycleRunBuff(1);
if (key === "enter") {
@@ -99,6 +100,7 @@ export function useActionBindings(enabled = true, onExit?: () => void) {
return;
}
if (store.phase === "intermission") {
if (isRunBuffInputLocked(store)) return;
if (["Button12", "Button14", "Axis0-", "Axis1-"].includes(token)) cycleRunBuff(-1);
if (["Button13", "Button15", "Axis0+", "Axis1+"].includes(token)) cycleRunBuff(1);
if (!repeat && token === "Button0") {