# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 GreenArg7 <GreenArc12@outlook.com>
# SPDX-FileCopyrightText: 2025 gluesniffler <159397573+gluesniffler@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 gluesniffler <linebarrelerenthusiast@gmail.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
# Goobstation
- type: entity
  parent: [BaseItem, BaseHonkraband]
  id: BananiumSword
  name: bananium energy sword
  description: A very loud & slippery sword with a beam made of pure, concentrated bananium. Slips un-galoshed targets like butter.
  components:
    - type: EnergySword
      colorOptions:
        - Yellow
    - type: ItemToggle
      soundActivate:
        path: /Audio/_Goobstation/Weapons/Banana/bananaebladeon.ogg
      soundDeactivate:
        path: /Audio/_Goobstation/Weapons/Banana/bananaebladeoff.ogg
    - type: ItemToggleActiveSound
      activeSound:
        path: /Audio/Weapons/ebladehum.ogg
    - type: Sprite
      sprite: _Goobstation/Objects/Weapons/Melee/e_sword_bananium.rsi
      layers:
      - state: e_sword
      - state: e_sword_blade
        color: "#FFFF00"
        visible: false
        shader: unshaded
        map: [ "blade" ]
    - type: Item
      size: Small
      sprite: Objects/Weapons/Melee/e_sword-inhands.rsi
    - type: UseDelay
      delay: 1.0
    - type: PointLight
      enabled: false
      radius: 2
      energy: 2
      color: white
      netsync: false
    - type: Appearance
    - type: ToggleableVisuals
      spriteLayer: blade
      inhandVisuals:
        left:
          - state: inhand-left-blade
            shader: unshaded
        right:
          - state: inhand-right-blade
            shader: unshaded
    - type: ItemTogglePointLight
    - type: DisarmMalus
      malus: 0
    - type: KnockdownOnHit
      duration: 0.2
      dropHeldItemsBehavior: DropIfStanding # Goob edit
    - type: TelescopicBaton
    - type: MeleeWeapon
      wideAnimationRotation: -135
      damage:
        types:
          Blunt: 0
    - type: ItemToggleMeleeWeapon
      activatedSoundOnHit:
        path: /Audio/_Goobstation/Weapons/Banana/bananaeblade1.ogg
        params:
          variation: 0.250
      activatedSoundOnHitNoDamage:
        path: /Audio/_Goobstation/Weapons/Banana/bananaeblade1.ogg
        params:
          variation: 0.250
      activatedSoundOnSwing:
        path: /Audio/Weapons/eblademiss.ogg
        params:
          variation: 0.125
    - type: Construction
      graph: BananiumSword
      node: bananiumSword

- type: entity
  parent: EnergySwordDouble
  id: EnergySwordDoubleRed
  suffix: Red
  components:
  - type: EnergySword
    colorOptions:
    - "#EB212E" # can only be red

- type: entity
  parent: EnergySword
  id: EnergySwordBlue
  suffix: Blue
  components:
  - type: EnergySword
    colorOptions:
    - "#2E67F8" # can only be blue
