Fix all issues. Wood cutting now works.

This commit is contained in:
Trevor Flynn
2017-09-16 21:48:45 -07:00
committed by Gary Tierney
parent da7c7e10b4
commit 75a9b828b2
5 changed files with 109 additions and 123 deletions
+9 -9
View File
@@ -2,7 +2,7 @@ package org.apollo.game.plugin.skills.woodcutting
import org.apollo.game.model.Animation;
//Animation IDs: https://www.rune-server.ee/runescape-development/rs2-client/configuration/272373-emote-gfx-id-list.html
//Animation IDs thanks to Deadly A G S at rune-server.ee
enum class Axe(val id: Int, val level: Int, val animation: Animation, val pulses: Int) {
RUNE(1359, 41, Animation(867), 3),
ADAMANT(1357, 31, Animation(869), 4),
@@ -10,14 +10,14 @@ enum class Axe(val id: Int, val level: Int, val animation: Animation, val pulses
BLACK(1361, 11, Animation(873), 6),
STEEL(1353, 6, Animation(875), 6),
IRON(1349, 1, Animation(877), 7),
BRONZE(1351, 1, Animation(879), 8)
BRONZE(1351, 1, Animation(879), 8);
companion object {
private val AXES = Axe.values()
fun getAxes(): Array<Axe> {
return AXES
}
}
}
val AXES = Axe.values()
fun getAxes(): Array<Axe> {
return AXES
}
fun lookupPickaxe(id: Int): Axe? = AXES.find { it.id == id }