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:
1
tests/hello.gd.uid
Normal file
1
tests/hello.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://lod5euxb1cwb
|
||||
1
tests/quick_test.gd.uid
Normal file
1
tests/quick_test.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dr7imryh5wia8
|
||||
1
tests/run_validation.gd.uid
Normal file
1
tests/run_validation.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://crfk8i35o3o6d
|
||||
1
tests/test_cards.gd.uid
Normal file
1
tests/test_cards.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bprfm0f45hu8e
|
||||
1
tests/test_deck.gd.uid
Normal file
1
tests/test_deck.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://cisvuuexcmhei
|
||||
9
tests/test_deck_load.gd
Normal file
9
tests/test_deck_load.gd
Normal 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()
|
||||
1
tests/test_game_state.gd.uid
Normal file
1
tests/test_game_state.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://chwtpkp06q4no
|
||||
1
tests/test_hand_evaluator.gd.uid
Normal file
1
tests/test_hand_evaluator.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://cefkmiwlb6dlc
|
||||
1
tests/test_rule_engine.gd.uid
Normal file
1
tests/test_rule_engine.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://ryaamcy0nefy
|
||||
14
tests/test_training_controller.gd
Normal file
14
tests/test_training_controller.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
extends SceneTree
|
||||
|
||||
func _initialize():
|
||||
var t = load("res://src/game/game_controller.gd")
|
||||
if t:
|
||||
print("GameController loaded: ", t)
|
||||
else:
|
||||
print("FAIL: GameController not found")
|
||||
var tc = load("res://src/game/training_controller.gd")
|
||||
if tc:
|
||||
print("TrainingController loaded: ", tc)
|
||||
else:
|
||||
print("FAIL: TrainingController not found")
|
||||
quit()
|
||||
1
tests/validate_project.gd.uid
Normal file
1
tests/validate_project.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bgbmacvuo7rjd
|
||||
Reference in New Issue
Block a user