Refactor mining to use async actions

This commit is contained in:
Gary Tierney
2017-09-17 03:10:15 +01:00
parent a54485e263
commit 0dc6879bdc
7 changed files with 221 additions and 233 deletions
+12
View File
@@ -0,0 +1,12 @@
package org.apollo.game.plugin.skills.mining
enum class Gem(val id: Int, val chance: Int) {
UNCUT_SAPPHIRE(1623, 0),
UNCUT_EMERALD(1605, 0),
UNCUT_RUBY(1619, 0),
UNCUT_DIAMOND(1617, 0)
}
val GEMS = Gem.values()
fun lookupGem(id: Int): Gem? = GEMS.find { it.id == id }