[
  {
    "id": "eoc_bio_superheater_on",
    "type": "effect_on_condition",
    "effect": { "u_add_var": "on", "type": "bio", "context": "superheater", "value": "yes" }
  },
  {
    "id": "eoc_bio_superheater_off",
    "type": "effect_on_condition",
    "effect": { "u_lose_var": "on", "type": "bio", "context": "superheater" }
  },
  {
    "id": "eoc_bio_blade_electric_on",
    "type": "effect_on_condition",
    "effect": { "u_add_var": "on", "type": "bio", "context": "blade_electric", "value": "yes" }
  },
  {
    "id": "eoc_bio_blade_electric_off",
    "type": "effect_on_condition",
    "effect": { "u_lose_var": "on", "type": "bio", "context": "blade_electric" }
  },
  {
    "type": "effect_on_condition",
    "id": "afs_eoc_chembaseline",
    "effect": [
      { "u_lose_effect": "decreased_performance" },
      {
        "u_add_morale": "morale_afs_drugs",
        "bonus": 20,
        "max_bonus": 60,
        "duration": "36 hours",
        "decay_start": "24 hours"
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "afs_eoc_hangover_baseline",
    "effect": [
      { "u_add_effect": "decreased_performance", "duration": "6 hours" },
      { "u_add_effect": "disrupted_sleep", "duration": "8 hours" },
      {
        "u_add_morale": "morale_afs_drugs",
        "bonus": -20,
        "max_bonus": -60,
        "duration": "36 hours",
        "decay_start": "24 hours"
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "afs_eoc_chemspeed",
    "effect": [ { "u_lose_effect": "post_speed_injection" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "afs_eoc_hangover_speed",
    "effect": [
      { "u_add_effect": "post_speed_injection", "duration": "6 hours" },
      { "u_add_effect": "disrupted_sleep", "duration": "8 hours" },
      {
        "u_add_morale": "morale_afs_drugs",
        "bonus": -20,
        "max_bonus": -60,
        "duration": "36 hours",
        "decay_start": "24 hours"
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "afs_eoc_chemhealing",
    "effect": [ { "u_lose_effect": "post_healing_injection" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "afs_eoc_chemhealing_pkill",
    "condition": { "one_in_chance": 40 },
    "effect": [ { "math": [ "u_pain()", "--" ] } ]
  },
  {
    "type": "effect_on_condition",
    "id": "afs_eoc_hangover_healing",
    "effect": [
      { "u_add_effect": "post_healing_injection", "duration": "6 hours", "target_part": "torso" },
      { "arithmetic": [ { "u_val": "fatigue" }, "+=", { "const": 80 } ] },
      {
        "u_add_morale": "morale_afs_drugs",
        "bonus": -20,
        "max_bonus": -60,
        "duration": "36 hours",
        "decay_start": "24 hours"
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "afs_eoc_chemstrength",
    "effect": [ { "u_lose_effect": "post_strength_injection" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "afs_eoc_hangover_strength",
    "effect": [
      { "u_add_effect": "post_strength_injection", "duration": "6 hours" },
      { "arithmetic": [ { "u_val": "fatigue" }, "+=", { "const": 80 } ] },
      {
        "u_add_morale": "morale_afs_drugs",
        "bonus": -20,
        "max_bonus": -60,
        "duration": "36 hours",
        "decay_start": "24 hours"
      }
    ]
  }
]
