Add power sinks (#8020)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
1
Resources/Locale/en-US/powersink/powersink.ftl
Normal file
1
Resources/Locale/en-US/powersink/powersink.ftl
Normal file
@@ -0,0 +1 @@
|
||||
powersink-examine-drain-amount = The power sink is draining [color={$markupDrainColor}]{$amount} kW[/color].
|
||||
@@ -255,6 +255,12 @@
|
||||
itemId: ClothingBackpackDuffelSyndicateFilledMedical
|
||||
price: 5
|
||||
|
||||
- type : uplinkListing
|
||||
id: UplinkPowerSink
|
||||
category: Tools
|
||||
itemId: PowerSink
|
||||
price: 5
|
||||
|
||||
- type: uplinkListing
|
||||
id: UplinkCarpDehydrated
|
||||
category: Tools
|
||||
|
||||
46
Resources/Prototypes/Entities/Objects/Power/powersink.yml
Normal file
46
Resources/Prototypes/Entities/Objects/Power/powersink.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
- type: entity
|
||||
id: PowerSink
|
||||
parent: BaseMachine
|
||||
name: power sink
|
||||
description: Drains immense amounts of electricity from the grid.
|
||||
components:
|
||||
- type: Item
|
||||
size: 150
|
||||
- type: NodeContainer
|
||||
examinable: true
|
||||
nodes:
|
||||
input:
|
||||
!type:CableDeviceNode
|
||||
nodeGroupID: HVPower
|
||||
- type: Transform
|
||||
anchored: true
|
||||
- type: Physics
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.40,-0.40,0.40,0.40"
|
||||
mass: 15
|
||||
mask:
|
||||
- MachineMask
|
||||
layer:
|
||||
- MachineLayer
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 25
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: PowerSink
|
||||
- type: Battery
|
||||
maxCharge: 7500000
|
||||
- type: ExaminableBattery
|
||||
- type: PowerConsumer
|
||||
voltage: High
|
||||
drawRate: 1000000
|
||||
- type: Sprite
|
||||
netsync: false
|
||||
sprite: Objects/Power/powersink.rsi
|
||||
state: powersink
|
||||
14
Resources/Textures/Objects/Power/powersink.rsi/meta.json
Normal file
14
Resources/Textures/Objects/Power/powersink.rsi/meta.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": 1,
|
||||
"license": "CC-BY-NC-SA-3.0",
|
||||
"copyright": "Taken from goonstation at commit https://github.com/goonstation/goonstation/commit/17c4392b75abd87a0f740e116c44dd4c7dfff6f7",
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"states": [
|
||||
{
|
||||
"name": "powersink"
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
Resources/Textures/Objects/Power/powersink.rsi/powersink.png
Normal file
BIN
Resources/Textures/Objects/Power/powersink.rsi/powersink.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.9 KiB |
Reference in New Issue
Block a user