- type: reagent
  id: Zenthium
  name: reagent-name-zenthium
  desc: reagent-desc-zenthium
  physicalDesc: reagent-physical-desc-gaseous
  flavor: sweet
  color: "#008d8d"
  metabolisms:
    Gas:
      metabolismRate: 0.8
      effects:
      - !type:MovementSpeedModifier
        conditions:
        - !type:ReagentCondition
          reagent: Zenthium
          min: 0.4
        walkSpeedModifier: 1.18
        sprintSpeedModifier: 1.18
      - !type:HealthChange
        conditions:
        - !type:ReagentCondition
          reagent: Zenthium
          min: 1.5
        scaling: true
        ignoreResistances: true
        damage:
          types:
            Cellular: -0.2
      - !type:PopupMessage
        conditions:
        - !type:ReagentCondition
          reagent: Zenthium
          min: 0.5
        type: Local
        visualType: Medium
        messages: [ "Вы чувствуете лёгкую эйфорию", "Воздух кажется слишком сладким" ]
        probability: 0.08

- type: reagent
  id: Krypium
  name: reagent-name-krypium
  desc: reagent-desc-krypium
  physicalDesc: reagent-physical-desc-gaseous
  flavor: metallic
  color: "#82005d"
  metabolisms:
    Gas:
      metabolismRate: 0.6
      effects:
      - !type:MovementSpeedModifier
        conditions:
        - !type:ReagentCondition
          reagent: Krypium
          min: 0.8
        walkSpeedModifier: 0.65
        sprintSpeedModifier: 0.5
      # Полная защита от радиации
      - !type:HealthChange
        conditions:
        - !type:ReagentCondition
          reagent: Krypium
          min: 0.5
        scaling: true
        ignoreResistances: true
        damage:
          types:
            Radiation: -10.0
      - !type:PopupMessage
        conditions:
        - !type:ReagentCondition
          reagent: Krypium
          min: 0.6
        type: Local
        visualType: Medium
        messages: [ "Ваши мышцы тяжелеют...", "Тело будто наливается свинцом" ]
        probability: 0.07
      - !type:Jitter
        conditions:
        - !type:ReagentCondition
          reagent: Krypium
          min: 1.5  

- type: reagent
  id: Prallium
  name: reagent-name-prallium
  desc: reagent-desc-prallium
  physicalDesc: reagent-physical-desc-gaseous
  flavor: sweet
  color: "#a0ffff"
  metabolisms:
    Gas:
      metabolismRate: 0.35
      effects:
      - !type:Oxygenate
        factor: 12          # нужно в 12 раз меньше газа, чтобы нормально дышать. Надо рецепт поменять на плюоксу.
      - !type:PopupMessage
        conditions:
        - !type:ReagentCondition
          reagent: Prallium
          min: 0.3
        type: Local
        visualType: Medium
        messages: [ "Лёгкие наполняются чистым кислородом", "Дышать стало невероятно легко" ]
        probability: 0.1
      # Лёгкий негатив при сильной концентрации
      - !type:HealthChange
        conditions:
        - !type:ReagentCondition
          reagent: Prallium
          min: 1.8
        scaling: true
        damage:
          types:
            Poison: 0.25

