RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
FinishedPotion.java
1package com.osroyale.content.skill.impl.herblore;
2
3import com.osroyale.game.world.items.Item;
4
5import java.util.Arrays;
6
55
56public enum FinishedPotion implements Potion {
57 ATTACK_POTION(121, 91, 221, 1, 25),
58 ANTIPOISON(175, 93, 235, 5, 37.5),
59 STRENGTH_POTION(115, 95, 225, 12, 50),
60 RESTORE_POTION(127, 97, 223, 22, 62.5),
61 ENERGY_POTION(3010, 97, 1975, 26, 67.5),
62 DEFENCE_POTION(133, 99, 239, 30, 75),
63 AGILITY_POTION(3034, 3002, 2152, 34, 80),
64 COMBAT_POTION(9741, 97, 9736, 36, 84),
65 RAYER_POTION(139, 99, 231, 38, 87.5),
66 SUPER_ATTACK(145, 101, 221, 45, 100),
67 VIAL_OF_STENCH(18661, 101, 1871, 46, 0),
68 FISHING_POTION(181, 101, 235, 48, 112.5),
69 SUPER_ENERGY(3018, 103, 2970, 52, 117.5),
70 SUPER_STRENGTH(157, 105, 225, 55, 137.5),
71 WEAPON_POISON(187, 105, 241, 60, 138),
72 SUPER_RESTORE(3026, 3004, 223, 63, 142.5),
73 SUPER_DEFENCE(163, 107, 239, 66, 150),
74 ANTIFIRE(2454, 2483, 241, 69, 157.5),
75 RANGING_POTION(169, 109, 245, 72, 162.5),
76 MAGIC_POTION(3042, 2483, 3138, 76, 172.5),
77 ZAMORAK_BREW(189, 111, 247, 78, 175),
78 SARADOMIN_BREW(6687, 3002, 6693, 81, 180);
79
83 private final int product;
84
88 private final Item[] ingredients;
89
93 private final int level;
94
98 private final double experience;
99
109 FinishedPotion(int product, int unfinishedPotion, int ingredient, int level, double experience) {
110 this.product = product;
111 this.ingredients = new Item[]{new Item(unfinishedPotion), new Item(ingredient)};
112 this.level = level;
113 this.experience = experience;
114 }
115
123 public static FinishedPotion get(Item use, Item with) {
124 for (final FinishedPotion potion : values()) {
125 if (potion.ingredients[0].equals(use) && potion.ingredients[1].equals(with) || potion.ingredients[1].equals(use) && potion.ingredients[0].equals(with)) {
126 return potion;
127 }
128 }
129 return null;
130 }
131
132 @Override
133 public int getAnimation() {
134 return 363;
135 }
136
137 @Override
138 public double getExperience() {
139 return experience;
140 }
141
142 @Override
143 public Item[] getIngredients() {
144 return ingredients;
145 }
146
147 @Override
148 public int getLevel() {
149 return level;
150 }
151
152 @Override
153 public Item getProduct() {
154 return new Item(product);
155 }
156
157 @Override
158 public String toString() {
159 return "FinishedPotion[product: " + getProduct() + ", level: " + level + ", experience: " + experience + ", ingredients: " + Arrays.toString(ingredients) + "]";
160 }
161}
FinishedPotion(int product, int unfinishedPotion, int ingredient, int level, double experience)