Made it so that when you acquire a Living Armour Upgrade from a Tome, it raises the corresponding Stat Tracker up to that upgrade level.

This commit is contained in:
WayofTime 2016-09-30 16:49:56 -04:00
parent 7a42968633
commit d1a7a77034
24 changed files with 393 additions and 85 deletions

View file

@ -1,11 +1,11 @@
package WayofTime.bloodmagic.api.livingArmour;
import WayofTime.bloodmagic.livingArmour.LivingArmour;
import java.util.List;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import java.util.List;
import WayofTime.bloodmagic.livingArmour.LivingArmour;
public abstract class StatTracker
{
@ -43,9 +43,9 @@ public abstract class StatTracker
/**
* Used to obtain the progress from the current level to the next level.
*
*
* 0.0 being 0% - 1.0 being 100%.
*
*
* @param livingArmour
* The equipped LivingArmour
* @return the progress from the current level to the next level.
@ -71,4 +71,6 @@ public abstract class StatTracker
}
public abstract boolean providesUpgrade(String key);
public abstract void onArmourUpgradeAdded(LivingArmourUpgrade upgrade);
}