RuneHive-Game
Loading...
Searching...
No Matches
MuddyChest.java
Go to the documentation of this file.
1package com.runehive.content;
2
3import com.runehive.game.world.entity.mob.player.Player;
4import com.runehive.game.world.items.Item;
5import com.runehive.util.chance.Chance;
6import com.runehive.util.chance.WeightedChance;
7
8import java.util.Arrays;
9
10/**
11 * Handles opening the crystal chest.
12 *
13 * @author Daniel
14 */
15public class MuddyChest {
16
17
18 /** The item key to enter the crystal chest. */
19 public static final Item KEY = new Item(993);
20
21
22 /** Handles getting an item reward from the chest. */
23 public static Item getReward() {
24 return ITEMS.next();
25 }
26
27 /** Holds all the crystal chest rewards. */
28 private static final Chance<Item> ITEMS = new Chance<>(Arrays.asList(
29 new WeightedChance<>(8, new Item(1163, 1)), // RUNE_FULL_HELM
30 new WeightedChance<>(6, new Item(1147, 1)), // RUNE_MED_HELM
31 new WeightedChance<>(6, new Item(1127, 1)), // RUNE_PLATEBODY
32 new WeightedChance<>(6, new Item(1093, 1)), // RUNE_PLATESKIRT
33 new WeightedChance<>(6, new Item(1201, 1)), // RUNE_KITESHIELD
34 new WeightedChance<>(6, new Item(1185, 1)), // RUNE_SQ_SHIELD
35 new WeightedChance<>(6, new Item(1333, 1)), // RUNE_SCIMITAR
36 new WeightedChance<>(6, new Item(1079, 1)), // RUNE_PLATELEGS
37 new WeightedChance<>(5, new Item(10828, 1)), // HELM_OF_NEITZ
38 new WeightedChance<>(5, new Item(1632, 1)), // UNCUT_DAGONSTONE
39 new WeightedChance<>(5, new Item(4099, 1)), // MYSTIC_HAT
40 new WeightedChance<>(5, new Item(4089, 1)), // MYSTIC_HAT
41 new WeightedChance<>(5, new Item(4109, 1)), // MYSTIC_HAT
42 new WeightedChance<>(5, new Item(4101, 1)), // MYSTIC_TOP
43 new WeightedChance<>(5, new Item(4091, 1)), // MYSTIC_TOP
44 new WeightedChance<>(5, new Item(4111, 1)), // MYSTIC_TOP
45 new WeightedChance<>(5, new Item(4103, 1)), // MYSTIC_BOTTOM
46 new WeightedChance<>(5, new Item(4093, 1)), // MYSTIC_BOTTOM
47 new WeightedChance<>(5, new Item(4113, 1)), // MYSTIC_BOTTOM
48 new WeightedChance<>(4, new Item(995, 35_000)), // COINS
49 new WeightedChance<>(4, new Item(13307, 2_500)), // BLOOD_MONEY
50 new WeightedChance<>(3.5, new Item(13307, 350)), // BLOOD_MONEY
51 new WeightedChance<>(3.5, new Item(4153, 1)), // GRANITE_MAUL
52 new WeightedChance<>(3.5, new Item(10589, 1)), // GRANITE_HELM
53 new WeightedChance<>(3.5, new Item(10564, 1)), // GRANITE_BODY
54 new WeightedChance<>(3.5, new Item(6809, 1)), // GRANITE_LEGS
55 new WeightedChance<>(3.5, new Item(21643, 1)), // GRANITE_BOOTS
56 new WeightedChance<>(3.5, new Item(21646, 1)), // GRANITE_LONGSWORD
57 new WeightedChance<>(3, new Item(1149, 1)), // DRAGON_MED_HELM
58 new WeightedChance<>(3, new Item(1187, 1)), // DRAGON_SQ_SHIELD
59 new WeightedChance<>(3, new Item(1215, 1)), // DRAGON_DAGGER
60 new WeightedChance<>(3, new Item(4587, 1)), // DRAGON_SCIMITAR
61 new WeightedChance<>(3, new Item(4087, 1)), // DRAGON_PLATELEGS
62 new WeightedChance<>(3, new Item(1434, 1)), // DRAGON_MACE
63 new WeightedChance<>(3, new Item(4585, 1)), // DRAGON_PLATESKIRT
64 new WeightedChance<>(3, new Item(3204, 1)), // DRAGON_HALBERD
65 new WeightedChance<>(3, new Item(1249, 1)), // DRAGON_SPEAR
66 new WeightedChance<>(3, new Item(1305, 1)), // DRAGON_LONGSWORD
67 new WeightedChance<>(3, new Item(1377, 1)), // DRAGON_BATTLEAXE
68 new WeightedChance<>(2, new Item(7158, 1)), // DRAGON_2H_SWORD
69 new WeightedChance<>(1.5, new Item(6199, 1)), // BRONZE_MYSTERY_BOX
70 new WeightedChance<>(1, new Item(11840, 1)), // DRAGON_BOOTS
71 new WeightedChance<>(1, new Item(994, 5)), // DRAGON_BOOTS
72 new WeightedChance<>(1, new Item(6571, 1)) // UNCUT_ONYX
73 ));
74}
Handles opening the crystal chest.
static Item getReward()
Handles getting an item reward from the chest.
static final Item KEY
The item key to enter the crystal chest.
static final Chance< Item > ITEMS
Holds all the crystal chest rewards.
The container class that represents an item that can be interacted with.
Definition Item.java:21
Handles a random chance.
Definition Chance.java:14