From 5f49b1592a4682340a732f6ad6385ca50835347d Mon Sep 17 00:00:00 2001 From: Fluffiest Floofers Date: Thu, 5 Oct 2023 22:09:35 +0200 Subject: [PATCH] amphora (#107) --- .../Objects/Specific/Chapel/amphorae.yml | 76 ++++++++++++++++++ .../Specific/Chapel/amphorae.rsi/amphora3.png | Bin 0 -> 236 bytes .../Specific/Chapel/amphorae.rsi/meta.json | 14 ++++ 3 files changed, 90 insertions(+) create mode 100644 Resources/Prototypes/Nyanotrasen/Entities/Objects/Specific/Chapel/amphorae.yml create mode 100644 Resources/Textures/Nyanotrasen/Objects/Specific/Chapel/amphorae.rsi/amphora3.png create mode 100644 Resources/Textures/Nyanotrasen/Objects/Specific/Chapel/amphorae.rsi/meta.json diff --git a/Resources/Prototypes/Nyanotrasen/Entities/Objects/Specific/Chapel/amphorae.yml b/Resources/Prototypes/Nyanotrasen/Entities/Objects/Specific/Chapel/amphorae.yml new file mode 100644 index 00000000000..e630e0735cf --- /dev/null +++ b/Resources/Prototypes/Nyanotrasen/Entities/Objects/Specific/Chapel/amphorae.yml @@ -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 diff --git a/Resources/Textures/Nyanotrasen/Objects/Specific/Chapel/amphorae.rsi/amphora3.png b/Resources/Textures/Nyanotrasen/Objects/Specific/Chapel/amphorae.rsi/amphora3.png new file mode 100644 index 0000000000000000000000000000000000000000..298bf3faf9ba52e073930f1248dbf73fcd024392 GIT binary patch literal 236 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnF3?v&v(vJfv#^NA%Cx&(BWL^R}LIFM@u0YyT zQ#8a>X+g5}x>EmxQ_9>L!^A;KOM?7@862M7NCR@JJzX3_G|q3m=*V}-frB;R6z8(g z?`K)~8j6{o#ydE_ub-NCQ0-W2>T&Nn1&1%&AK7i^lGeI#)a!P*={w60VUtB3T@QV$ zDY@*!R)&=q%@s1U{&*y(a>jGrdGMWyv4@8%VaZcVh94Qv4<)`4w8(1mc<}X<&bN|J_9;~!PC{xWt~$(699!sRVM%d literal 0 HcmV?d00001 diff --git a/Resources/Textures/Nyanotrasen/Objects/Specific/Chapel/amphorae.rsi/meta.json b/Resources/Textures/Nyanotrasen/Objects/Specific/Chapel/amphorae.rsi/meta.json new file mode 100644 index 00000000000..eba3bf300a2 --- /dev/null +++ b/Resources/Textures/Nyanotrasen/Objects/Specific/Chapel/amphorae.rsi/meta.json @@ -0,0 +1,14 @@ +{ + "version": 1, + "license": "CC-BY-SA-4.0", + "copyright": "Huvy", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "amphora3" + } + ] +}