Show Effects on Potion, Changed Lore

This commit is contained in:
Sn0wStorm
2013-08-15 18:17:05 +02:00
parent ac9975fce9
commit a347a16c06
8 changed files with 229 additions and 130 deletions
+7 -2
View File
@@ -46,10 +46,15 @@ public class BRecipe {
if (effectStringList != null) {
for (String effectString : effectStringList) {
String[] effectSplit = effectString.split("/");
String effect = effectSplit[0];
if (effect.equalsIgnoreCase("WEAKNESS") || effect.equalsIgnoreCase("INCREASE_DAMAGE") || effect.equalsIgnoreCase("SLOW") || effect.equalsIgnoreCase("SPEED") || effect.equalsIgnoreCase("REGERATION")) {
// hide these effects as they put crap into lore
effect = effect + "X";
}
if (effectSplit.length > 1) {
effects.put(effectSplit[0], P.p.parseInt(effectSplit[1]));
effects.put(effect, P.p.parseInt(effectSplit[1]));
} else {
effects.put(effectSplit[0], 20);
effects.put(effect, 20);
}
}
}