- type: reagent
  id: Chaoson
  name: reagent-name-chaoson
  desc: reagent-desc-chaoson
  physicalDesc: reagent-physical-desc-funny
  flavor: weh
  color: "#ff69b4"
  metabolisms:
    Gas:
      metabolismRate: 0.4
      effects:
        # Ржет
      - !type:Emote
        conditions:
        - !type:ReagentCondition
          reagent: Chaoson
          min: 0.2
        emote: Laugh
        showInChat: true
        probability: 0.6
      - !type:PopupMessage
        conditions:
        - !type:ReagentCondition
          reagent: Chaoson
          min: 0.4
        type: Local
        visualType: Large
        messages: [ "laughter-effect-control-laughter" ]
        probability: 0.18
        # Орет
      - !type:Emote
        conditions:
        - !type:ReagentCondition
          reagent: Chaoson
          min: 0.2
        emote: Scream
        showInChat: true
        probability: 0.6
        # Вехает
      - !type:Emote
        conditions:
        - !type:ReagentCondition
          reagent: Chaoson
          min: 0.5
        emote: Weh
        showInChat: true
        force: true
        probability: 0.6
      - !type:PopupMessage
        conditions:
        - !type:ReagentCondition
          reagent: Chaoson
          min: 0.6
        type: Local
        visualType: Medium
        messages: [ "Вех!", Вееееееееех~", "ВЕХ ВЕх веХ!", "ВЕЕЕЕЕЕх!!!" ]
        probability: 0.6
      # Бухой и трясется
      - !type:Drunk
        conditions:
        - !type:ReagentCondition
          reagent: Chaoson
          min: 0.7
        boozePower: 5
      - !type:Jitter
        conditions:
        - !type:ReagentCondition
          reagent: Chaoson
          min: 1.1
      # Полиморф в ящерицу при очень высокой концентрации
      - !type:Polymorph
        conditions:
        - !type:ReagentCondition
          reagent: Chaoson
          min: 45
        prototype: ArtifactLizard

- type: reagent
  id: Garodin
  name: reagent-name-garodin
  desc: reagent-desc-garodin
  physicalDesc: reagent-physical-desc-gaseous
  flavor: bitter
  color: "#f0bb29"
  metabolisms:
    Gas:
      metabolismRate: 0.6
      effects:
      - !type:HealthChange
        conditions:
        - !type:ReagentCondition
          reagent: Garodin
          min: 0.3
        scaling: true
        ignoreResistances: true
        damage:
          types:
            Poison: 0.4          # небольшой, но постоянный урон ядом
      - !type:PopupMessage
        conditions:
        - !type:ReagentCondition
          reagent: Garodin
          min: 0.6
        type: Local
        visualType: Medium
        messages: [ "В горле немного щиплет...", "Воздух кажется тяжёлым и горьким" ]
        probability: 0.08

- type: reagent
  id: Baratrium
  name: reagent-name-baratrium
  desc: reagent-desc-baratrium
  physicalDesc: reagent-physical-desc-gaseous
  flavor: metallic
  color: "#3300eb"
  metabolisms:
    Gas:
      metabolismRate: 0.5
      effects:
      # временный иммунитет к давлению
      - !type:GenericStatusEffect
        conditions:
        - !type:ReagentCondition
          reagent: Baratrium
          min: 0.5
        key: PressureImmunity
        component: PressureImmunity
        type: Add
        time: 1.0
      - !type:PopupMessage
        conditions:
        - !type:ReagentCondition
          reagent: Baratrium
          min: 0.4
        type: Local
        visualType: Medium
        messages: [ "Вы чувствуете, как тело становится гораздо устойчивее к давлению" ]
        probability: 0.1

- type: reagent
  id: Ethylium
  name: reagent-name-ethylium
  desc: reagent-desc-ethylium
  physicalDesc: reagent-physical-desc-gaseous
  flavor: alcohol
  color: "#ff1493"
  metabolisms:
    Gas:
      metabolismRate: 0.45
      effects:
      # Очень сильное опьянение
      - !type:Drunk
        conditions:
        - !type:ReagentCondition
          reagent: Ethylium
          min: 0.3
        boozePower: 80
      # Небольшой клеточный урон
      - !type:HealthChange
        conditions:
        - !type:ReagentCondition
          reagent: Ethylium
          min: 0.5
        scaling: true
        ignoreResistances: true
        damage:
          types:
            Cellular: 0.02
      - !type:PopupMessage
        conditions:
        - !type:ReagentCondition
          reagent: Ethylium
          min: 0.6
        type: Local
        visualType: Large
        messages: [ "В голове приятно шумит...", "Мир становится таким... интересным..." ]
        probability: 0.12
      - !type:Jitter
        conditions:
        - !type:ReagentCondition
          reagent: Ethylium
          min: 1.2

- type: reagent
  id: Zimmera
  name: reagent-name-zimmera
  desc: reagent-desc-zimmera
  physicalDesc: reagent-physical-desc-gaseous
  flavor: sharp
  color: "#8a2be2"
  metabolisms:
    Gas:
      metabolismRate: 0.65
      effects:
      - !type:HealthChange
        conditions:
        - !type:ReagentCondition
          reagent: Zimmera
          min: 0.4
        scaling: true
        ignoreResistances: true
        damage:
          types:
            Slash: 0.8
            Piercing: 0.3
      - !type:PopupMessage
        conditions:
        - !type:ReagentCondition
          reagent: Zimmera
          min: 0.6
        type: Local
        visualType: MediumCaution
        messages: [ "В горле и лёгких сильно жжёт, будто режут изнутри", "Кажется, будто воздух режет лёгкие" ]
        probability: 0.15

- type: reagent
  id: Framel
  name: reagent-name-framel
  desc: reagent-desc-framel
  physicalDesc: reagent-physical-desc-gaseous
  flavor: sweet
  color: "#00ffaa"
  metabolisms:
    Gas:
      metabolismRate: 0.4
      effects:
      # Питание + утоление жажды
      - !type:SatiateHunger
      - !type:SatiateThirst
      # DexalinPlus эффект
      - !type:HealthChange
        conditions:
        - !type:ReagentCondition
          reagent: Framel
          min: 0.3
        scaling: true
        ignoreResistances: true
        damage:
          types:
            Bloodloss: -2.2
      # Лёгкое лечение Mangleness
      - !type:HealthChange
        conditions:
        - !type:ReagentCondition
          reagent: Framel
          min: 0.3
        scaling: true
        damage:
          types:
            Mangleness: -0.35
      - !type:PopupMessage
        conditions:
        - !type:ReagentCondition
          reagent: Framel
          min: 0.5
        type: Local
        visualType: Medium
        messages: [ "Вы чувствуете приятную сытость и лёгкость в дыхании", "Воздух кажется удивительно питательным" ]
        probability: 0.1

- type: reagent
  id: Klemennon
  name: reagent-name-klemennon
  desc: reagent-desc-klemennon
  physicalDesc: reagent-physical-desc-electric
  flavor: metallic
  color: "#0062b8"
  metabolisms:
    Gas:
      metabolismRate: 0.55
      effects:
      - !type:ModifyStatusEffect
        effectProto: StatusEffectStunned
        time: 0.5
        type: Remove
      - !type:ModifyStatusEffect
        effectProto: StatusEffectKnockDown
        time: 0.5
        type: Remove
      - !type:HealthChange
        conditions:
        - !type:ReagentCondition
          reagent: Klemennon
          min: 0.4
        scaling: true
        ignoreResistances: true
        damage:
          types:
            Shock: 1.5
      - !type:Jitter
        conditions:
        - !type:ReagentCondition
          reagent: Klemennon
          min: 0.5
      - !type:PopupMessage
        conditions:
        - !type:ReagentCondition
          reagent: Klemennon
          min: 0.45
        type: Local
        visualType: MediumCaution
        messages: [ "Вас сильно бьёт током!", "Тело сводит судорогой от разряда!" ]
        probability: 0.25

- type: entity
  parent: MobStatusEffectDebuff
  id: StatusEffectKnockDown
  name: Knocked
  components:
  - type: StatusEffect
    whitelist:
      components:
      - MobState
    blacklist:
      tags:
      - StunImmune
  - type: StatusEffectAlert
    alert: Knockdown
  - type: KnockdownStatusEffect

- type: reagent
  id: ProtoUltimium
  name: reagent-name-protoultimium
  desc: reagent-desc-protoultimium
  physicalDesc: reagent-physical-desc-necrotic
  flavor: bitter
  color: "#b85959"
  metabolisms:
    Gas:
      metabolismRate: 0.6
      effects:
      - !type:HealthChange
        conditions:
        - !type:ReagentCondition
          reagent: ProtoUltimium
          min: 0.35
        scaling: true
        ignoreResistances: true
        damage:
          types:
            Poison: 1.2
      - !type:PopupMessage
        conditions:
        - !type:ReagentCondition
          reagent: ProtoUltimium
          min: 0.5
        type: Local
        visualType: MediumCaution
        messages: [ "Ваше тело жжёт изнутри...", "Вы чувствуете сильное отравление" ]
        probability: 0.15

- type: reagent
  id: ZimmerousFrezonite
  name: reagent-name-zimmerousfrezonite
  desc: reagent-desc-zimmerousfrezonite
  physicalDesc: reagent-physical-desc-frosty
  flavor: cold
  color: "#5ea1b4"
  metabolisms:
    Gas:
      metabolismRate: 0.45
      effects:
      - !type:HealthChange
        conditions:
        - !type:ReagentCondition
          reagent: ZimmerousFrezonite
          min: 0.3
        scaling: true
        ignoreResistances: true
        damage:
          types:
            Cold: 2.0          # большой холодный урон
            Slash: 0.2
            Piercing: 0.2

- type: reagent
  id: AntiUltimium
  name: reagent-name-anti-ultimium
  desc: reagent-desc-anti-ultimium
  physicalDesc: reagent-physical-desc-volatile
  flavor: bitter
  color: "#1a1a1a"
  metabolisms:
    Gas:
      metabolismRate: 0.35
      effects:
      - !type:HealthChange
        conditions:
        - !type:ReagentCondition
          reagent: AntiUltimium
          min: 0.25
        scaling: true
        ignoreResistances: true
        damage:
          types:
            Slash: 0.5
            Piercing: 0.5
            Blunt: 0.5
            Poison: 0.5
            Radiation: 0.5
            Cellular: 0.5
            Shock: 0.5
            Heat: 0.5
            Asphyxiation: 0.5
            Bloodloss: 0.5
      - !type:PopupMessage
        conditions:
        - !type:ReagentCondition
          reagent: AntiUltimium
          min: 0.4
        type: Local
        visualType: LargeCaution
        messages: [ "Ваше тело разрушается изнутри!", "Вы чувствуете, как всё болит одновременно..." ]
        probability: 0.2

- type: reagent
  id: Ultimium
  name: reagent-name-ultimium
  desc: reagent-desc-ultimium
  physicalDesc: reagent-physical-desc-starry
  flavor: sweet
  color: "#62ff43"
  metabolisms:
    Gas:
      metabolismRate: 0.25
      effects:
      - !type:Oxygenate
        factor: 5.5          # нужно в 5.5 раз меньше газа, чтобы нормально дышать
      # Лечение ВСЕГО урона
      - !type:HealthChange
        conditions:
        - !type:ReagentCondition
          reagent: Ultimium
          min: 0.1
        scaling: true
        ignoreResistances: true
        damage:
          types:
            Slash: -1.0
            Piercing: -1.0
            Blunt: -1.0
            Poison: -1.0
            Radiation: -1.0
            Cellular: -1.0
            Shock: -1.0
            Heat: -1.0
            Asphyxiation: -1.0
            Bloodloss: -1.0
      # Снятие алкоголя и сонливости
      - !type:AdjustReagent
        conditions:
        - !type:ReagentCondition
          reagent: Ultimium
          min: 0.1
        reagent: Ethanol
        amount: -8
      - !type:ModifyStatusEffect
        conditions:
        - !type:ReagentCondition
          reagent: Ultimium
          min: 0.1
        effectProto: StatusEffectDrunk
        time: 6.0
        type: Remove
      - !type:GenericStatusEffect
        conditions:
        - !type:ReagentCondition
          reagent: Ultimium
          min: 0.1
        key: ForcedSleep
        component: ForcedSleeping
        type: Remove
      # Долгий иммунитет к давлению
      - !type:GenericStatusEffect
        conditions:
        - !type:ReagentCondition
          reagent: Ultimium
          min: 0.1
        key: PressureImmunity
        component: PressureImmunity
        type: Add
        time: 25.0
      - !type:PopupMessage
        conditions:
        - !type:ReagentCondition
          reagent: Ultimium
          min: 0.15
        type: Local
        visualType: Medium
        messages: [ "Вы чувствуете невероятное облегчение во всём теле", "Все раны и боль быстро отступают" ]
        probability: 0.15

- type: reagent
  id: Permafrost
  name: reagent-name-permafrost
  desc: reagent-desc-permafrost
  physicalDesc: reagent-physical-desc-cold
  flavor: sweet
  color: "#43ddff"
  metabolisms:
    Gas:
      metabolismRate: 0.25
      effects:
      - !type:HealthChange
        conditions:
        - !type:ReagentCondition
          reagent: Permafrost
          min: 0.1
        scaling: true
        ignoreResistances: true
        damage:
          types:
            Cold: 5.0
      - !type:PopupMessage
        conditions:
        - !type:ReagentCondition
          reagent: Permafrost
          min: 0.15
        type: Local
        visualType: Medium
        messages: [ "Вы чувствуете невероятное облегчение во всём теле", "Все раны и боль быстро отступают" ]
        probability: 0.15

# - type: reagent
#   id: Riminon
#   name: reagent-name-riminon
#   desc: reagent-desc-riminon
#   physicalDesc: reagent-physical-desc-frosty
#   flavor: cold
#   color: "#a5f2ff"
#   metabolisms:
#     Gas:
#       metabolismRate: 0.4
#       effects:
#       # - !type:GenericStatusEffect
#       #   conditions:
#       #   - !type:ReagentCondition
#       #     reagent: Riminon
#       #     min: 0.25
#       #   key: RiminonTemperatureResistance
#       #   component: RiminonTemperatureResistance
#       #   type: Add
#       #   time: 6.0
#       # - !type:ModifyStatusEffect
#       #   effectProto: StatusEffectRiminonResistance
#       #   time: 5.0
#       #   Type: Remove
#       - !type:PopupMessage
#         conditions:
#         - !type:ReagentCondition
#           reagent: Riminon
#           min: 0.3
#         type: Local
#         visualType: Medium
#         messages: [ "Вы чувствуете, как тело становится устойчивее к холоду" ]
#         probability: 0.1

- type: reagent
  id: AxoNoblium
  name: reagent-name-axonoblium
  desc: reagent-desc-axonoblium
  physicalDesc: reagent-physical-desc-gaseous
  flavor: bitter
  color: "#ff4500"
  metabolisms:
    Gas:
      metabolismRate: 0.6
      effects:
      - !type:HealthChange
        conditions:
        - !type:ReagentCondition
          reagent: AxoNoblium
          min: 0.3
        scaling: true
        ignoreResistances: true
        damage:
          types:
            Heat: 2.0
      - !type:PopupMessage
        conditions:
        - !type:ReagentCondition
          reagent: AxoNoblium
          min: 0.3
        type: Local
        visualType: Medium
        messages: [ "Вы чувствуете как ваши лёгкие выгорают!" ]
        probability: 0.1

- type: reagent
  id: Riminon
  name: reagent-name-riminon
  desc: reagent-desc-riminon
  physicalDesc: reagent-physical-desc-neural
  flavor: mindful
  color: "#ff00ff"
  metabolisms:
    Gas:
      metabolismRate: 1
      effects:
      # - !type:GenericStatusEffect
      #   conditions:
      #   - !type:ReagentCondition
      #     reagent: Riminon
      #     min: 0.3
      #   key: SeeingRainbows
      #   component: SeeingRainbows
      #   type: Add
      #   time: 15
      - !type:MovementSpeedModifier
        conditions:
        - !type:ReagentCondition
          reagent: Zenthium
          min: 0.4
        walkSpeedModifier: 0.5
        sprintSpeedModifier: 0.5
      - !type:HealthChange
        ignoreResistances: true
        damage:
          types:
            Cellular: 1
      - !type:ModifyStatusEffect
        effectProto: StatusEffectSeeingRainbow
        type: Add
        time: 15
      - !type:Drunk
        boozePower: 15
      - !type:Oxygenate
        factor: 1
      - !type:PopupMessage
        conditions:
        - !type:ReagentCondition
          reagent: Riminon
          min: 0.1
        type: Local
        visualType: Large
        messages: 
          [
          "Вы словили ОЧЕНЬ сильный трип",
          "Робастность покидает вас...",
          "Апстрим 'завтра'",
          "ЭСы - это миф. Эсов не существует",
          "Вы словили ОЧЕНЬ сильный трип",
          "Не баг, это фича",
          "Спектр вульпа",
          "Разработчики тоже люди",
          "Вы словили ОЧЕНЬ сильный трип",
          "Антажко ликвидировано",
          "ТЕСЛАЛУУУУУУУУУУЗ",
          "когда-нибудь вам выпадет ядер",
          "Вы словили ОЧЕНЬ сильный трип",
          "Админы уже в курсе",
          "Я делал эти газы слишком долго...",
          "jgznm yt gjvtyzk hfcrkflre!!!",
          "Вы словили ОЧЕНЬ сильный трип"
          ]
        probability: 1
