RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
HerbPatch.java
1package com.osroyale.content.skill.impl.farming.patches.impl;
2
3import com.osroyale.content.skill.impl.farming.FarmingConstants;
4import com.osroyale.content.skill.impl.farming.patches.DiseasablePatch;
5import com.osroyale.content.skill.impl.farming.patches.HarvestablePatch;
6import com.osroyale.content.skill.impl.farming.plants.Herb;
7import com.osroyale.content.skill.impl.farming.plants.Plant;
8import com.osroyale.content.skill.impl.farming.zones.FarmingZone;
9import com.osroyale.game.world.Interactable;
10import com.osroyale.game.world.entity.mob.player.Player;
11
49
50public class HerbPatch extends DiseasablePatch {
51
53 private static final int START_HARVEST_AMOUNT = 3;
54
56 private static final int END_HARVEST_AMOUNT = 18;
57
65 public HerbPatch(Player player, FarmingZone zone, Interactable[] boundaries) {
66 super(player, zone, boundaries);
67 }
68
69 @Override
70 public Plant plantForSeed(int seedId) {
71 return Herb.forId(seedId);
72 }
73
74 @Override
75 protected int getMinAmount() {
76 return START_HARVEST_AMOUNT;
77 }
78
79 @Override
80 protected int getMaxAmount() {
81 return END_HARVEST_AMOUNT;
82 }
83
84 @Override
85 protected int animation() {
86 return FarmingConstants.PICKING_HERB_ANIM;
87 }
88
89 /* @Override
90 public int getConfig() {
91 if (isDead()) {
92 return growth + 169;
93 }
94 return super.getConfig();
95 }*/
96
97}
HerbPatch(Player player, FarmingZone zone, Interactable[] boundaries)