The-International-Open-Source
The-International-Open-Source copied to clipboard
Spawn request system refactor
- requests on made on demand based on priority, instead of doing all the calculations for all roles
- When spawns request skeletons are created in spawnRequester.ts, they add to room.spawnRequestSkeletons the opts they want for a real spawnRequest
- SpawnRequest class that converts spawnRequestSkeleton(s) into SpawnRequests
- While there are inactive spawns, use spawn requests, or if none convert spawn request skeletons into spawn requests, and try to spawn them