Skip to content

Commit

Permalink
amphora (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
FluffiestFloof authored Oct 5, 2023
1 parent 94dd919 commit 5f49b15
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
- type: entity
parent: BaseItem
id: BaseAmphora
name: amphora
description: It's an earthenware jar suitable for carrying liquids, an example of ancient technology.
abstract: true
components:
- type: Sprite
sprite: Nyanotrasen/Objects/Specific/Chapel/amphorae.rsi
- type: Item
size: 10
sprite: Nyanotrasen/Objects/Specific/Chapel/amphorae.rsi
- type: StaticPrice
price: 50
- type: SolutionContainerManager
solutions:
jar:
maxVol: 120
- type: Drink
isOpen: true
solution: jar
- type: Spillable
solution: jar
- type: RefillableSolution
solution: jar
- type: DrainableSolution
solution: jar
- type: ExaminableSolution
solution: jar
- type: DrawableSolution
solution: jar
- type: InjectableSolution
solution: jar
- type: SolutionTransfer
canChangeTransferAmount: true
- type: UserInterface
interfaces:
- key: enum.TransferAmountUiKey.Key
type: TransferAmountBoundUserInterface
- type: Damageable
damageContainer: Inorganic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 5
behaviors:
# TODO: Spawn potsherds.
- !type:PlaySoundBehavior
sound:
collection: GlassBreak
- !type:SpillBehavior
solution: jar
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: DamageOnLand
damage:
types:
Blunt: 5
- type: DamageOtherOnHit
damage:
types:
Blunt: 5
- type: DamageOnHighSpeedImpact
minimumSpeed: 2
damage:
types:
Blunt: 5

- type: entity
parent: BaseAmphora
id: Amphora
components:
- type: Sprite
layers:
- state: amphora3
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": 1,
"license": "CC-BY-SA-4.0",
"copyright": "Huvy",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "amphora3"
}
]
}

0 comments on commit 5f49b15

Please sign in to comment.