From: potato1234_x <79580518+potato1234x@users.noreply.github.com> Date: Sat, 29 Apr 2023 08:42:44 +0000 (+1000) Subject: Salt & Pepper Shakers (#15808) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=24e6088dd718d9b85e390db4b4b1dfabd105d1c1;p=space-station-14.git Salt & Pepper Shakers (#15808) --- diff --git a/Resources/Prototypes/Entities/Objects/Consumable/Food/Containers/condiments.yml b/Resources/Prototypes/Entities/Objects/Consumable/Food/Containers/condiments.yml index f7da7d9d64..642a9006f7 100644 --- a/Resources/Prototypes/Entities/Objects/Consumable/Food/Containers/condiments.yml +++ b/Resources/Prototypes/Entities/Objects/Consumable/Food/Containers/condiments.yml @@ -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 diff --git a/Resources/Textures/Objects/Consumable/Food/condiments.rsi/meta.json b/Resources/Textures/Objects/Consumable/Food/condiments.rsi/meta.json index 894c35f476..05b5ef2dc3 100644 --- a/Resources/Textures/Objects/Consumable/Food/condiments.rsi/meta.json +++ b/Resources/Textures/Objects/Consumable/Food/condiments.rsi/meta.json @@ -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 diff --git a/Resources/Textures/Objects/Consumable/Food/condiments.rsi/shaker-empty.png b/Resources/Textures/Objects/Consumable/Food/condiments.rsi/shaker-empty.png index a120ece8c1..b6f0decc1a 100644 Binary files a/Resources/Textures/Objects/Consumable/Food/condiments.rsi/shaker-empty.png and b/Resources/Textures/Objects/Consumable/Food/condiments.rsi/shaker-empty.png differ diff --git a/Resources/Textures/Objects/Consumable/Food/condiments.rsi/shaker-pepper.png b/Resources/Textures/Objects/Consumable/Food/condiments.rsi/shaker-pepper.png index 2c11f860e3..8eb7cd991a 100644 Binary files a/Resources/Textures/Objects/Consumable/Food/condiments.rsi/shaker-pepper.png and b/Resources/Textures/Objects/Consumable/Food/condiments.rsi/shaker-pepper.png differ diff --git a/Resources/Textures/Objects/Consumable/Food/condiments.rsi/shaker-salt.png b/Resources/Textures/Objects/Consumable/Food/condiments.rsi/shaker-salt.png index 72dda4a246..36fd5ce8d7 100644 Binary files a/Resources/Textures/Objects/Consumable/Food/condiments.rsi/shaker-salt.png and b/Resources/Textures/Objects/Consumable/Food/condiments.rsi/shaker-salt.png differ