condiment rework (#16247)

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2023-05-10 11:36:47 +00:00
committed by GitHub
parent 791c07b11d
commit 21166406d8
18 changed files with 67 additions and 260 deletions

View File

@@ -10,7 +10,7 @@
FoodCondimentBottleHotsauce: 1 FoodCondimentBottleHotsauce: 1
FoodCondimentBottleKetchup: 1 FoodCondimentBottleKetchup: 1
FoodCondimentBottleBBQ: 1 FoodCondimentBottleBBQ: 1
FoodCondimentBottleSmallVinegar: 2 FoodCondimentBottleVinegar: 2
ReagentContainerOliveoil: 2 ReagentContainerOliveoil: 2
MonkeyCubeBox: 1 MonkeyCubeBox: 1
FoodContainerEgg: 1 FoodContainerEgg: 1

View File

@@ -1,10 +1,28 @@
# TODO: Removes the icon components from all these when that gets fixed. # TODO: Removes the icon components from all these when that gets fixed.
- type: entity
parent: BaseItem
id: BaseFoodCondiment
abstract: true
components:
- type: DrawableSolution
solution: food
- type: DrainableSolution
solution: food
- type: Sprite
sprite: Objects/Consumable/Food/condiments.rsi
- type: Icon
sprite: Objects/Consumable/Food/condiments.rsi
- type: TrashOnEmpty
solution: food
- type: SpaceGarbage
- type: StaticPrice
price: 0
# Packets # Packets
# Since this one is closed, the only way to insert liquid is with a syringe.
- type: entity - type: entity
parent: BaseItem parent: BaseFoodCondiment
id: BaseFoodCondimentPacket id: BaseFoodCondimentPacket
name: condiment packet name: condiment packet
abstract: true abstract: true
@@ -15,12 +33,9 @@
refillable: false refillable: false
openSounds: openSounds:
collection: packetOpenSounds collection: packetOpenSounds
- type: DrawableSolution # Since this one is closed, the only way to insert liquid is with a syringe.
solution: food
- type: InjectableSolution - type: InjectableSolution
solution: food solution: food
- type: DrainableSolution
solution: food
# Note NOT refillable. # Note NOT refillable.
# It be a shame if it turned out ALL drinks were ALWAYS refillable.... ffs. # It be a shame if it turned out ALL drinks were ALWAYS refillable.... ffs.
# Well its fixed now, but I want to share my pain. # Well its fixed now, but I want to share my pain.
@@ -31,22 +46,12 @@
- type: SolutionTransfer - type: SolutionTransfer
maxTransferAmount: 10 maxTransferAmount: 10
- type: Sprite - type: Sprite
netsync: false
sprite: Objects/Consumable/Food/condiments.rsi
state: packet-empty state: packet-empty
- type: Icon - type: Icon
sprite: Objects/Consumable/Food/condiments.rsi
state: packet-empty state: packet-empty
- type: TrashOnEmpty - type: PhysicalComposition
solution: food materialComposition:
Plastic: 50
- type: entity
parent: BaseFoodCondimentPacket
id: FoodCondimentPacket
components:
- type: Tag
tags:
- Trash
- type: entity - type: entity
parent: BaseFoodCondimentPacket parent: BaseFoodCondimentPacket
@@ -334,7 +339,7 @@
# Bottles # Bottles
- type: entity - type: entity
parent: BaseItem parent: BaseFoodCondiment
id: BaseFoodCondimentBottle id: BaseFoodCondimentBottle
abstract: true abstract: true
name: condiment bottle name: condiment bottle
@@ -344,10 +349,6 @@
solution: food solution: food
openSounds: openSounds:
collection: pop collection: pop
- type: RefillableSolution
solution: food
- type: DrainableSolution
solution: food
- type: SolutionContainerManager - type: SolutionContainerManager
solutions: solutions:
food: food:
@@ -357,23 +358,14 @@
minTransferAmount: 5 minTransferAmount: 5
maxTransferAmount: 30 maxTransferAmount: 30
- type: Sprite - type: Sprite
netsync: false
sprite: Objects/Consumable/Food/condiments.rsi
state: bottle-empty state: bottle-empty
- type: Appearance - type: Appearance
- type: SolutionContainerVisuals - type: SolutionContainerVisuals
maxFillLevels: 6 maxFillLevels: 6
fillBaseName: bottle-alpha- fillBaseName: bottle-alpha-
- type: TrashOnEmpty - type: PhysicalComposition
solution: food materialComposition:
Glass: 50
- type: entity
parent: BaseFoodCondimentBottle
id: FoodCondimentBottle
components:
- type: Tag
tags:
- Trash
- type: entity - type: entity
parent: BaseFoodCondimentBottle parent: BaseFoodCondimentBottle
@@ -395,7 +387,6 @@
map: ["enum.SolutionContainerLayers.Fill"] map: ["enum.SolutionContainerLayers.Fill"]
visible: true visible: true
- type: Icon - type: Icon
sprite: Objects/Consumable/Food/condiments.rsi
state: bottle-coldsauce state: bottle-coldsauce
- type: entity - type: entity
@@ -418,13 +409,34 @@
map: ["enum.SolutionContainerLayers.Fill"] map: ["enum.SolutionContainerLayers.Fill"]
visible: true visible: true
- type: Icon - type: Icon
sprite: Objects/Consumable/Food/condiments.rsi
state: bottle-enzyme state: bottle-enzyme
- type: entity
parent: BaseFoodCondimentBottle
id: FoodCondimentBottleVinegar
name: vinegar bottle
description: Used in cooking to enhance flavor.
components:
- type: SolutionContainerManager
solutions:
food:
reagents:
- ReagentId: Vinegar
Quantity: 30
- type: Sprite
layers:
- state: bottle-empty
- state: label-v
- state: bottle-alpha-6
map: ["enum.SolutionContainerLayers.Fill"]
visible: true
- type: Icon
state: bottle-vinegar
- type: entity - type: entity
parent: BaseFoodCondimentBottle parent: BaseFoodCondimentBottle
id: FoodCondimentBottleHotsauce id: FoodCondimentBottleHotsauce
name: hotsauce name: hotsauce bottle
description: You can almost TASTE the stomach ulcers now! description: You can almost TASTE the stomach ulcers now!
components: components:
- type: SolutionContainerManager - type: SolutionContainerManager
@@ -441,13 +453,12 @@
map: ["enum.SolutionContainerLayers.Fill"] map: ["enum.SolutionContainerLayers.Fill"]
visible: true visible: true
- type: Icon - type: Icon
sprite: Objects/Consumable/Food/condiments.rsi
state: bottle-hotsauce state: bottle-hotsauce
- type: entity - type: entity
parent: BaseFoodCondimentBottle parent: BaseFoodCondimentBottle
id: FoodCondimentBottleKetchup id: FoodCondimentBottleKetchup
name: ketchup name: ketchup bottle
description: You feel more American already. description: You feel more American already.
components: components:
- type: SolutionContainerManager - type: SolutionContainerManager
@@ -464,13 +475,12 @@
map: ["enum.SolutionContainerLayers.Fill"] map: ["enum.SolutionContainerLayers.Fill"]
visible: true visible: true
- type: Icon - type: Icon
sprite: Objects/Consumable/Food/condiments.rsi
state: bottle-ketchup state: bottle-ketchup
- type: entity - type: entity
parent: BaseFoodCondimentBottle parent: BaseFoodCondimentBottle
id: FoodCondimentBottleBBQ id: FoodCondimentBottleBBQ
name: BBQ sauce name: BBQ sauce bottle
description: Hand wipes not included. description: Hand wipes not included.
components: components:
- type: SolutionContainerManager - type: SolutionContainerManager
@@ -488,13 +498,12 @@
visible: true visible: true
# So there's no error. # So there's no error.
- type: Icon - type: Icon
sprite: Objects/Consumable/Food/condiments.rsi
state: bottle-ketchup state: bottle-ketchup
# Shakers # Shakers
- type: entity - type: entity
parent: BaseItem parent: BaseFoodCondimentBottle
id: BaseFoodShaker id: BaseFoodShaker
abstract: true abstract: true
name: empty shaker name: empty shaker
@@ -503,10 +512,6 @@
- type: Drink - type: Drink
solution: food solution: food
isOpen: true isOpen: true
- type: RefillableSolution
solution: food
- type: DrainableSolution
solution: food
- type: SolutionContainerManager - type: SolutionContainerManager
solutions: solutions:
food: food:
@@ -534,22 +539,7 @@
- !type:DoActsBehavior - !type:DoActsBehavior
acts: [ "Destruction" ] acts: [ "Destruction" ]
- type: Sprite - type: Sprite
netsync: false
sprite: Objects/Consumable/Food/condiments.rsi
state: shaker-empty 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 - type: entity
parent: BaseFoodShaker parent: BaseFoodShaker
@@ -563,12 +553,9 @@
reagents: reagents:
- ReagentId: TableSalt - ReagentId: TableSalt
Quantity: 20 Quantity: 20
- type: Sprite - type: Sprite
sprite: Objects/Consumable/Food/condiments.rsi
state: shaker-salt state: shaker-salt
- type: Icon - type: Icon
sprite: Objects/Consumable/Food/condiments.rsi
state: shaker-salt state: shaker-salt
- type: entity - type: entity
@@ -583,160 +570,7 @@
reagents: reagents:
- ReagentId: Blackpepper - ReagentId: Blackpepper
Quantity: 20 Quantity: 20
- type: Sprite - type: Sprite
sprite: Objects/Consumable/Food/condiments.rsi
state: shaker-pepper state: shaker-pepper
- type: Icon - type: Icon
sprite: Objects/Consumable/Food/condiments.rsi
state: shaker-pepper state: shaker-pepper
# Small Bottles
- type: entity
parent: BaseItem
id: BaseFoodCondimentBottleSmall
abstract: true
name: condiment bottle
description: A smaller glass bottle used to store condiments.
components:
- type: Drink
solution: food
openSounds:
collection: pop
- type: RefillableSolution
solution: food
- type: DrainableSolution
solution: food
- type: SolutionContainerManager
solutions:
food:
maxVol: 15
- type: SolutionTransfer
maxTransferAmount: 15
- type: Sprite
netsync: false
sprite: Objects/Consumable/Food/condiments.rsi
state: bottle-s-empty
- type: Appearance
- type: SolutionContainerVisuals
maxFillLevels: 3
fillBaseName: bottle-s-alpha-
- type: TrashOnEmpty
solution: food
- type: entity
parent: BaseFoodCondimentBottleSmall
id: FoodCondimentBottleSmall
components:
- type: Tag
tags:
- Trash
- type: entity
parent: BaseFoodCondimentBottleSmall
id: FoodCondimentBottleSmallColdsauce
name: coldsauce bottle
description: Leaves the tongue numb in its passage.
components:
- type: SolutionContainerManager
solutions:
food:
reagents:
- ReagentId: Frostoil
Quantity: 15
- type: Sprite
layers:
- state: bottle-s-empty
- state: label-s-c
- state: bottle-s-alpha-3
map: ["enum.SolutionContainerLayers.Fill"]
visible: true
- type: Icon
sprite: Objects/Consumable/Food/condiments.rsi
state: bottle-s-coldsauce
- type: entity
parent: BaseFoodCondimentBottleSmall
id: FoodCondimentBottleSmallHotsauce
name: hotsauce
description: You can almost TASTE the stomach ulcers now!
components:
- type: SolutionContainerManager
solutions:
food:
reagents:
- ReagentId: Hotsauce
Quantity: 15
- type: Sprite
layers:
- state: bottle-s-empty
- state: label-s-h
- state: bottle-s-alpha-3
map: ["enum.SolutionContainerLayers.Fill"]
visible: true
- type: Icon
sprite: Objects/Consumable/Food/condiments.rsi
state: bottle-s-hotsauce
- type: entity
parent: BaseFoodCondimentBottleSmall
id: FoodCondimentBottleSmallKetchup
name: ketchup
description: You feel more American already.
components:
- type: SolutionContainerManager
solutions:
food:
reagents:
- ReagentId: Ketchup
Quantity: 15
- type: Sprite
layers:
- state: bottle-s-empty
- state: label-s-k
- state: bottle-s-alpha-3
map: ["enum.SolutionContainerLayers.Fill"]
visible: true
- type: Icon
sprite: Objects/Consumable/Food/condiments.rsi
state: bottle-s-ketchup
- type: entity
parent: BaseFoodCondimentBottleSmall
id: FoodCondimentBottleSmallVinegar
name: vinegar
description: Used in cooking to enhance flavor.
components:
- type: SolutionContainerManager
solutions:
food:
reagents:
- ReagentId: Vinegar
Quantity: 15
- type: Sprite
layers:
- state: bottle-s-empty
- state: label-s-v
- state: bottle-s-alpha-3
map: ["enum.SolutionContainerLayers.Fill"]
visible: true
- type: Icon
sprite: Objects/Consumable/Food/condiments.rsi
state: bottle-s-vinegar
# Trash
# Maybe in some dumb universe you could put liquid back in this and seal it
# with a lighter or something.
- type: entity
noSpawn: true
parent: BaseItem
id: FoodCondimentPacketTrash
name: empty condiment packet
description: A ripped condiment packet. Useless.
components:
- type: Sprite
sprite: Objects/Consumable/Food/condiments.rsi
netsync: false
state: packet-trash

Binary file not shown.

Before

Width:  |  Height:  |  Size: 147 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 298 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 761 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 B

View File

@@ -1,7 +1,7 @@
{ {
"version": 1, "version": 1,
"license": "CC-BY-SA-3.0", "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. Shaker sprites from tgstation at commit https://github.com/tgstation/tgstation/commit/7ec204f85ed34a3d9c9d09d51977f2ad610c481e", "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. label-v.png made by deltanedas (github)",
"size": { "size": {
"x": 32, "x": 32,
"y": 32 "y": 32
@@ -19,6 +19,9 @@
{ {
"name": "bottle-enzyme" "name": "bottle-enzyme"
}, },
{
"name": "bottle-vinegar"
},
{ {
"name": "bottle-coldsauce" "name": "bottle-coldsauce"
}, },
@@ -40,30 +43,6 @@
{ {
"name": "bottle-alpha-6" "name": "bottle-alpha-6"
}, },
{
"name": "bottle-s-ketchup"
},
{
"name": "bottle-s-hotsauce"
},
{
"name": "bottle-s-empty"
},
{
"name": "bottle-s-coldsauce"
},
{
"name": "bottle-s-vinegar"
},
{
"name": "bottle-s-alpha-1"
},
{
"name": "bottle-s-alpha-2"
},
{
"name": "bottle-s-alpha-3"
},
{ {
"name": "label-b" "name": "label-b"
}, },
@@ -80,16 +59,7 @@
"name": "label-k" "name": "label-k"
}, },
{ {
"name": "label-s-c" "name": "label-v"
},
{
"name": "label-s-h"
},
{
"name": "label-s-k"
},
{
"name": "label-s-v"
}, },
{ {
"name": "packet-astrotame" "name": "packet-astrotame"

View File

@@ -47,3 +47,6 @@ WeaponSubMachineGunVectorRubber: WeaponSubMachineGunDrozdRubber
MagazineBoxAntiMaterial: MagazineBoxAntiMateriel MagazineBoxAntiMaterial: MagazineBoxAntiMateriel
CartridgeAntiMaterial: CartridgeAntiMateriel CartridgeAntiMaterial: CartridgeAntiMateriel
BulletAntiMaterial: BulletAntiMateriel BulletAntiMaterial: BulletAntiMateriel
# 2023--05-10
FoodCondimentBottleSmallHotsauce: FoodCondimentBottleHotsauce