- type: entity
  name: energy chainsword
  parent: [BaseMeleeWeaponEnergy, BaseSecurityContraband]
  id: CyberEnergyChainsword
  description: Slam this into the individual you wish to destroy, mentally and physically.
  components:
  - type: Sprite
    sprite: _Starlight/Objects/Weapons/Melee/cyberchainsaw.rsi
    layers:
    - state: cyberchainsawoff
    - state: cyberchainsaw
      color: "#FFFFFF"
      visible: false
      shader: unshaded
      map: [ "blade" ]
  - type: ItemToggleMeleeWeapon
    activatedSoundOnHit:
     path: /Audio/Weapons/chainsaw.ogg
     params:
       variation: 0.250
    activatedSoundOnHitNoDamage:
     path: /Audio/Weapons/chainsaw.ogg
     params:
       variation: 0.250
       volume: -10
    activatedSoundOnSwing:
     path: /Audio/Weapons/eblademiss.ogg
     params:
       variation: 0.125
    activatedDamage:
      types:
        Slash: 3
        Heat: 3
        Structural: 10
  - type: MeleeWeapon
    angle: 0
    wideAnimationRotation: -135
    attackRate: 4
    autoAttack: true
    damage:
      types:
        Blunt: 0.5
  - type: Item
    sprite: _Starlight/Objects/Weapons/Melee/cyberchainsaw.rsi
  - type: Scalpel
  - type: SurgeryTool
    successRate: 0.01
    startSound:
      path: /Audio/Weapons/chainsaw.ogg
    endSound:
      path: /Audio/Weapons/chainsaw.ogg
  - type: Reflect
    reflectProb: 0.1

#Mantis Blade
- type: entity
  name: mantis blade
  parent: [BaseItem, BaseSyndicateContraband]
  id: CyberMantisBlade
  description: A sharp blade that extended from your own arm, time to burn down a corporation.
  components:
  - type: Sprite
    sprite: _Starlight/Objects/Weapons/Melee/cybermantisblade.rsi
    state: cybermantisblade
  - type: Reflect
    reflectProb: 0.18
    spread: 260
    soundOnReflect: /Audio/_Starlight/Armor/Ricochet/ricochet1_1.ogg #armor_ricochet #collection
    reflects:
    - NonEnergy
  - type: MeleeWeapon
    wideAnimationRotation: -135
    attackRate: 2.4
    autoAttack: false
    damage:
      types:
        Slash: 12
        Structural: 20
    soundHit:
      path: /Audio/Weapons/block_metal1.ogg
    soundNoDamage:
      path: /Audio/Weapons/punchmiss.ogg
    soundSwing:
      path: /Audio/Weapons/punchmiss.ogg
  - type: Item
  - type: Sharp
  - type: Prying
    speedModifier: 1.25
    pryPowered: true
    useSound: /Audio/Items/jaws_pry.ogg

#Mantis Blade Max-Guard
- type: entity
  name: Max-Guard mantis blade
  parent: [BaseItem, BaseSecurityContraband]
  id: CyberMantisBladeMaxGuard
  description: A high-grade retractable blade integrated into the forearm, designed for rapid close-quarters takedowns and breaching in security operations.
  components:
  - type: Sprite
    sprite: _Starlight/Objects/Weapons/Melee/cybermantisblade.rsi
    state: cybermantisbladesec
  - type: Reflect
    reflectProb: 0.10
    spread: 260
    soundOnReflect: /Audio/_Starlight/Armor/Ricochet/ricochet1_1.ogg #armor_ricochet #collection
    reflects:
    - NonEnergy
  - type: MeleeWeapon
    wideAnimationRotation: -135
    attackRate: 2
    autoAttack: false
    damage:
      types:
        Slash: 9
        Structural: 10
    soundHit:
      path: /Audio/Weapons/block_metal1.ogg
    soundNoDamage:
      path: /Audio/Weapons/punchmiss.ogg
    soundSwing:
      path: /Audio/Weapons/punchmiss.ogg
  - type: Item
  - type: Sharp
  - type: Prying
    speedModifier: 1
    pryPowered: false
    useSound: /Audio/Items/jaws_pry.ogg

