Added increase in speed for Routing nodes inside of a chunk with Demon Aura
This commit is contained in:
parent
25bfa0c969
commit
912f1694e8
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue