Increased pump pressure
This commit is contained in:
parent
1b1a295513
commit
e5135ed236
2 changed files with 4 additions and 4 deletions
|
@ -9,7 +9,7 @@ import resonantinduction.core.prefab.node.NodeFluidPressure
|
|||
* A node for the pump
|
||||
* @author Calclavia
|
||||
*/
|
||||
class PumpNode(parent: INodeProvider) extends NodeFluidPressure(parent)
|
||||
class NodePump(parent: INodeProvider) extends NodeFluidPressure(parent)
|
||||
{
|
||||
def pump: TilePump = getParent.asInstanceOf[TilePump]
|
||||
|
||||
|
@ -19,10 +19,10 @@ class PumpNode(parent: INodeProvider) extends NodeFluidPressure(parent)
|
|||
{
|
||||
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
|
|
@ -23,7 +23,7 @@ object TilePump
|
|||
|
||||
class TilePump extends TileMechanical(Material.iron) with IRotatable with IFluidHandler
|
||||
{
|
||||
val pressureNode = new PumpNode(this)
|
||||
val pressureNode = new NodePump(this)
|
||||
|
||||
//Constructor
|
||||
normalRender = false
|
||||
|
|
Loading…
Reference in a new issue