Open ImpulseCloud opened 3 years ago
May want to accept this before #61, as there's prolly conversation about what scout-worker attack should do.
Give this a look -- it's the best I can do without making a Plugin.cpp or making functions with bodies in Plugin.h
There is nothing bad in adding Plugin.cpp. Plugin should stay pure virtual, the rest is not so valuable.
Here's a stab at what might work. I added worker-training in Miner::OnIdle since it won't check every frame anymore (Miner::OnStep called every 7 frames), and losing 7 frames (at most) after each worker training is a little too long.
If gas oversaturated, remove from busy_workers and call DistributeWorker. If gas under-saturated and any base is mineral-oversaturated, send one of those mineral workers to that gas.
I think this can be accepted separately from Repair and AttackScout?