@@ -26,8 +26,6 @@ public static bool AssignTargetLockToPair(Ship.GenericShip thisShip, Ship.Generi
26
26
27
27
if ( Letters . Count == 0 ) InitializeTargetLockLetters ( ) ;
28
28
29
- MovementTemplates . ShowRange ( thisShip , targetShip ) ;
30
-
31
29
if ( GetRange ( thisShip , targetShip ) < 4 )
32
30
{
33
31
Tokens . GenericToken existingBlueToken = thisShip . GetToken ( typeof ( Tokens . BlueTargetLockToken ) , '*' ) ;
@@ -124,7 +122,7 @@ public static bool InArcCheck(Ship.GenericShip thisShip, Ship.GenericShip anothe
124
122
Vector3 vectorToTarget = objAnother . Value - objThis . Value ;
125
123
float angle = Vector3 . Angle ( vectorToTarget , vectorFacing ) ;
126
124
//Debug.Log ("Angle between " + objThis.Key + " and " + objAnother.Key + " is: " + angle.ToString ());
127
- MovementTemplates . ShowFiringArcRange ( thisShip , anotherShip ) ;
125
+
128
126
if ( angle <= 40 )
129
127
{
130
128
inArc = true ;
@@ -221,7 +219,7 @@ public static void DeclareTarget()
221
219
//check is target available for attack
222
220
223
221
bool inArc = InArcCheck ( Selection . ThisShip , Selection . AnotherShip ) ;
224
- int distance = GetFiringRangeAndShow ( Selection . ThisShip , Selection . AnotherShip ) ;
222
+ int distance = GetFiringRange ( Selection . ThisShip , Selection . AnotherShip ) ;
225
223
int attackTypesAreAvailable = Selection . ThisShip . GetAttackTypes ( distance , inArc ) ;
226
224
227
225
if ( attackTypesAreAvailable > 1 )
@@ -243,10 +241,12 @@ public static void DeclareTarget()
243
241
public static void TryPerformAttack ( )
244
242
{
245
243
Game . UI . HideContextMenu ( ) ;
244
+ MovementTemplates . ReturnRangeRuler ( ) ;
245
+
246
246
//TODO: CheckShot is needed before
247
247
if ( TargetIsLegal ( ) )
248
248
{
249
- Board . ShowFiringLine ( Selection . ThisShip , Selection . AnotherShip ) ;
249
+ Board . LaunchObstacleChecker ( Selection . ThisShip , Selection . AnotherShip ) ;
250
250
//Call later "Combat.PerformAttack(Selection.ThisShip, Selection.AnotherShip);"
251
251
}
252
252
else
0 commit comments