From 77711dea5d21a6e040fe3f35ed7c0a1ab19af558 Mon Sep 17 00:00:00 2001 From: potato1234_x <79580518+potato1234x@users.noreply.github.com> Date: Sun, 27 Aug 2023 02:31:13 +1000 Subject: [PATCH] Add peeled state for bananas (#19393) Co-authored-by: Kevin Zheng --- .../Objects/Consumable/Food/produce.yml | 22 ++++++++++++++++-- .../Specific/Hydroponics/banana.rsi/meta.json | 5 +++- .../Hydroponics/banana.rsi/peeled.png | Bin 0 -> 348 bytes 3 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 Resources/Textures/Objects/Specific/Hydroponics/banana.rsi/peeled.png diff --git a/Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml b/Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml index 3dbff39133..b6e3dc4868 100644 --- a/Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml +++ b/Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml @@ -147,8 +147,6 @@ - type: FlavorProfile flavors: - banana - - type: Food - trash: TrashBananaPeel - type: SolutionContainerManager solutions: food: @@ -167,6 +165,26 @@ reagents: - ReagentId: JuiceBanana Quantity: 10 + - type: SpawnItemsOnUse + items: + - id: FoodBananaPeeled + sound: + path: /Audio/Effects/unwrap.ogg + +- type: entity + name: banana + parent: FoodBanana + suffix: Peeled + id: FoodBananaPeeled + description: Rich in potassium. + components: + - type: Food + trash: TrashBananaPeel + - type: Sprite + sprite: Objects/Specific/Hydroponics/banana.rsi + state: peeled + - type: SpawnItemsOnUse + uses: 0 - type: entity name: banana peel diff --git a/Resources/Textures/Objects/Specific/Hydroponics/banana.rsi/meta.json b/Resources/Textures/Objects/Specific/Hydroponics/banana.rsi/meta.json index 88c277fde7..db7aff4573 100644 --- a/Resources/Textures/Objects/Specific/Hydroponics/banana.rsi/meta.json +++ b/Resources/Textures/Objects/Specific/Hydroponics/banana.rsi/meta.json @@ -1,7 +1,7 @@ { "version": 1, "license": "CC-BY-SA-3.0", - "copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/6be7633abca9f1a51cab1020500cf0776ce78e5c", + "copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/6be7633abca9f1a51cab1020500cf0776ce78e5c, peeled by potato1234x", "size": { "x": 32, "y": 32 @@ -25,6 +25,9 @@ { "name": "peel3" }, + { + "name": "peeled" + }, { "name": "peel-inhand-left", "directions": 4 diff --git a/Resources/Textures/Objects/Specific/Hydroponics/banana.rsi/peeled.png b/Resources/Textures/Objects/Specific/Hydroponics/banana.rsi/peeled.png new file mode 100644 index 0000000000000000000000000000000000000000..d6f7bcc9260deeb4a78e3863327b81a7ee3af1b6 GIT binary patch literal 348 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyjKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCik#1AIbUU));p@B8)NAJ6^!_u}852RBdlub*#H883fnkHx*4o+p>S$}z$3Dlfr0NJ2s7@OnEe(g zIMvg|F~q|EZC{{}lOl)fRgr)jDxmuq7(8A5T-G@yGywp)sF2_Q literal 0 HcmV?d00001