fix: revert // to / in deck.gd (GDScript 4 does not support // operator)

The INTEGER_DIVISION warning in deck.gd:19 is a false positive - both
operands are int, so / performs integer division correctly in GDScript 4.
Using // caused a parse error (Expected expression after '/' operator),
which cascaded to GameController/TrainingController resolution failure.
This commit is contained in:
xiaji
2026-05-30 08:01:07 +08:00
parent f4a2686810
commit bad46b0109
37 changed files with 422 additions and 1 deletions

9
tests/test_deck_load.gd Normal file
View File

@@ -0,0 +1,9 @@
extends SceneTree
func _initialize():
var d = load("res://src/core/deck.gd")
if d:
print("Deck loaded: ", d)
else:
print("FAIL: Deck not found")
quit()