New Mining Controller Behavior and Mining Tool Behavior, tweaked a bunch of asteroid related stuff
This commit is contained in:
hyperion51 2020-05-28 04:50:40 +01:00
commit 399b933a38
22 changed files with 609 additions and 58 deletions

View file

@ -40,9 +40,6 @@ public class TowingController : ControllerBase, IBehavior, IPersistentBehavior
var towingTask = _context.Cache.Get<StationTowing>(Task);
if (towingTask != null)
{
if(_entity.Parent!=Guid.Empty)
_context.RemoveParent(_entity);
if (!_taskStarted)
{
MoveTo(towingTask.Zone, () =>
@ -66,7 +63,7 @@ public class TowingController : ControllerBase, IBehavior, IPersistentBehavior
var orbit = _context.CreateOrbit(towingTask.OrbitParent, _entity.Position);
target.OrbitData = orbit.ID;
Task = Guid.Empty;
FinishTask();
_taskStarted = false;
});
});