fix: refine game mode state tracking and turn handling
* Centralize ball state generation in `BaseMode` * Track turn count, player, and ball state consistently * Prevent 8-ball, 9-ball, and colored snooker balls from being marked valid when reaped/sunk * Update mode initialization and ball-state assignment * Normalize Free Ball mode node name to `freeball`
This commit is contained in:
@@ -60,4 +60,4 @@ func _on_match_create_bttn_pressed() -> void:
|
||||
MessageBus.emit_request.rpc("match_list_add_entry", match_entry)
|
||||
|
||||
func _on_mode_bttn_pressed(button: Button) -> void:
|
||||
active_mode = button.name.remove_chars("_").to_lower()
|
||||
active_mode = button.name.to_lower()
|
||||
|
||||
Reference in New Issue
Block a user