Fixes chocolate/energy bar (#4503)

This commit is contained in:
Swept
2021-08-21 17:35:24 -07:00
committed by GitHub
parent 6fc85b6f49
commit 106a5078de
4 changed files with 44 additions and 11 deletions

View File

@@ -7,4 +7,4 @@
FoodSnackChips: 3
FoodSnackBoritos: 2
FoodSnackPopcorn: 1
FoodSnackEnergybar: 2
FoodSnackEnergy: 2

View File

@@ -70,26 +70,56 @@
description: Tastes like cardboard.
components:
- type: Sprite
layers:
- state: chocolatebar-open
- state: chocolatebar
state: chocolatebar
- type: Item
color: red
- type: Food
trash: FoodPacketChocolateTrash
HeldPrefix: chocolatebar
- type: SpawnItemsOnUse
items:
- id: FoodPacketChocolateTrash
- id: FoodSnackChocolateBar
sound:
path: /Audio/Effects/unwrap.ogg
- type: entity
name: chocolate bar
parent: FoodSnackBase
id: FoodSnackChocolateBar
description: Tastes like cardboard.
abstract: true
components:
- type: Sprite
state: chocolatebar-open
- type: Item
color: brown
- type: entity
name: energy bar
parent: FoodSnackBase
id: FoodSnackEnergybar
id: FoodSnackEnergy
description: An energy bar with a lot of punch.
components:
- type: Sprite
state: energybar
- type: Item
color: green
- type: Food
trash: FoodPacketEnergyTrash
color: lime
- type: SpawnItemsOnUse
items:
- id: FoodPacketEnergyTrash
- id: FoodSnackEnergyBar
sound:
path: /Audio/Effects/unwrap.ogg
- type: entity
name: energy bar
parent: FoodSnackBase
id: FoodSnackEnergyBar
description: An energy bar with a lot of punch.
abstract: true
components:
- type: Sprite
state: energybar-open
- type: Item
color: yellow
- type: entity
name: popcorn

Binary file not shown.

After

Width:  |  Height:  |  Size: 454 B

View File

@@ -54,6 +54,9 @@
{
"name": "energybar"
},
{
"name": "energybar-open"
},
{
"name": "energybar-trash"
},