# SPDX-FileCopyrightText: 2024 AJCM <AJCM@tutanota.com>
# SPDX-FileCopyrightText: 2024 Alex Evgrashin <aevgrashin@yandex.ru>
# SPDX-FileCopyrightText: 2024 Alex Pavlenko <diraven@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Alice "Arimah" Heurlin <30327355+arimah@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 ArkiveDev <95712736+ArkiveDev@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Boaz1111 <149967078+Boaz1111@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Brandon Hu <103440971+Brandon-Huu@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Chief-Engineer <119664036+Chief-Engineer@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Cojoke <83733158+Cojoke-dot@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Doomsdrayk <robotdoughnut@comcast.net>
# SPDX-FileCopyrightText: 2024 DrEnzyme <DrEnzyme@gmail.com>
# SPDX-FileCopyrightText: 2024 DrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Ed <96445749+TheShuEd@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Elysium206 <151651971+Elysium206@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Emisse <99158783+Emisse@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Eoin Mcloughlin <helloworld@eoinrul.es>
# SPDX-FileCopyrightText: 2024 Errant <35878406+Errant-4@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Flareguy <78941145+Flareguy@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Floofi <126319569+Shadowtheprotogen546@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Ghagliiarghii <68826635+Ghagliiarghii@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 HS <81934438+HolySSSS@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Hannah Giovanna Dawson <karakkaraz@gmail.com>
# SPDX-FileCopyrightText: 2024 IProduceWidgets <107586145+IProduceWidgets@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 K-Dynamic <20566341+K-Dynamic@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Kevin Zheng <kevinz5000@gmail.com>
# SPDX-FileCopyrightText: 2024 Ko4ergaPunk <62609550+Ko4ergaPunk@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Leon Friedrich <60421075+ElectroJr@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 MetalSage <74924875+MetalSage@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 MetalSage <metalsage.official@gmail.com>
# SPDX-FileCopyrightText: 2024 MilenVolf <63782763+MilenVolf@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Mr. 27 <45323883+Dutch-VanDerLinde@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 MureixloI <132683811+MureixloI@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 PJBot <pieterjan.briers+bot@gmail.com>
# SPDX-FileCopyrightText: 2024 Partmedia <kevinz5000@gmail.com>
# SPDX-FileCopyrightText: 2024 Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
# SPDX-FileCopyrightText: 2024 Plykiya <58439124+Plykiya@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Redfire1331 <125223432+Redfire1331@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Rouge2t7 <81053047+Sarahon@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Tayrtahn <tayrtahn@gmail.com>
# SPDX-FileCopyrightText: 2024 Truoizys <153248924+Truoizys@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 TsjipTsjip <19798667+TsjipTsjip@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Ubaser <134914314+UbaserB@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Vasilis <vasilis@pikachu.systems>
# SPDX-FileCopyrightText: 2024 WarMechanic <69510347+WarMechanic@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 beck-thompson <107373427+beck-thompson@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 deathride58 <deathride58@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 deltanedas <39013340+deltanedas@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 deltanedas <@deltanedas:kde.org>
# SPDX-FileCopyrightText: 2024 eoineoineoin <github@eoinrul.es>
# SPDX-FileCopyrightText: 2024 github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 lzk <124214523+lzk228@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 marbow <152051971+marboww@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 metalgearsloth <comedian_vs_clown@hotmail.com>
# SPDX-FileCopyrightText: 2024 mhamster <81412348+mhamsterr@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 neutrino <67447925+neutrino-laser@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 nikthechampiongr <32041239+nikthechampiongr@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 osjarw <62134478+osjarw@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 plykiya <plykiya@protonmail.com>
# SPDX-FileCopyrightText: 2024 redfire1331 <Redfire1331@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 slarticodefast <161409025+slarticodefast@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Арт <123451459+JustArt1m@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Aiden <aiden@djkraz.com>
# SPDX-FileCopyrightText: 2025 Ilya246 <57039557+Ilya246@users.noreply.github.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: weightedRandom
  id: AnomalyBehaviorList
  weights:
  #safe
    Slow: 0.5
    Light: 0.5
    FullSafe: 0.1
  #balanced
    Balanced: 3
    DelayedForce: 1
    Rapid: 1
    BalancedSecret: 1
    Reflect: 1
    NonSensivity: 1
    Sensivity: 1
  #Hard
    Fast: 0.5
    Strenght: 0.5
    Inconstancy: 0.5
    InconstancyParticle: 0.5
    FullUnknown: 0.5
    Jumping: 0.3
    Invisibility: 0.5
  #Complex
    FastUnknown: 0.2
    JumpingUnknown: 0.1
    InconstancyParticleUnknown: 0.1
    InvisibilityJumping: 0.1


# Easy x0.5 point production

- type: anomalyBehavior
  id: FullSafe
  pulseFrequencyModifier: 3
  pulsePowerModifier: 0.5
  earnPointModifier: 0.05
  description: anomaly-behavior-safe

- type: anomalyBehavior
  id: Slow
  pulseFrequencyModifier: 2
  earnPointModifier: 0.5
  description: anomaly-behavior-slow

