Increased pump pressure

This commit is contained in:
Calclavia 2014-12-10 22:28:54 +08:00
parent 1b1a295513
commit e5135ed236
2 changed files with 4 additions and 4 deletions

View file

@ -9,7 +9,7 @@ import resonantinduction.core.prefab.node.NodeFluidPressure
* A node for the pump * A node for the pump
* @author Calclavia * @author Calclavia
*/ */
class PumpNode(parent: INodeProvider) extends NodeFluidPressure(parent) class NodePump(parent: INodeProvider) extends NodeFluidPressure(parent)
{ {
def pump: TilePump = getParent.asInstanceOf[TilePump] def pump: TilePump = getParent.asInstanceOf[TilePump]
@ -19,10 +19,10 @@ class PumpNode(parent: INodeProvider) extends NodeFluidPressure(parent)
{ {
if (dir == pump.getDirection) if (dir == pump.getDirection)
{ {
return Math.max(Math.log(Math.abs(pump.mechanicalNode.torque) + 1), 2).toInt return Math.max(Math.log(Math.abs(pump.mechanicalNode.torque) + 1) * 3, 2).toInt
} }
return -Math.max(Math.log(Math.abs(pump.mechanicalNode.torque) + 1), 2).toInt return -Math.max(Math.log(Math.abs(pump.mechanicalNode.torque) + 1) * 3, 2).toInt
} }
return 0 return 0

View file

@ -23,7 +23,7 @@ object TilePump
class TilePump extends TileMechanical(Material.iron) with IRotatable with IFluidHandler class TilePump extends TileMechanical(Material.iron) with IRotatable with IFluidHandler
{ {
val pressureNode = new PumpNode(this) val pressureNode = new NodePump(this)
//Constructor //Constructor
normalRender = false normalRender = false