Files
idle/scripts/check_syntax.sh
Michele Rossi 81a4058b04 systems rework: buffs, prestige graph, research, modular architecture
Decouples core systems from centralized globals in favor of catalogue-based architecture and data-driven content.

   Key changes:
   - Prestige: node-based buff tech tree, graph panel, progress bar
   - Research: multi-worker system, per-generator research, xp generation
   - Ascension: meta-currency layer via multi-currency prestige resets
   - Buffs: refactored as generator-independent via catalogues
   - UI: currency panel, edge-scrolling camera + zoom, current-goal panel
   - Alchemy Tower: crafting building with recipe/cost system
   - Testing: 7 test suites (ascension, prestige, research, goals)
   - Content: migrated from hardcoded idles/ to gym format (tiny_sword)
2026-05-07 20:36:21 +00:00

38 lines
871 B
Bash
Executable File

#!/bin/bash
# Godot Syntax Checker
# Usage: ./scripts/check_syntax.sh <script_path>
# Example: ./scripts/check_syntax.sh res://tests/test_gold_mine_click.gd
SCRIPT="$1"
GODOT_BIN="${GODOT_BIN:-godot}"
if [ -z "$SCRIPT" ]; then
echo "Usage: $0 <script_path>"
echo "Example: $0 res://tests/test_gold_mine_click.gd"
exit 1
fi
if [ ! -f "$SCRIPT" ]; then
echo "Error: Script not found: $SCRIPT"
exit 1
fi
echo "=========================================="
echo "Checking syntax: $SCRIPT"
echo "=========================================="
echo ""
"$GODOT_BIN" --headless --path . --check-only --script "$SCRIPT"
EXIT_CODE=$?
echo ""
echo "=========================================="
if [ $EXIT_CODE -eq 0 ]; then
echo "✓ Syntax valid"
else
echo "✗ Syntax errors found"
fi
echo "=========================================="
exit $EXIT_CODE