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
@@ -226,14 +226,14 @@ public enum SkillingResource {
COPPER_ORE_41(37688, 1, 0.05, 4 | 8 << 16, 17.5, 436, 1, "copper rocks", null, 21298, Skills.MINING),
COPPER_ORE_42(37686, 1, 0.05, 4 | 8 << 16, 17.5, 436, 1, "copper rocks", null, 21296, Skills.MINING),
COPPER_ORE_43(37687, 1, 0.05, 4 | 8 << 16, 17.5, 436, 1, "copper rocks", null, 21297, Skills.MINING),
COPPER_ORE_44(3042, 1, 0.05, 4 | 8 << 16, 17.5, 436, 1, "copper rocks", null, 450, Skills.MINING),
COPPER_ORE_44(3042, 1, 0.05, 4 | 8 << 16, 17.5, 436, 1, "copper rocks", null, 11552, Skills.MINING),
/**
* Tin ore (Mining).
*/
TIN_ORE_0(2094, 1, 0.05, 4 | 8 << 16, 17.5, 438, 1, "tin rocks", null, 450, Skills.MINING),
TIN_ORE_1(2095, 1, 0.05, 4 | 8 << 16, 17.5, 438, 1, "tin rocks", null, 452, Skills.MINING),
TIN_ORE_2(3043, 1, 0.05, 4 | 8 << 16, 17.5, 438, 1, "tin rocks", null, 450, Skills.MINING),
TIN_ORE_2(3043, 1, 0.05, 4 | 8 << 16, 17.5, 438, 1, "tin rocks", null, 11552, Skills.MINING),
TIN_ORE_3(4979, 1, 0.05, 4 | 8 << 16, 17.5, 438, 1, "tin rocks", null, 4994, Skills.MINING),
TIN_ORE_4(4980, 1, 0.05, 4 | 8 << 16, 17.5, 438, 1, "tin rocks", null, 4995, Skills.MINING),
TIN_ORE_5(4981, 1, 0.05, 4 | 8 << 16, 17.5, 438, 1, "tin rocks", null, 4996, Skills.MINING),
@@ -7,7 +7,7 @@ import rs09.game.world.repository.Repository;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
// 11553 11552
/**
* Mining nodes
* @author ceik
@@ -58,12 +58,12 @@ public enum MiningNode{
COPPER_ORE_41(37688,21298, (byte) 1),
COPPER_ORE_42(37686,21296, (byte) 1),
COPPER_ORE_43(37687,21297, (byte) 1),
COPPER_ORE_44(3042, 450, (byte) 1),
COPPER_ORE_44(3042, 11552, (byte) 1),
//Tin
TIN_ORE_0( 2094, 450, (byte) 2),
TIN_ORE_1( 2095, 452, (byte) 2),
TIN_ORE_2( 3043, 450, (byte) 2),
TIN_ORE_2( 3043, 11552, (byte) 2),
TIN_ORE_3( 4979, 4994, (byte) 2),
TIN_ORE_4( 4980, 4995, (byte) 2),
TIN_ORE_5( 4981, 4996, (byte) 2),
@@ -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
}