Skip to content

Commit

Permalink
- Finalizing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolzhukov, Viktor committed Mar 9, 2024
1 parent 5b06f81 commit d531328
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Perpetuum/ErrorCodes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -713,5 +713,6 @@ public enum ErrorCodes
RespecTokenIsNotReadyYet,
MaxBandwidthExceed,
RemoteControlledTurretInRange,
TurretNotDeployableNearObject,
}
}
4 changes: 2 additions & 2 deletions src/Perpetuum/Modules/RemoteControllerModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@ protected override void OnAction()
.OfType<DockingBase>()
.WithinRange(spawnPosition, DistanceConstants.RCU_DEPLOY_RANGE_FROM_BASE)
.Any()
.ThrowIfTrue(ErrorCodes.NotDeployableNearObject);
.ThrowIfTrue(ErrorCodes.TurretNotDeployableNearObject);

Zone.Units
.OfType<Teleport>()
.WithinRange(spawnPosition, DistanceConstants.RCU_DEPLOY_RANGE_FROM_TELEPORT)
.Any()
.ThrowIfTrue(ErrorCodes.TeleportIsInRange);
.ThrowIfTrue(ErrorCodes.TurretNotDeployableNearObject);
}
else if (ammo.ED.Options.TurretType == TurretType.Mining || ammo.ED.Options.TurretType == TurretType.Harvesting)
{
Expand Down

0 comments on commit d531328

Please sign in to comment.