Commit Graph
3 Commits
Author SHA1 Message Date
SomeoneWithAnInternetConnection 39ea262d32 Actually fix example plugin archetype
The previous fix introduced an import conflict: java.awt.Point and
net.runelite.api.Point
2017-12-21 08:41:40 -05:00
SomeoneWithAnInternetConnection 9e8b524eb1 Fix example plugin to use the new overlay API
PR #246 changed the API for overlays slightly. This change fixes the
maven archetype plugin to match
2017-12-16 18:01:10 -05:00
SomeoneWithAnInternetConnection aad76b9bab Fix IllegalArgumentExceptions from XPGlobes' tooltips for level 1 stats
To draw the progress bar, XPGlobesOverlay.drawTooltipIfMouseover() uses
Experience.getXPForLevel(), which threw an IllegalArgumentException when
asked about level 1. This change shifts the XP_FOR_LEVEL array over by
one, so that XP_FOR_LEVEL[0] is the XP required to reach level 1 (i.e. 0),
rather than the XP required for level 2.
2017-12-16 16:09:58 -05:00