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:
parent
7610329d0a
commit
db4c68e5f3
8 changed files with 124 additions and 2 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue