Refactor: update SPEED_LIMIT type, comment out signal, and enhance evolution logic

This commit is contained in:
Kirill
2026-07-20 00:11:44 +03:00
parent a81359c1e6
commit f4524a7acc
6 changed files with 46 additions and 14 deletions
+24
View File
@@ -0,0 +1,24 @@
extends Node
class_name OwniverseEvolution
var batch_count: int = 40
var entity_batches = {}
var distribution: Dictionary[String, float] = {}
func update_distribution(_distribute_by: Dictionary[String, float]) -> void:
distribution = {}
var _total: float = 0
for id in _distribute_by:
if _distribute_by[id] != 0:
var _value: float = _distribute_by[id]
_total += _value
distribution[id] = _value
if _total == 0: return
for id in distribution:
distribution[id] /= _total