Class RestockMeta
java.lang.Object
org.rspeer.game.config.item.restock.RestockMeta
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRestockMeta(int purchaseAmount, int pricePerItem) RestockMeta(int itemId, int purchaseAmount, int pricePerItem) RestockMeta(int itemId, int purchaseAmount, int pricePerItem, int threshold) -
Method Summary
-
Constructor Details
-
RestockMeta
public RestockMeta(int itemId, int purchaseAmount, int pricePerItem, int threshold) - Parameters:
itemId- The id of the item to purchasepurchaseAmount- The quantity to purchasepricePerItem- A negative value indicates that it should use the +5% increase button n times. For example, -3 will click the increase price by 5% button 3 times
-
RestockMeta
public RestockMeta(int itemId, int purchaseAmount, int pricePerItem) -
RestockMeta
public RestockMeta(int purchaseAmount, int pricePerItem) - Parameters:
purchaseAmount- The quantity to purchasepricePerItem- A negative value indicates that it should use the +5% increase button n times. For example, -3 will click the increase price by 5% button 3 times
-
-
Method Details
-
increase5percent
public static int increase5percent(int times) -
getPurchaseAmount
public int getPurchaseAmount()- Returns:
- The quantity to purchase
-
getPricePerItem
public int getPricePerItem()- Returns:
- The price at which each item should be purchased A negative value indicates that it should use the +5% increase button n times. For example, -3 will click the increase price by 5% button 3 times
-
getItemId
public int getItemId() -
getThreshold
public int getThreshold()
-