Did some work on actual upgrade system

This commit is contained in:
Aidan C. Brady committed 2014-07-21 20:46:35 -04:00
1 parent 435596831e
commit 2523d2fd6b
10 files changed
+166 -83

No files matched your search

+10 -3
View File
@@ -4,14 +4,16 @@ import mekanism.common.util.MekanismUtils;
public enum Upgrade
{
SPEED("speed"),
ENERGY("energy");
SPEED("speed", 16),
ENERGY("energy", 16);
private String name;
private int maxStack;
private Upgrade(String s)
private Upgrade(String s, int max)
{
name = s;
maxStack = max;
}
public String getName()
@@ -23,4 +25,9 @@ public enum Upgrade
{
return MekanismUtils.localize("upgrade." + name + ".desc");
}
public int getMax()
{
return maxStack;
}
}