Added Ritual: Ritual of Living Evolution, which is used to set the living armour's max upgrade points to 300.

This commit is contained in:
WayofTime 2016-02-15 17:13:50 -05:00
parent 7610329d0a
commit db4c68e5f3
8 changed files with 124 additions and 2 deletions

View file

@ -181,6 +181,8 @@ public class LivingArmour implements ILivingArmour
@Override
public void readFromNBT(NBTTagCompound tag)
{
maxUpgradePoints = Math.max(100, tag.getInteger("maxUpgradePoints"));
NBTTagList upgradeTags = tag.getTagList("upgrades", 10);
if (upgradeTags != null)
{
@ -227,6 +229,8 @@ public class LivingArmour implements ILivingArmour
@Override
public void writeToNBT(NBTTagCompound tag, boolean forceWrite)
{
tag.setInteger("maxUpgradePoints", maxUpgradePoints);
NBTTagList tags = new NBTTagList();
for (Entry<String, LivingArmourUpgrade> entry : upgradeMap.entrySet())