- type: entity
  name: G.O.R.I.L.L.A. gauntlet
  parent: BaseItem
  id: CyberGorillaArm
  categories: [ HideSpawnMenu ]
  description: A robust piece of research equipment. When powered with an anomaly core, a single blow can launch anomalous objects through the air.
  components:
  - type: Sprite
    sprite: Objects/Weapons/Melee/gorilla.rsi
    state: icon
  - type: Item
    size: Large
    storedSprite:
      state: storage
      sprite: Objects/Weapons/Melee/gorilla.rsi
  - type: MeleeWeapon
    attackRate: 0.5
    angle: 0
    bluntStaminaDamageFactor: 2
    animation: WeaponArcFist
    wideAnimationRotation: -135
    damage:
      types:
        Blunt: 20
    soundHit:
      path: "/Audio/Weapons/Guns/Gunshots/kinetic_accel.ogg"
  - type: CorePoweredThrower
  - type: MeleeThrowOnHit
    unanchorOnHit: Unanchorable
  - type: ItemSlots
    slots:
      core_slot:
        name: anomaly-gorilla-core-slot-name
        insertSound: /Audio/Weapons/Guns/MagIn/batrifle_magin.ogg
        ejectSound: /Audio/Weapons/Guns/MagOut/pistol_magout.ogg
        whitelist:
          components:
          - AnomalyCore
  - type: ContainerContainer
    containers:
      core_slot: !type:ContainerSlot
  - type: DamageOnAttackedProtection
    damageProtection:
      flatReductions:
        Heat: 100
        Cold: 100
        Radiation: 100
    slots: NONE
  - type: Prying
    speedModifier: 2
    pryPowered: true
  # Sunrise-start
  - type: Construction
    graph: UpgradeCyberGorilla
    node: upgraded
  # Sunrise-end

#G.O.R.I.L.L.A. cyber arm #Syndie Upgrade
- type: entity
  name: experimental G.O.R.I.L.L.A. gauntlet
  parent: [CyberGorillaArm, BaseScienceContraband]
  id: CyberGorillaArmUpgraded
  categories: [ HideSpawnMenu ]
  description: A reinforced cybernetic arm equipped with integrated G.O.R.I.L.L.A. gauntlet systems. When powered with an anomaly core, a single strike can hurl anomalous objects or your enemy just like its standalone counterpart.
  components:
  - type: Sprite
    sprite: Objects/Weapons/Melee/gorilla.rsi
    state: storage
  - type: HeldSpeedModifier
    walkModifier: 1
    sprintModifier: 0.9
  - type: Reflect
    reflectProb: 0.25
  - type: UseDelay
    delay: 1
  - type: UseDelayOnMeleeHit
  - type: MeleeWeapon
    attackRate: 1
    angle: 0
    bluntStaminaDamageFactor: 2
    animation: WeaponArcFist
    wideAnimationRotation: -135
    damage:
      types:
        Blunt: 30
        Structural: 25
    soundHit:
      path: "/Audio/Weapons/Guns/Gunshots/kinetic_accel.ogg"
  - type: MeleeThrowOnHit
    unanchorOnHit: Unanchorable
    stunTime: 1.5
  - type: Tool
    qualities:
      - Prying
    useSound: /Audio/Items/jaws_pry.ogg
  - type: ToolTileCompatible
    delay: 1
  - type: Prying
    speedModifier: 5
    pryPowered: true
    useSound: /Audio/Machines/airlock_creaking.ogg

# C.H.I.M.P. cyber arm
- type: entity
  name: C.H.I.M.P. handcannon
  parent: [BaseWeaponBatterySmall, BaseScienceContraband]
  id: CyberPistolCHIMP
  description: Just because it's a little C.H.I.M.P. doesn't mean it can't punch like an A.P.E.
  components:
  - type: Sprite
    sprite: Objects/Weapons/Guns/Revolvers/chimp.rsi
    layers:
    - state: base
      map: ["enum.GunVisualLayers.Base"]
    - state: mag-unshaded-1
      visible: false
      map: ["enum.GunVisualLayers.MagUnshaded"]
      shader: unshaded
  - type: Item
  - type: Appearance
  - type: MagazineVisuals
    magState: mag
    steps: 3
    zeroVisible: false
  - type: Clothing
    sprite: Objects/Weapons/Guns/Revolvers/chimp.rsi
  - type: Gun
    projectileSpeed: 10
    fireRate: 2
    soundGunshot:
      path: /Audio/Weapons/Guns/Gunshots/taser2.ogg
    bigTrigger: true
  - type: BatteryAmmoProvider
    proto: AnomalousParticleDeltaStrong
    fireCost: 100
  - type: BatteryWeaponFireModes
    fireModes:
    - proto: AnomalousParticleDeltaStrong
      fireCost: 100
    - proto: AnomalousParticleEpsilonStrong
      fireCost: 100
    - proto: AnomalousParticleZetaStrong
      fireCost: 100
    - proto: AnomalousParticleSigmaStrong
      fireCost: 100
  - type: BatterySelfRecharger
    autoRechargeRate: 25
    autoRechargePauseTime: 1

- type: entity #Syndie Upgrade of C.H.I.M.P. cyber arm
  name: experimental C.H.I.M.P. handcannon
  parent: [CyberPistolCHIMP, BaseSyndicateContraband]
  id: CyberPistolCHIMPUpgraded
  description: This C.H.I.M.P. seems to have a greater punch than usual...
  components:
  - type: BatteryWeaponFireModes
    fireModes:
    - proto: AnomalousParticleDeltaStrong
      fireCost: 100
    - proto: AnomalousParticleEpsilonStrong
      fireCost: 100
    - proto: AnomalousParticleOmegaStrong
      fireCost: 100
    - proto: AnomalousParticleZetaStrong
      fireCost: 100
    - proto: AnomalousParticleSigmaStrong
      fireCost: 100

