Adds the antimatter engine (#1905)

* adds antimatter engine

* fixes some nullables

* fixes ALL OF THE NULLABLES

* adds explosions

* adds fancy lighting

* requested changes + license info

Co-authored-by: ancientpower <ancientpowerer@gmail.com>
This commit is contained in:
ancientpower
2020-08-29 06:05:44 -05:00
committed by GitHub
parent 6156ce3534
commit 566ed6b770
49 changed files with 1642 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
- type: entity
id: AMEController
name: AME Controller
placement:
mode: SnapgridCenter
components:
- type: Clickable
- type: Icon
sprite: Constructible/Power/ame_controller.rsi
state: control
- type: Sprite
sprite: Constructible/Power/ame_controller.rsi
state: control
- type: Collidable
shapes:
- !type:PhysShapeAabb
layer:
- Opaque
- Impassable
- MobImpassable
- VaultImpassable
- SmallImpassable
- type: Destructible
maxHP: 500
- type: SnapGrid
offset: Center
- type: Anchorable
- type: AMEController
- type: UserInterface
interfaces:
- key: enum.AMEControllerUiKey.Key
type: AMEControllerBoundUserInterface
- type: Appearance
visuals:
- type: AMEControllerVisualizer
- type: NodeContainer
nodes:
- !type:AdjacentNode
nodeGroupID: AMEngine
- !type:AdjacentNode
nodeGroupID: HVPower
- type: PowerReceiver
- type: PowerSupplier
supplyRate: 0

View File

@@ -0,0 +1,46 @@
- type: entity
id: AMEShielding
name: AME shielding
description: Keeps the antimatter in and the matter out.
placement:
mode: SnapgridCenter
components:
- type: Clickable
- type: Sprite
drawdepth: Walls
sprite: Constructible/Power/ame_shielding.rsi
state: shield_0
- type: Icon
texture: Constructible/Power/ame_shielding_base.png
- type: Collidable
shapes:
- !type:PhysShapeAabb
layer:
- Opaque
- Impassable
- MobImpassable
- VaultImpassable
- SmallImpassable
- type: Destructible
maxHP: 500
spawnondestroy: AMEPart
- type: SnapGrid
offset: Center
- type: Airtight
- type: IconSmooth
mode: CardinalFlags
base: shield_
key: ame_shield
- type: AMEShield
- type: NodeContainer
nodes:
- !type:AdjacentNode
nodeGroupID: AMEngine
- type: PointLight
enabled: false
radius: 5
energy: 0.5
color: "#00AAFF"
- type: Appearance
visuals:
- type: AMEVisualizer

View File

@@ -0,0 +1,16 @@
- type: entity
id: AMEJar
name: Antimatter Fuel Jar
parent: BaseItem
description: A hermetically sealed jar containing antimatter for use in an antimatter reactor.
components:
- type: Item
size: 5
sprite: Objects/Power/AME/ame_jar.rsi
- type: Sprite
sprite: Objects/Power/AME/ame_jar.rsi
state: jar
- type: Icon
sprite: Objects/Power/AME/ame_jar.rsi
state: jar
- type: AMEFuelContainer

View File

@@ -0,0 +1,16 @@
- type: entity
id: AMEPart
name: Antimatter Engine Part
parent: BaseItem
description: "A flatpack used for constructing an antimatter engine reactor.\nUse a multitool to unpack it."
components:
- type: Item
size: 5
sprite: Objects/Power/AME/ame_part.rsi
- type: Sprite
sprite: Objects/Power/AME/ame_part.rsi
state: box
- type: Icon
sprite: Objects/Power/AME/ame_part.rsi
state: box
- type: AMEPart