Refactor save management; enhance save_data function with verification and plaintext copy options, and update load_data logic for improved error handling

This commit is contained in:
Kirill
2026-09-13 22:57:25 +03:00
parent c22b21a537
commit dea744bc30
7 changed files with 380 additions and 260 deletions
+2
View File
@@ -28,6 +28,8 @@ func set_actions(item_id: String, value: float) -> void:
_set_action_values(_get_distribution(value))
func _get_distribution(value: float) -> Array:
if value <= 0.0 or not is_finite(value):
return [0.0, 0.0, 0.0, 0.0, 0.0]
var distribution: Array = [value, 0, 0, 0, 0]
var exp_value = int(floor(log(abs(value)) / log(10.0)))