mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 07:49:03 +00:00
Multiple Effects per Potion
This commit is contained in:
@@ -153,20 +153,13 @@ public class Brew {
|
||||
}
|
||||
|
||||
// return special effect
|
||||
public String getEffect() {
|
||||
public Map<String, Integer> getEffects() {
|
||||
if (currentRecipe != null) {
|
||||
return currentRecipe.getEffect();
|
||||
return currentRecipe.getEffects();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public int getEffectDur() {
|
||||
if (currentRecipe != null) {
|
||||
return currentRecipe.getEffectDur();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Distilling section ---------------
|
||||
|
||||
// distill all custom potions in the brewer
|
||||
@@ -269,6 +262,10 @@ public class Brew {
|
||||
}
|
||||
}
|
||||
|
||||
public PotionMeta addQualityLore(PotionMeta meta, String prefix, String lore) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Saves all data
|
||||
public static void save(ConfigurationSection config) {
|
||||
for (int uid : potions.keySet()) {
|
||||
|
||||
Reference in New Issue
Block a user