- type: anomalyBehavior
  id: Light
  pulsePowerModifier: 0.5
  earnPointModifier: 0.5
  description: anomaly-behavior-light

# Balanced x1 point production

- type: anomalyBehavior
  id: Balanced
  earnPointModifier: 1
  description: anomaly-behavior-balanced

- type: anomalyBehavior
  id: DelayedForce
  earnPointModifier: 1.15
  description: anomaly-behavior-delayed-force
  pulseFrequencyModifier: 2
  pulsePowerModifier: 2
  
- type: anomalyBehavior
  id: Rapid
  earnPointModifier: 1.15
  description: anomaly-behavior-rapid
  pulseFrequencyModifier: 0.5
  pulsePowerModifier: 0.5

- type: anomalyBehavior
  id: BalancedSecret
  earnPointModifier: 1.2
  description: anomaly-behavior-secret
  components:
  - type: SecretDataAnomaly
    randomStartSecretMin: 2
    randomStartSecretMax: 3

- type: anomalyBehavior
  id: Reflect
  earnPointModifier: 1.1
  particleSensivity: 0.5
  description: anomaly-behavior-reflect
  components:
  - type: Reflect
    reflectProb: 0.5
    reflects:
      - Energy

- type: anomalyBehavior
  id: NonSensivity
  earnPointModifier: 0.8
  particleSensivity: 0.5
  description: anomaly-behavior-nonsensivity
  
- type: anomalyBehavior
  id: Sensivity
  earnPointModifier: 1.2
  particleSensivity: 1.5
  description: anomaly-behavior-sensivity

# Hard x2 point production

- type: anomalyBehavior
  id: Fast
  earnPointModifier: 1.9
  pulseFrequencyModifier: 0.5
  description: anomaly-behavior-fast

- type: anomalyBehavior
  id: Strenght
  pulsePowerModifier: 1.5
  earnPointModifier: 1.4
  description: anomaly-behavior-strenght

- type: anomalyBehavior
  id: Inconstancy
  earnPointModifier: 1.7
  description: anomaly-behavior-inconstancy
  components:
  - type: ShuffleParticlesAnomaly
    shuffleOnPulse: true
    prob: 1

- type: anomalyBehavior
  id: InconstancyParticle
  earnPointModifier: 1.8
  description: anomaly-behavior-inconstancy
  components:
  - type: ShuffleParticlesAnomaly
    shuffleOnParticleHit: true
    prob: 0.8

- type: anomalyBehavior
  id: Jumping
  earnPointModifier: 1.8
  description: anomaly-behavior-moving
  components:
  - type: ChaoticJump
    jumpMinInterval: 15
    jumpMaxInterval: 25
    rangeMin: 1
    rangeMax: 4
    effect: PuddleSparkle

- type: anomalyBehavior
  id: FullUnknown
  earnPointModifier: 1.9
  description: anomaly-behavior-secret
  components:
  - type: SecretDataAnomaly
    randomStartSecretMin: 4
    randomStartSecretMax: 6

- type: anomalyBehavior
  id: Invisibility
  earnPointModifier: 1.6
  description: anomaly-behavior-invisibility
  components:
  - type: Stealth
    minVisibility: -1 # Goobstation - Proper invisibility
    maxVisibility: 1.2
  - type: StealthOnMove
    passiveVisibilityRate: -0.37
    movementVisibilityRate: 0.20

# Complex Effects

- type: anomalyBehavior
  id: JumpingUnknown
  earnPointModifier: 1.9
  description: anomaly-behavior-moving
  components:
  - type: ChaoticJump
    jumpMinInterval: 15
    jumpMaxInterval: 25
    rangeMin: 1
    rangeMax: 1
    effect: PuddleSparkle
  - type: SecretDataAnomaly
    randomStartSecretMin: 3
    randomStartSecretMax: 5

- type: anomalyBehavior
  id: FastUnknown
  earnPointModifier: 1.9
  pulseFrequencyModifier: 0.5
  description: anomaly-behavior-fast
  components:
  - type: SecretDataAnomaly
    randomStartSecretMin: 3
    randomStartSecretMax: 5

- type: anomalyBehavior
  id: InconstancyParticleUnknown
  earnPointModifier: 1.95
  description: anomaly-behavior-inconstancy
  components:
  - type: ShuffleParticlesAnomaly
    shuffleOnParticleHit: true
    prob: 0.5
  - type: SecretDataAnomaly
    randomStartSecretMin: 3
    randomStartSecretMax: 5

- type: anomalyBehavior
  id: InvisibilityJumping
  earnPointModifier: 1.95
  description: anomaly-behavior-invisibility
  components:
  - type: ChaoticJump
    jumpMinInterval: 15
    jumpMaxInterval: 25
    rangeMin: 1
    rangeMax: 1
    effect: PuddleSparkle
  - type: Stealth
    minVisibility: -1 # Goobstation - Proper invisibility
    maxVisibility: 1.2
  - type: StealthOnMove
    passiveVisibilityRate: -0.37
    movementVisibilityRate: 0.20