From 9224e32989b510d2c0c4caa7fa7b68d252ab8804 Mon Sep 17 00:00:00 2001 From: crazybrain23 <44417085+crazybrain23@users.noreply.github.com> Date: Sun, 20 Aug 2023 21:58:22 +0100 Subject: [PATCH] Add unarmed stage to explosive banana peel (#19321) --- .../Prototypes/Catalog/uplink_catalog.yml | 3 +- .../Objects/Consumable/Food/produce.yml | 22 ----------- .../Entities/Objects/Weapons/Bombs/funny.yml | 38 +++++++++++++++++++ 3 files changed, 40 insertions(+), 23 deletions(-) diff --git a/Resources/Prototypes/Catalog/uplink_catalog.yml b/Resources/Prototypes/Catalog/uplink_catalog.yml index 75e9cbfa72..7ebf25eb93 100644 --- a/Resources/Prototypes/Catalog/uplink_catalog.yml +++ b/Resources/Prototypes/Catalog/uplink_catalog.yml @@ -912,7 +912,8 @@ id: uplinkBananaPeelExplosive name: uplink-banana-peel-explosive-name description: uplink-banana-peel-explosive-desc - productEntity: TrashBananaPeelExplosive + icon: { sprite: Objects/Specific/Hydroponics/banana.rsi, state: peel } + productEntity: TrashBananaPeelExplosiveUnarmed cost: Telecrystal: 2 categories: diff --git a/Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml b/Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml index a4c61db88a..3dbff39133 100644 --- a/Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml +++ b/Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml @@ -233,28 +233,6 @@ paralyzeTime: 4 launchForwardsMultiplier: 2 -- type: entity - name: banana peel - suffix: Explosive - parent: TrashBananaPeel - id: TrashBananaPeelExplosive - components: - - type: Sprite - sprite: Objects/Specific/Hydroponics/banana.rsi - layers: - - state: peel - - state: primed - shader: unshaded - - type: TriggerOnSlip - - type: ExplodeOnTrigger - - type: Explosive - explosionType: Default - maxIntensity: 2 - totalIntensity: 10 - canCreateVacuum: false - - type: DeleteOnTrigger - - type: AnimationPlayer - - type: entity name: carrot parent: FoodProduceBase diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Bombs/funny.yml b/Resources/Prototypes/Entities/Objects/Weapons/Bombs/funny.yml index e6f35892ba..a34462d04c 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Bombs/funny.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Bombs/funny.yml @@ -66,3 +66,41 @@ tags: - HideContextMenu - type: AnimationPlayer + +- type: entity + name: banana peel + suffix: Explosive + parent: TrashBananaPeel + id: TrashBananaPeelExplosive + components: + - type: Sprite + sprite: Objects/Specific/Hydroponics/banana.rsi + layers: + - state: peel + - state: primed + shader: unshaded + - type: TriggerOnSlip + - type: ExplodeOnTrigger + - type: Explosive + explosionType: Default + maxIntensity: 2 + totalIntensity: 10 + canCreateVacuum: false + - type: DeleteOnTrigger + - type: AnimationPlayer + +- type: entity + parent: BaseItem + id: TrashBananaPeelExplosiveUnarmed + name: banana + suffix: Unarmed + description: There's something unusual about this banana. + components: + - type: Sprite + sprite: Objects/Specific/Hydroponics/banana.rsi + state: produce + - type: SpawnItemsOnUse + items: + - id: TrashBananaPeelExplosive + sound: + path: /Audio/Effects/unwrap.ogg