Remote projectile target and length tracking

Continuation of 4c293e612cd4b08fc7230a5e6722c8acc74e5a9e
This commit is contained in:
Adam
2018-01-29 08:10:46 -05:00
parent d19c9c1e62
commit f31bc0d794
3 changed files with 1 additions and 98 deletions

View File

@@ -350,7 +350,6 @@ public class DevToolsOverlay extends Overlay
OverlayUtil.renderPolygon(graphics, poly, Color.RED);
}
long projectileLength = projectile.getLength().toMillis();
int projectileId = projectile.getId();
Actor projectileInteracting = projectile.getInteracting();
@@ -365,18 +364,12 @@ public class DevToolsOverlay extends Overlay
infoString += "Targeted (T: " + projectileInteracting.getName() + ")";
}
infoString += " (ID: " + projectileId + ") (L: " + projectileLength + "ms)";
infoString += " (ID: " + projectileId + ")";
if (projectileInteracting != null)
{
OverlayUtil.renderActorOverlay(graphics, projectile.getInteracting(), infoString, Color.RED);
}
else
{
net.runelite.api.Point targetPoint = projectile.getTarget();
OverlayUtil.renderTilePointOverlay(graphics, client, targetPoint, infoString, Color.RED);
}
}
}