Added increase in speed for Routing nodes inside of a chunk with Demon Aura

This commit is contained in:
WayofTime 2016-04-03 17:08:00 -04:00
parent 25bfa0c969
commit 912f1694e8
2 changed files with 9 additions and 1 deletions

View file

@ -5,6 +5,7 @@ Version 2.0.0-31
- Added Living Armour Upgrades:
- Strong Legs increases jump height. Pro tip: hold shift to bypass this jump boost.
- Soft Fall decreases all fall damage, up to 100% at level 5.
- Added increase in speed for Routing nodes inside of a chunk with Demon Aura
------------------------------------------------------
Version 2.0.0-30

View file

@ -1,6 +1,8 @@
package WayofTime.bloodmagic.tile.routing;
import WayofTime.bloodmagic.api.Constants;
import WayofTime.bloodmagic.api.soul.EnumDemonWillType;
import WayofTime.bloodmagic.demonAura.WorldDemonWillHandler;
import WayofTime.bloodmagic.routing.*;
import WayofTime.bloodmagic.tile.TileInventory;
import net.minecraft.nbt.NBTTagCompound;
@ -109,7 +111,7 @@ public class TileMasterRoutingNode extends TileInventory implements IMasterRouti
}
}
int maxTransfer = 8;
int maxTransfer = this.getMaxTransferForDemonWill(WorldDemonWillHandler.getCurrentWill(worldObj, pos, EnumDemonWillType.DEFAULT));
for (Entry<Integer, List<IItemFilter>> outputEntry : outputMap.entrySet())
{
@ -132,6 +134,11 @@ public class TileMasterRoutingNode extends TileInventory implements IMasterRouti
}
}
public int getMaxTransferForDemonWill(double will)
{
return 8 + (int) (will / 25);
}
@Override
public void writeToNBT(NBTTagCompound tag)
{