itemstats: Fix unarmed attack speed

Since the writing of this plugin, the wiki has changed the format for
weapon attack speeds[1] and now displays weapon attack speeds in length
of game ticks. Hence, since unarmed attacks are at the rate of once
every 4 game ticks, this commit updates our definition of the unarmed
attack accordingly.

[1] https://oldschool.runescape.wiki/w/Unarmed?diff=8467472&oldid=7810087
This commit is contained in:
Jordan Atwood
2020-03-04 13:55:03 -08:00
parent 57f56a5eec
commit 0451944522
2 changed files with 86 additions and 3 deletions

View File

@@ -24,6 +24,7 @@
*/
package net.runelite.client.plugins.itemstats;
import com.google.common.annotations.VisibleForTesting;
import com.google.inject.Inject;
import java.awt.Color;
import java.awt.Dimension;
@@ -48,10 +49,11 @@ import net.runelite.http.api.item.ItemStats;
public class ItemStatOverlay extends Overlay
{
// Unarmed attack speed is 6
private static final ItemStats UNARMED = new ItemStats(false, true, 0, 0,
// Unarmed attack speed is 4
@VisibleForTesting
static final ItemStats UNARMED = new ItemStats(false, true, 0, 0,
ItemEquipmentStats.builder()
.aspeed(6)
.aspeed(4)
.build());
@Inject