Salt & Pepper Shakers (#15808)

This commit is contained in:
potato1234_x 2023-04-29 18:42:44 +10:00 committed by GitHub
parent 35820f2b4f
commit 24e6088dd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 101 additions and 1 deletions

View File

@ -491,6 +491,106 @@
sprite: Objects/Consumable/Food/condiments.rsi
state: bottle-ketchup
# Shakers
- type: entity
parent: BaseItem
id: BaseFoodShaker
abstract: true
name: empty shaker
description: A shaker used to store and dispense spices.
components:
- type: Drink
solution: food
isOpen: true
- type: RefillableSolution
solution: food
- type: DrainableSolution
solution: food
- type: SolutionContainerManager
solutions:
food:
maxVol: 20
- type: SolutionTransfer
canChangeTransferAmount: true
minTransferAmount: 5
maxTransferAmount: 20
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 5
behaviors:
- !type:PlaySoundBehavior
sound:
collection: GlassBreak
- !type:SpillBehavior { }
- !type:SpawnEntitiesBehavior
spawn:
ShardGlass:
min: 1
max: 1
transferForensics: true
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: Sprite
netsync: false
sprite: Objects/Consumable/Food/condiments.rsi
state: shaker-empty
- type: Appearance
- type: TrashOnEmpty
solution: food
- type: entity
parent: BaseFoodShaker
id: FoodShakerEmpty
name: empty shaker
description: A shaker used to store and dispense spices.
components:
- type: Tag
tags:
- Trash
- type: entity
parent: BaseFoodShaker
id: FoodShakerSalt
name: salt shaker
description: Salt. From space oceans, presumably.
components:
- type: SolutionContainerManager
solutions:
food:
reagents:
- ReagentId: TableSalt
Quantity: 20
- type: Sprite
sprite: Objects/Consumable/Food/condiments.rsi
state: shaker-salt
- type: Icon
sprite: Objects/Consumable/Food/condiments.rsi
state: shaker-salt
- type: entity
parent: BaseFoodShaker
id: FoodShakerPepper
name: pepper shaker
description: Often used to flavor food or make people sneeze.
components:
- type: SolutionContainerManager
solutions:
food:
reagents:
- ReagentId: Blackpepper
Quantity: 20
- type: Sprite
sprite: Objects/Consumable/Food/condiments.rsi
state: shaker-pepper
- type: Icon
sprite: Objects/Consumable/Food/condiments.rsi
state: shaker-pepper
# Small Bottles
- type: entity

View File

@ -1,7 +1,7 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation and baystation at commit https://github.com/tgstation/tgstation/commit/c6e3401f2e7e1e55c57060cdf956a98ef1fefc24 and https://github.com/Baystation12/Baystation12/commit/a6067826de7fd8f698793f6d84e6c2f1f9b1f188",
"copyright": "Taken from tgstation and baystation at commit https://github.com/tgstation/tgstation/commit/c6e3401f2e7e1e55c57060cdf956a98ef1fefc24 and https://github.com/Baystation12/Baystation12/commit/a6067826de7fd8f698793f6d84e6c2f1f9b1f188. Shaker sprites from tgstation at commit https://github.com/tgstation/tgstation/commit/7ec204f85ed34a3d9c9d09d51977f2ad610c481e",
"size": {
"x": 32,
"y": 32

Binary file not shown.

Before

Width:  |  Height:  |  Size: 171 B

After

Width:  |  Height:  |  Size: 293 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 212 B

After

Width:  |  Height:  |  Size: 335 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 B

After

Width:  |  Height:  |  Size: 283 B