Skip to content

Commit

Permalink
autoformat
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraHell committed Aug 6, 2024
1 parent f5f3c4e commit 5a6bc4d
Showing 1 changed file with 68 additions and 65 deletions.
133 changes: 68 additions & 65 deletions Resources/Prototypes/Entities/Objects/Devices/payload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,84 +3,87 @@
abstract: true
id: BasePayload
components:
- type: Appearance
- type: Sprite
- type: Tag
tags:
- Payload
- type: Damageable
damageContainer: Inorganic
- type: Destructible
thresholds:
- trigger: !type:DamageTrigger
damage: 50
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Appearance
- type: Sprite
- type: Tag
tags:
- Payload
- type: Damageable
damageContainer: Inorganic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]

- type: entity
name: explosive payload
parent: BasePayload
id: ExplosivePayload
components:
- type: Sprite
sprite: Objects/Devices/payload.rsi
state: payload-explosive-armed
- type: Explosive
explosionType: Default
# same as the standard grenade, but those numbers were also just picked out of a hat.
maxIntensity: 10
intensitySlope: 3
totalIntensity: 120 # about a ~4 tile radius
- type: ExplodeOnTrigger
- type: Destructible
thresholds:
- trigger: !type:DamageTypeTrigger
damageType: Heat
damage: 25
behaviors:
- !type:ExplodeBehavior
- trigger: !type:DamageTrigger
damage: 50
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Sprite
sprite: Objects/Devices/payload.rsi
state: payload-explosive-armed
- type: Explosive
explosionType: Default
# same as the standard grenade, but those numbers were also just picked out of a hat.
maxIntensity: 10
intensitySlope: 3
totalIntensity: 120 # about a ~4 tile radius
- type: ExplodeOnTrigger
- type: Destructible
thresholds:
- trigger:
!type:DamageTypeTrigger
damageType: Heat
damage: 25
behaviors:
- !type:ExplodeBehavior
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]

- type: entity
name: chemical payload
parent: BasePayload
id: ChemicalPayload
description: A chemical payload. Has space to store two beakers. In combination with a trigger and a case, this can be used to initiate chemical reactions.
components:
- type: Sprite
sprite: Objects/Devices/payload.rsi
state: payload-empty
layers:
- state: payload-empty
map: ["base"]
- type: ChemicalPayload
beakerSlotA: &slotDef
whitelist:
components:
- FitsInDispenser
swap: false
beakerSlotB: *slotDef
- type: Appearance
- type: GenericVisualizer
visuals:
enum.ChemicalPayloadVisuals.Slots:
base:
None: { state: payload-empty }
Left: { state: payload-chemical-left }
Right: { state: payload-chemical-right }
Both: { state: payload-chemical-armed }
- type: ItemSlots
- type: ContainerContainer
containers:
BeakerSlotA: !type:ContainerSlot
BeakerSlotB: !type:ContainerSlot
- type: StaticPrice
price: 60
- type: Sprite
sprite: Objects/Devices/payload.rsi
state: payload-empty
layers:
- state: payload-empty
map: ["base"]
- type: ChemicalPayload
beakerSlotA: &slotDef
whitelist:
components:
- FitsInDispenser
swap: false
beakerSlotB: *slotDef
- type: Appearance
- type: GenericVisualizer
visuals:
enum.ChemicalPayloadVisuals.Slots:
base:
None: { state: payload-empty }
Left: { state: payload-chemical-left }
Right: { state: payload-chemical-right }
Both: { state: payload-chemical-armed }
- type: ItemSlots
- type: ContainerContainer
containers:
BeakerSlotA: !type:ContainerSlot
BeakerSlotB: !type:ContainerSlot
- type: StaticPrice
price: 60

- type: entity
name: flash payload
Expand Down

0 comments on commit 5a6bc4d

Please sign in to comment.