Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
added more targetting patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
MgAl2O4 committed Apr 8, 2021
1 parent 8105c3e commit 5f50e0f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
2 changes: 2 additions & 0 deletions SINoCOLO/GameLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ public enum ETargetingMode
Deselect,
CycleAll,
CycleTop3,
CycleHiding,
LockStrongest,
LockWeakest,
}

public delegate void MouseClickDelegate(int posX, int posY);
Expand Down
4 changes: 3 additions & 1 deletion SINoCOLO/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -359,12 +359,14 @@ private void MainForm_Load(object sender, EventArgs e)
comboBoxStoryMode.SelectedIndex = (int)GameLogic.EStoryMode.FarmStage;
}
{
string[] itemDesc = new string[5];
string[] itemDesc = new string[7];
itemDesc[(int)GameLogic.ETargetingMode.None] = "Manual";
itemDesc[(int)GameLogic.ETargetingMode.Deselect] = "Deselect";
itemDesc[(int)GameLogic.ETargetingMode.CycleAll] = "Cycle All";
itemDesc[(int)GameLogic.ETargetingMode.CycleTop3] = "Cycle Front";
itemDesc[(int)GameLogic.ETargetingMode.CycleHiding] = "Cycle Hiding";
itemDesc[(int)GameLogic.ETargetingMode.LockStrongest] = "Lock Strongest";
itemDesc[(int)GameLogic.ETargetingMode.LockWeakest] = "Lock Weakest";

comboBoxColoTarget.Items.Clear();
comboBoxColoTarget.Items.AddRange(itemDesc);
Expand Down
4 changes: 2 additions & 2 deletions SINoCOLO/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("28.0.0.0")]
[assembly: AssemblyFileVersion("28.0.0.0")]
[assembly: AssemblyVersion("29.0.0.0")]
[assembly: AssemblyFileVersion("29.0.0.0")]
10 changes: 10 additions & 0 deletions SINoCOLO/TrackerTargeting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class TrackerTargeting

private int[] rotationPatternAll = { 0, 1, 2, 3, 4 };
private int[] rotationPattern3 = { 0, 1, 2 };
private int[] rotationPatternHiding = { 4, 3, 0 };
private int rotationIdx = -1;
private int delay = 0;
private GameLogic.ETargetingMode mode;
Expand Down Expand Up @@ -44,6 +45,10 @@ public void Update()
pendingActionBox = rectTargets[0];
break;

case GameLogic.ETargetingMode.LockWeakest:
pendingActionBox = rectTargets[4];
break;

case GameLogic.ETargetingMode.CycleAll:
rotationIdx = (rotationIdx + 1) % rotationPatternAll.Length;
pendingActionBox = rectTargets[rotationPatternAll[rotationIdx]];
Expand All @@ -54,6 +59,11 @@ public void Update()
pendingActionBox = rectTargets[rotationPattern3[rotationIdx]];
break;

case GameLogic.ETargetingMode.CycleHiding:
rotationIdx = (rotationIdx + 1) % rotationPatternHiding.Length;
pendingActionBox = rectTargets[rotationPatternHiding[rotationIdx]];
break;

default: break;
}
}
Expand Down

0 comments on commit 5f50e0f

Please sign in to comment.