Added Physical Protection upgrade. Reorganized some of the upgrades.

This commit is contained in:
WayofTime 2016-01-06 19:34:10 -05:00
parent 72ac385861
commit 6dedb234fb
8 changed files with 187 additions and 13 deletions

View file

@ -14,7 +14,7 @@ import WayofTime.bloodmagic.api.livingArmour.StatTracker;
public class StatTrackerSelfSacrifice extends StatTracker
{
public static HashMap<LivingArmour, Integer> changeMap = new HashMap<LivingArmour, Integer>();
public static int[] sacrificesRequired = new int[] { 50, 200, 400, 600, 800 }; //testing
public static int[] sacrificesRequired = new int[] { 30, 200, 400, 700, 1100, 1500, 2000, 2800, 3600, 5000 }; //testing
public int totalSacrifices = 0;
@ -72,12 +72,11 @@ public class StatTrackerSelfSacrifice extends StatTracker
@Override
public List<LivingArmourUpgrade> getUpgrades()
{
// TODO Auto-generated method stub
List<LivingArmourUpgrade> upgradeList = new ArrayList<LivingArmourUpgrade>();
for (int i = 0; i < 5; i++)
for (int i = 0; i < 10; i++)
{
if (totalSacrifices > sacrificesRequired[i])
if (totalSacrifices >= sacrificesRequired[i])
{
upgradeList.add(new LivingArmourUpgradeSelfSacrifice(i));
}