mirror of
https://github.com/Donchitos/Claude-Code-Game-Studios.git
synced 2026-10-16 01:37:05 +00:00
Release 1.1.2 — the default path works end to end
Fix release for 1.1.1: the minimal path end to end, engine commands that run on Godot, Unity and Unreal, hook warnings you can see, and verdicts that say when they could not check. Details in CHANGELOG.md; upgrade steps in UPGRADING.md (v1.1.1 → v1.1.2). Fixes #67 Fixes #131 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WuJn2FdynEybfL5KC697nJ
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
7ed2c3e9c4
commit
b21fa0f7f2
@@ -2,7 +2,9 @@
|
||||
|
||||
## Trigger
|
||||
|
||||
Runs before any commit that modifies files in `src/`.
|
||||
Runs before any commit that modifies files under the code root — `src/`
|
||||
(Godot), `Assets/` (Unity) or `Source/` (Unreal); see
|
||||
`.claude/docs/code-root-resolution.md`.
|
||||
|
||||
## Purpose
|
||||
|
||||
@@ -17,14 +19,23 @@ values that should be data-driven.
|
||||
# Pre-commit hook: Code quality checks
|
||||
# Adapt the specific checks to your language and tooling
|
||||
|
||||
CODE_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep -E '^src/')
|
||||
# The code root depends on the engine; resolve it the way the shipped commit
|
||||
# check does. An unresolved root is reported, never guessed as src/.
|
||||
. "$(git rev-parse --show-toplevel)/.claude/hooks/yaml-helper.sh"
|
||||
CODE_ROOT=$(resolve_code_root | cut -f1)
|
||||
if [ -z "$CODE_ROOT" ]; then
|
||||
echo "SKIPPED: no code root (set engine.name in project.yaml) — code checks did not run."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
CODE_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep -E "^$CODE_ROOT/")
|
||||
|
||||
EXIT_CODE=0
|
||||
|
||||
if [ -n "$CODE_FILES" ]; then
|
||||
for file in $CODE_FILES; do
|
||||
# Check for hardcoded magic numbers in gameplay code
|
||||
if [[ "$file" == src/gameplay/* ]]; then
|
||||
if [[ "$file" == */[Gg]ameplay/* ]]; then
|
||||
# Look for numeric literals that are likely balance values
|
||||
# Adjust the pattern for your language
|
||||
if grep -nE '(damage|health|speed|rate|chance|cost|duration)[[:space:]]*[:=][[:space:]]*[0-9]+' "$file"; then
|
||||
|
||||
Reference in New Issue
Block a user