Use worker for research

This commit is contained in:
2026-04-20 21:57:11 +02:00
parent 623ade6291
commit a10f2f02d7
8 changed files with 166 additions and 17 deletions

View File

@@ -19,6 +19,10 @@ extends Resource
## Associated Buff (single buff per research track)
@export var associated_buff_id: StringName = &""
## Worker Scaling Configuration
@export var worker_scaling_factor: float = 0.01
@export var min_workers_for_xp: int = 1
func get_xp_required_for_level(level: int) -> float:
return base_xp_required * pow(xp_growth_multiplier, float(maxi(level - 1, 0)))