Spaces:
Runtime error
Runtime error
Fix DB crash
Browse files- .gitignore +1 -0
- backend/data/stats.db +0 -0
- backend/game/engine.py +1 -0
- frontend/src/lib/components/Map.svelte +1 -1
.gitignore
CHANGED
|
@@ -7,5 +7,6 @@ __pycache__/
|
|
| 7 |
**/__pycache__/
|
| 8 |
frontend/.svelte-kit/generated/
|
| 9 |
frontend/.svelte-kit/output/
|
|
|
|
| 10 |
real/backend/data/stats.db
|
| 11 |
real/
|
|
|
|
| 7 |
**/__pycache__/
|
| 8 |
frontend/.svelte-kit/generated/
|
| 9 |
frontend/.svelte-kit/output/
|
| 10 |
+
backend/data/stats.db
|
| 11 |
real/backend/data/stats.db
|
| 12 |
real/
|
backend/data/stats.db
DELETED
|
Binary file (20.5 kB)
|
|
|
backend/game/engine.py
CHANGED
|
@@ -1403,6 +1403,7 @@ class GameEngine:
|
|
| 1403 |
return ActionResult(
|
| 1404 |
action_type="build", success=True,
|
| 1405 |
data={"built": built, "building": bt.value},
|
|
|
|
| 1406 |
)
|
| 1407 |
|
| 1408 |
def _cmd_train(self, player: PlayerState, action: GameAction) -> ActionResult:
|
|
|
|
| 1403 |
return ActionResult(
|
| 1404 |
action_type="build", success=True,
|
| 1405 |
data={"built": built, "building": bt.value},
|
| 1406 |
+
sound_events=[{"kind": "move_ack", "unit_type": "scv"}],
|
| 1407 |
)
|
| 1408 |
|
| 1409 |
def _cmd_train(self, player: PlayerState, action: GameAction) -> ActionResult:
|
frontend/src/lib/components/Map.svelte
CHANGED
|
@@ -873,7 +873,7 @@
|
|
| 873 |
per-cell rects, works in all environments (no SVG mask url(#id) needed).
|
| 874 |
Computed reactively via $: fogRects so viewport panning is always in sync. -->
|
| 875 |
{#each fogRects as r}
|
| 876 |
-
<rect x={r.x} y={r.y} width={r.w
|
| 877 |
{/each}
|
| 878 |
|
| 879 |
<!-- Tutorial target beacon (rendered above fog so it's always visible) -->
|
|
|
|
| 873 |
per-cell rects, works in all environments (no SVG mask url(#id) needed).
|
| 874 |
Computed reactively via $: fogRects so viewport panning is always in sync. -->
|
| 875 |
{#each fogRects as r}
|
| 876 |
+
<rect x={r.x} y={r.y} width={r.w} height={1} fill="rgba(0,0,0,{r.opacity})" pointer-events="none" shape-rendering="crispEdges" />
|
| 877 |
{/each}
|
| 878 |
|
| 879 |
<!-- Tutorial target beacon (rendered above fog so it's always visible) -->
|