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);
83 private final int product;
88 private final Item[] ingredients;
93 private final int level;
98 private final double experience;
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)};
113 this.experience = experience;
125 if (potion.ingredients[0].equals(use) && potion.ingredients[1].equals(with) || potion.ingredients[1].equals(use) && potion.ingredients[0].equals(with)) {
154 return new Item(product);
158 public String toString() {
159 return "FinishedPotion[product: " + getProduct() +
", level: " + level +
", experience: " + experience +
", ingredients: " + Arrays.toString(ingredients) +
"]";
FinishedPotion(int product, int unfinishedPotion, int ingredient, int level, double experience)