Initial commit on new woodcutting branch

This commit is contained in:
Trevor Flynn
2017-09-16 20:31:53 -07:00
committed by Gary Tierney
parent 76dd8ba192
commit 3e6415f0d2
5 changed files with 287 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
package org.apollo.game.plugin.skills.mining
import org.apollo.game.model.Animation;
//Animation IDs: https://www.rune-server.ee/runescape-development/rs2-client/configuration/272373-emote-gfx-id-list.html
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),
MITHRIL(1355, 21, Animation(871), 5),
BLACK(1361, 11, Animation(873), 6),
STEEL(1353, 6, Animation(875), 6),
IRON(1349, 1, Animation(877), 7),
BRONZE(1351, 1, Animation(879), 8)
}
val AXES = Axe.values()
fun getAxes(): Array<Axe> {
return AXES
}
fun lookupPickaxe(id: Int): Axe? = AXES.find { it.id == id }