Mining helmets can now be lit

Dropping mining helmets extinguishes them
Corrected the depleted ore model on tutorial island mining nodes
Mining helmets examine now matches lit/extinguished state
Fixed incorrect wolf animation
This commit is contained in:
ana-rchy
2022-09-04 03:42:20 +00:00
committed by Ryan
parent f9a34b06e6
commit edb9c6ace0
6 changed files with 29 additions and 7 deletions
@@ -0,0 +1,16 @@
package rs09.game.interaction.item
import api.*
import rs09.game.interaction.InteractionListener
import org.rs09.consts.Items
class MiningHelmetListener : InteractionListener {
override fun defineListeners() {
on(Items.MINING_HELMET_5013, ITEM, "drop") {player, _ ->
val removed = removeItem(player, Items.MINING_HELMET_5013)
if (removed) produceGroundItem(player, Items.MINING_HELMET_5014)
sendMessage(player, "The helmet goes out as you drop it.")
return@on true
}
}
}
@@ -10,6 +10,7 @@ enum class LightSources(val emptyID: Int, val fullID: Int, val litID: Int, val l
OIL_LANTERN(4535,4537,4539,26,false),
BULLSEYE_LANTERN(4546,4548,4550,49,false),
SAPPHIRE_LANTERN(0,4701,4702,49,false),
MINING_HELMET(0,5014,5013,65,false),
EMERALD_LANTERN(0,9064,9065,49,false);
companion object {
@@ -24,6 +25,7 @@ enum class LightSources(val emptyID: Int, val fullID: Int, val litID: Int, val l
4537, 4539 -> OIL_LANTERN
4548, 4550 -> BULLSEYE_LANTERN
4701, 4702 -> SAPPHIRE_LANTERN
5014, 5013 -> MINING_HELMET
9064, 9065 -> EMERALD_LANTERN
else -> null
}