getting better
This commit is contained in:
parent
634373fa4d
commit
bd55e3031d
5 changed files with 8 additions and 8 deletions
|
|
@ -69,7 +69,7 @@ public class CombatManager
|
|||
/// <summary>
|
||||
/// One combat iteration: flask check, mana-based click/hold, mouse jitter toward target.
|
||||
/// </summary>
|
||||
public async Task Tick(int x, int y, int jitter = 30)
|
||||
public async Task Tick(int x, int y, int jitter = 0)
|
||||
{
|
||||
await _flasks.Tick();
|
||||
await UseAbilities();
|
||||
|
|
@ -88,8 +88,8 @@ public class CombatManager
|
|||
_smoothX += (x - _smoothX) * SmoothFactor;
|
||||
_smoothY += (y - _smoothY) * SmoothFactor;
|
||||
|
||||
var mouseX = (int)_smoothX + Rng.Next(-jitter, jitter + 1);
|
||||
var mouseY = (int)_smoothY + Rng.Next(-jitter, jitter + 1);
|
||||
var mouseX = (int)_smoothX;
|
||||
var mouseY = (int)_smoothY;
|
||||
|
||||
var mana = _hudReader.Current.ManaPct;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue