# SPDX-License-Identifier: AGPL-3.0-or-later

- type: entity
  parent: BaseAction
  id: ActionKnock
  name: Knock
  description: Opens nearby doors and lockers. # Goob edit
  components:
  - type: Action
    raiseOnUser: true # Goobstation
    checkCanInteract: false # Goobstation
    useDelay: 10
    itemIconStyle: BigAction
    sound: !type:SoundPathSpecifier
      path: /Audio/Magic/knock.ogg
    icon:
      sprite: _Goobstation/Wizard/actions.rsi # Goob edit
      state: knock
  - type: InstantAction
    event: !type:KnockSpellEvent
      range: 3 # Goob edit
  - type: Magic # Goobstation
    requiresSpeech: true
    school: Transmutation
  - type: ActionUpgrade
    effectedLevels:
      2: ActionKnockII
      3: ActionKnockIII
  - type: SpeakOnAction
    sentence: action-speech-spell-knock
