- package osiris.game.model.skills;
- import osiris.game.action.TickedAction;
- import osiris.game.model.Player;
- import osiris.game.model.Skills;
- import osiris.game.model.item.Item;
- public class Herblore {
- /* herb, requiredLevel, unfPot, realPot, expGained, secUsed, herb, secondary
- */
- int vialOfWater = 227;
- public enum Potions {
- ATTACK(249, 3, 91, 121, 25, 221, "Clean guam", "Eye of Newt"), STRENGTH(253, 12, 95, 115, 50, 225, "Clean tarromin", "Limpwurt Root"), RESTORE(255, 22, 97, 127, 63, 223, "Clean harralander", "Red spiders' eggs"), ENERGY(255, 26, 97, 3010, 68, 1975, "Clean harralander", "Chocolate dust"), DEFENCE(257, 30, 99, 133, 75, 239, "Clean ranarr", "White berries"), PRAYER(257, 38, 99, 139, 88, 231, "Clean ranarr", "Snape grass"), SUPERATTACK(259, 45, 101, 145, 100, 221, "Clean irit", "Eye of newt"), SUPERANTIPOISON(259, 48, 101, 181, 107, 235, "Clean irit", "Unicorn horn dust"), SUPERENERGY(261, 52, 103, 3019, 118, 2970, "Clean avantoe", "Mort myre fungus"), SUPERSTRENGTH(263, 55, 105, 157, 125, 225, "Clean kwuarm", "Limpwurt root"), WEAPONPOISON(263, 60, 105, 187, 138, 241, "Clean kwuarm", "Dragon scale dust"), SUPERRESTORE(3000, 63, 3004, 3026, 143, 223, "Clean snapdragon", "Red spiders' eggs"), SUPERDEFENCE(265, 66, 107, 163, 150, 239, "Clean cadantine", "White berries"), ANTIFIRE(2481, 69, 2483, 2454, 158, 241, "Clean lantadyme", "Dragon scale dust"), RANGING(267, 72, 109, 169, 163, 245, "Clean dwarf weed", "Wine of zamorak"), MAGIC(2481, 76, 2483, 3042, 173, 3138, "Clean lantadyme", "Potato cactus"), SARADOMINBREW(2998, 81, 3002, 6687, 180, 6693, "Clean toadflax", "Crushed nest");
- private final int herbUsed;
- private final int requiredLevel;
- private final int unfPot;
- private final int realPot;
- private final int expGained;
- private final int secUsed;
- private final String herb;
- private final String secondary;
- private Potions(int herbUsed, int requiredLevel, int unfPot, int realPot, int expGained, int secUsed, String herb, String secondary) {
- this.herbUsed = herbUsed;
- this.requiredLevel = requiredLevel;
- this.unfPot = unfPot;
- this.realPot = realPot;
- this.expGained = expGained;
- this.secUsed = secUsed;
- this.herb = herb;
- this.secondary = secondary;
- }
- /* Gets herbUsed */
- public int getHerbUsed(){
- return herbUsed;
- }
- /* Gets requiredLevel*/
- public int getRequiredLevel(){
- return requiredLevel;
- }
- /* Gets unfPot */
- public int getUnfPot(){
- return unfPot;
- }
- /* Gets realPot */
- public int getRealPot(){
- return realPot;
- }
- /* Gets expGained */
- public int getExpGained(){
- return expGained;
- }
- /* Gets secUsed */
- public int secUsed(){
- return secUsed;
- }
- /* Gets herb string */
- public String herb(){
- return herb;
- }
- /* Gets secondary string */
- public String secondary(){
- return secondary;
- }
- }
- public static void makeUnfPot(){
- if(player.getSkills().currentLevel(Skills.SKILL_HERBLORE) < potions.requiredLevel) {
- player.getEventWriter().sendMessage("You need a herblore level of " + potions.requiredLevel + " to make this potion.");
- }
- }
- }