# Laser pulser arms
- type: entity
  name: laser rapid emitter
  parent: [BaseWeaponBatterySmall, BaseSecurityContraband]
  id: CyberLaserEmitter
  description: A Nanotrasen forearm-mounted laser emitter. Optimized for high rate of fire and controlled output, providing reliable suppression against lightly armored threats while minimizing collateral damage.
  components:
  - type: HeldSpeedModifier
    walkModifier: 1
    sprintModifier: 0.85
  - type: Item
    size: Large
  - type: Sprite
    sprite: _Sunrise/Objects/Tools/items_cyborg.rsi
    layers:
    - state: laser_cyborg
      map: ["enum.GunVisualLayers.Base"]
    - state: laser_cyborg-unshaded-4
      map: ["enum.GunVisualLayers.MagUnshaded"]
      shader: unshaded
  - type: Gun
    fireRate: 10
    minAngle: 4.5
    maxAngle: 35
    angleIncrease: 2.35
    angleDecay: 12
    selectedMode: FullAuto
    availableModes:
    - FullAuto
    soundGunshot:
      path: /Audio/Weapons/Guns/Gunshots/laser.ogg
  - type: BatteryAmmoProvider
    proto: RedLightLaser
    fireCost: 75
  - type: BatterySelfRecharger
    autoRechargeRate: 120
    autoRechargePauseTime: 8
  - type: MagazineVisuals
    magState: laser_cyborg
    steps: 5
    zeroVisible: true
  - type: Appearance

#Grenade Thrower
- type: entity
  name: Grenade Thrower "Rumbler"
  parent: [WeaponGrenadeLauncherSecurity, BaseMajorContraband]
  id: CyberGrenadeThrower
  description: A single-shot, break-action integrated grenade launcher. Capable of firing a variety of grenades and hand grenades and small artillery casing.
  components:
  - type: Reflect
    reflectProb: 0.05
    spread: 120
    soundOnReflect: /Audio/_Starlight/Armor/Ricochet/ricochet1_1.ogg #armor_ricochet #collection
    reflects:
    - NonEnergy
  - type: HeldSpeedModifier
    walkModifier: 1
    sprintModifier: 0.8
  - type: Sprite
    sprite: _Sunrise/Objects/Weapons/Guns/Cyber/grenade_thrower.rsi
    layers:
      - state: base
        map: ["enum.GunVisualLayers.Base"]
  - type: Gun
    fireRate: 0.55
    minAngle: 6
    maxAngle: 18
    selectedMode: SemiAuto
    availableModes:
      - SemiAuto
    soundGunshot:
      path: /Audio/Weapons/Guns/Gunshots/ship_friendship.ogg
    projectileSpeed: 15
    bigTrigger: true
  - type: UseDelayOnShoot
  - type: UseDelay
    delay: 8
  - type: ItemSlots
    slots:
      gun_chamber:
        name: Chamber
        startingItem: GrenadeFlash
        priority: 1
        whitelist:
          tags:
          - Grenade
          - HandGrenadeAmmo
          - CartridgeAntiMateriel
          - ShellShotgun
          - ShellShotgunImprovised
  - type: KnockbackByUserTag
    doestContain:
      Resomi:
        knockback: 4
        staminaMultiplier: 30
      Felinid:
        knockback: 2 #half of what resomi take
        staminaMultiplier: 30
      AnomalyHost:
        knockback: 1 #half of what Xeno take
        staminaMultiplier: 25
      HumanoidXeno:
        knockback: 1
        staminaMultiplier: 20
      Predator:
        knockback: 1
        staminaMultiplier: 15

# Atmos Thrower
- type: entity
  name: Atmos grenade thrower
  parent: BaseWeaponBattery
  id: CyberGrenadeThrowerAtmos
  description: A one-of-a-kind prototype of emergency repair module mounted in arm that uses various engi grenade configurations.
  components:
  - type: Sprite
    sprite: _Sunrise/Objects/Tools/advanced_rcd.rsi
    state: icon
  - type: Gun
    fireRate: 2
    soundGunshot:
      path: /Audio/Weapons/Guns/Gunshots/grenade_launcher.ogg
    projectileSpeed: 15
    bigTrigger: true
  - type: Item
    size: Normal
  - type: BatteryAmmoProvider
    proto: AirGrenade
    fireCost: 130
  - type: BatteryWeaponFireModes
    fireModes:
    - proto: AirGrenade
      fireCost: 130
    - proto: MetalFoamGrenade
      fireCost: 260
  - type: Battery
    maxCharge: 500
    startingCharge: 500
  - type: BatterySelfRecharger
    autoRechargeRate: 10
  - type: KnockbackByUserTag
    doestContain:
      Resomi:
        knockback: 4
        staminaMultiplier: 25
      Felinid:
        knockback: 2 #half of what resomi take
        staminaMultiplier: 25
