class_name Player extends Node var username: String var id: int: set(value): id = value name = str(value) var units: Array[Unit] var towers: Dictionary : set(value): towers = value func get_color(): if id == 1: return Color("#fff") var rng = RandomNumberGenerator.new() rng.seed = id @warning_ignore("integer_division") return Color(rng.randf(), rng.randf(), rng.randf())