TheStonedTurtle / Loot-Logger

A RuneLite plugin that stores Loot Tracker data locally
BSD 2-Clause "Simplified" License
6 stars 9 forks source link

[Suggestion] Show average gp/kill as tooltip #60

Open Ckrisirkc opened 2 months ago

Ckrisirkc commented 2 months ago

This is a suggestion/feature request to show the average gp per kill as a tooltip on the "Kills Logged" panel similar to the way the current loot tracker does.

I believe a simple way to get this effect could be the following addition to the existing code in the LootPanel class:

// Store Total Value
long totalValue = lootLog.getLootValue(false);

// Show gp/kill tooltip
if (killsLogged > 0)
{
    killsLoggedPanel.setToolTipText(QuantityFormatter.formatNumber(totalValue / killsLogged) + " gp/kill");
}

Thanks for the plugin, and I appreciate any consideration.