- type: entity
  id: PowerSink
  parent: [BaseMachine, BaseSyndicateContraband, BaseMachineDestructible]
  name: power sink
  description: Drains immense amounts of electricity from the grid.
  components:
    - type: Item
      size: Huge
    - type: MultiHandedItem
    - type: HeldSpeedModifier #verrryy heavy
      walkModifier: 0.6
      sprintModifier: 0.6
    - type: NodeContainer
      examinable: true
      nodes:
        input:
          !type:CableDeviceNode
          nodeGroupID: HVPower
    - type: Transform
      anchored: true
    - type: Physics
    - type: Fixtures
      fixtures:
        fix1:
          shape:
            !type:PhysShapeAabb
            bounds: "-0.40,-0.40,0.40,0.40"
          density: 90
          mask:
          - MachineMask
          layer:
          - MachineLayer
    - type: PowerSink
    - type: Battery
      # Very important:
      # Disable networking to prevent the battery getting continuously dirtied every tick as it interacts with the power network.
      # This can not be done by changing the charge rate as the power supply ramps up over time.
      # This disables prediction for this battery.
      netsync: false
      maxCharge: 250000000
      pricePerJoule: 0.000009
    - type: ExaminableBattery
    - type: PowerConsumerBatteryCharger
    - type: PowerConsumer
      voltage: High
      drawRate: 10000000
    - type: Sprite
      sprite: Objects/Power/powersink.rsi
      state: powersink
    - type: WarpPoint
      location: location-powersink
    - type: StaticPrice
      price: 3000
    - type: Destructible
      thresholds:
      - trigger: !type:DamageTrigger
          damage: 175
        behaviors:
        - !type:PlaySoundBehavior
          sound:
            collection: MetalBreak
