Apply biome formatting to main module
This commit is contained in:
parent
8a7facb35e
commit
aa9412dc61
1 changed files with 22 additions and 20 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import { getCard } from "./cards.js";
|
import { getCard } from "./cards.js";
|
||||||
import { checkCombatEnd, resolveEnemyTurn, startTurn } from "./combat.js";
|
import { checkCombatEnd, resolveEnemyTurn, startTurn } from "./combat.js";
|
||||||
import { createCombatState, endTurn, playCard } from "./state.js";
|
|
||||||
import { render } from "./render.js";
|
import { render } from "./render.js";
|
||||||
|
import { createCombatState, endTurn, playCard } from "./state.js";
|
||||||
|
|
||||||
let state = null;
|
let state = null;
|
||||||
|
|
||||||
|
|
@ -79,7 +79,9 @@ function bindEvents() {
|
||||||
render(state);
|
render(state);
|
||||||
});
|
});
|
||||||
|
|
||||||
document.getElementById("end-turn-btn").addEventListener("click", async () => {
|
document
|
||||||
|
.getElementById("end-turn-btn")
|
||||||
|
.addEventListener("click", async () => {
|
||||||
if (state.combat.phase !== "player_turn") return;
|
if (state.combat.phase !== "player_turn") return;
|
||||||
|
|
||||||
state = endTurn(state);
|
state = endTurn(state);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue