[
  {
    "type": "COMESTIBLE",
    "id": "potion_fruit_apple",
    "name": { "str": "potion fruit (apple)", "str_pl": "potion fruits (apple)" },
    "description": "An apple infused with mana.  It will heal you if you eat it.",
    "copy-from": "apple",
    "comestible_type": "FOOD",
    "proportional": { "quench": 0.5, "calories": 0.5 },
    "spoils_in": "66 days 16 hours",
    "extend": { "flags": [ "NO_AUTO_CONSUME" ] },
    "use_action": {
      "type": "effect_on_conditions",
      "description": "Eat the apple potion fruit.",
      "effect_on_conditions": [ "EOC_POTION_FRUIT_APPLE" ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_POTION_FRUIT_APPLE",
    "effect": [ { "u_add_effect": "effect_pfruit_heal", "duration": { "math": [ "150 + rand(350)" ] } } ]
  },
  {
    "type": "COMESTIBLE",
    "id": "potion_fruit_peach",
    "name": { "str": "potion fruit (peach)", "str_pl": "potion fruits (peach)" },
    "description": "A peach infused with mana.  It will cure illness if you eat it.",
    "copy-from": "peach",
    "comestible_type": "FOOD",
    "proportional": { "quench": 0.5, "calories": 0.5 },
    "spoils_in": "30 days",
    "extend": { "flags": [ "NO_AUTO_CONSUME" ] },
    "use_action": {
      "type": "effect_on_conditions",
      "description": "Eat the peach potion fruit.",
      "effect_on_conditions": [ "EOC_POTION_FRUIT_PEACH" ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_POTION_FRUIT_PEACH",
    "effect": [ { "u_add_effect": "effect_pfruit_cure", "duration": "1 seconds" } ]
  },
  {
    "type": "COMESTIBLE",
    "id": "potion_fruit_pear",
    "name": { "str": "potion fruit (pear)", "str_pl": "potion fruits (pear)" },
    "description": "A pear infused with mana.  It will allow your blows to strike quicker if you eat it.",
    "copy-from": "pear",
    "comestible_type": "FOOD",
    "proportional": { "quench": 0.5, "calories": 0.5 },
    "spoils_in": "40 days",
    "extend": { "flags": [ "NO_AUTO_CONSUME" ] },
    "use_action": {
      "type": "effect_on_conditions",
      "description": "Eat the pear potion fruit.",
      "effect_on_conditions": [ "EOC_POTION_FRUIT_PEAR" ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_POTION_FRUIT_PEAR",
    "effect": [ { "u_add_effect": "effect_pfruit_attack_speed", "duration": { "math": [ "250 + rand(1500)" ] } } ]
  },
  {
    "type": "COMESTIBLE",
    "id": "potion_fruit_blackberries",
    "name": { "str": "handful of potion fruits (blackberries)", "str_pl": "handfuls of potion fruits (blackberries)" },
    "description": "A handful of blackberries infused with mana.  It will harm those who attack you if you eat it.",
    "copy-from": "blackberries",
    "comestible_type": "FOOD",
    "proportional": { "quench": 0.5, "calories": 0.5 },
    "spoils_in": "25 days",
    "extend": { "flags": [ "NO_AUTO_CONSUME" ] },
    "use_action": {
      "type": "effect_on_conditions",
      "description": "Eat the handful of blackberry potion fruits.",
      "effect_on_conditions": [ "EOC_POTION_FRUIT_BLACKBERRY" ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_POTION_FRUIT_BLACKBERRY",
    "effect": [ { "u_add_effect": "effect_pfruit_thorns", "duration": { "math": [ "500 + rand(1500)" ] } } ]
  },
  {
    "type": "COMESTIBLE",
    "id": "potion_fruit_raspberries",
    "name": { "str": "handful of potion fruits (raspberries)", "str_pl": "handfuls of potion fruits (raspberries)" },
    "description": "A handful of raspberries infused with mana.  It will lessen your pain if you eat it.",
    "copy-from": "raspberries",
    "comestible_type": "FOOD",
    "proportional": { "quench": 0.5, "calories": 0.5 },
    "spoils_in": "25 days",
    "extend": { "flags": [ "NO_AUTO_CONSUME" ] },
    "use_action": {
      "type": "effect_on_conditions",
      "description": "Eat the handful of raspberry potion fruits.",
      "effect_on_conditions": [ "EOC_POTION_FRUIT_RASPBERRY" ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_POTION_FRUIT_RASPBERRY",
    "effect": [ { "math": [ "u_pain()", "-=", "3" ] } ]
  },
  {
    "type": "COMESTIBLE",
    "id": "potion_fruit_strawberries",
    "name": { "str": "handful of potion fruits (strawberries)", "str_pl": "handfuls of potion fruits (strawberries)" },
    "description": "A handful of strawberries infused with mana.  It will keep you warm even on an icy-cold day.",
    "copy-from": "strawberries",
    "comestible_type": "FOOD",
    "proportional": { "quench": 0.5, "calories": 0.5 },
    "spoils_in": "25 days",
    "extend": { "flags": [ "NO_AUTO_CONSUME" ] },
    "use_action": {
      "type": "effect_on_conditions",
      "description": "Eat the handful of strawberry potion fruits.",
      "effect_on_conditions": [ "EOC_POTION_FRUIT_STRAWBERRY" ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_POTION_FRUIT_STRAWBERRY",
    "effect": [ { "u_add_effect": "effect_pfruit_keep_warm", "duration": { "math": [ "500 + rand(5000)" ] } } ]
  },
  {
    "type": "COMESTIBLE",
    "id": "potion_fruit_elderberries",
    "name": { "str": "handful of potion fruits (elderberries)", "str_pl": "handfuls of potion fruits (elderberries)" },
    "description": "A handful of elderberries infused with mana.  It will keep you alert and awake.",
    "copy-from": "elderberries",
    "comestible_type": "FOOD",
    "proportional": { "quench": 0.5, "calories": 0.5 },
    "spoils_in": "25 days",
    "extend": { "flags": [ "NO_AUTO_CONSUME" ] },
    "use_action": {
      "type": "effect_on_conditions",
      "description": "Eat the handful of elderberry potion fruits.",
      "effect_on_conditions": [ "EOC_POTION_FRUIT_ELDERBERRY" ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_POTION_FRUIT_ELDERBERRY",
    "effect": [ { "math": [ "u_val('fatigue')", "-=", "25" ] } ]
  },
  {
    "type": "COMESTIBLE",
    "id": "potion_fruit_blueberries",
    "name": { "str": "handful of potion fruits (blueberries)", "str_pl": "handfuls of potion fruits (blueberries)" },
    "description": "A handful of blueberries infused with mana.  One handful is more satisfying than a whole bottle of water.",
    "copy-from": "blueberries",
    "comestible_type": "FOOD",
    "proportional": { "calories": 0.5 },
    "quench": 100,
    "spoils_in": "25 days",
    "extend": { "flags": [ "NO_AUTO_CONSUME" ] }
  },
  {
    "type": "COMESTIBLE",
    "id": "potion_fruit_cranberries",
    "name": { "str": "handful of potion fruits (cranberries)", "str_pl": "handfuls of potion fruits (cranberries)" },
    "description": "A handful of cranberries infused with mana.  It will remove impurities in your blood.",
    "copy-from": "cranberries",
    "comestible_type": "FOOD",
    "proportional": { "quench": 0.5, "calories": 0.5 },
    "spoils_in": "25 days",
    "extend": { "flags": [ "NO_AUTO_CONSUME" ] },
    "use_action": {
      "type": "effect_on_conditions",
      "description": "Eat the handful of cranberry potion fruits.",
      "effect_on_conditions": [ "EOC_POTION_FRUIT_CRANBERRY" ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_POTION_FRUIT_CRANBERRY",
    "effect": [ { "u_add_effect": "effect_pfruit_purge", "duration": "1 seconds" } ]
  },
  {
    "type": "COMESTIBLE",
    "id": "potion_fruit_huckleberries",
    "name": { "str": "handful of potion fruits (huckleberries)", "str_pl": "handfuls of potion fruits (huckleberries)" },
    "description": "A handful of huckleberries infused with mana.  It will make you much more flexible.",
    "copy-from": "huckleberries",
    "comestible_type": "FOOD",
    "proportional": { "quench": 0.5, "calories": 0.5 },
    "spoils_in": "25 days",
    "extend": { "flags": [ "NO_AUTO_CONSUME" ] },
    "use_action": {
      "type": "effect_on_conditions",
      "description": "Eat the handful of huckleberry potion fruits.",
      "effect_on_conditions": [ "EOC_POTION_FRUIT_HUCKLEBERRY" ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_POTION_FRUIT_HUCKLEBERRY",
    "effect": [ { "u_add_effect": "effect_pfruit_dodge", "duration": { "math": [ "250 + rand(1500)" ] } } ]
  },
  {
    "type": "COMESTIBLE",
    "id": "potion_fruit_wintergreen",
    "name": { "str": "handful of potion fruits (wintergreen berries)", "str_pl": "handfuls of potion fruits (wintergreen berries)" },
    "description": "A handful of wintergreen berries infused with mana.  It will allow you to see in the dark.",
    "copy-from": "wintergreen_berry",
    "comestible_type": "FOOD",
    "proportional": { "quench": 0.5, "calories": 0.5 },
    "spoils_in": "25 days",
    "extend": { "flags": [ "NO_AUTO_CONSUME" ] },
    "use_action": {
      "type": "effect_on_conditions",
      "description": "Eat the handful of wintergreen berry potion fruits.",
      "effect_on_conditions": [ "EOC_POTION_FRUIT_WINTERGREEN" ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_POTION_FRUIT_WINTERGREEN",
    "effect": [ { "u_add_effect": "effect_pfruit_nightvision", "duration": { "math": [ "500 + rand(5000)" ] } } ]
  },
  {
    "type": "COMESTIBLE",
    "id": "potion_fruit_cherry",
    "name": { "str": "handful of potion fruits (cherries)", "str_pl": "handfuls of potion fruits (cherries)" },
    "description": "A handful of cherries infused with mana.  It will prevent you from bleeding.",
    "copy-from": "cherries",
    "comestible_type": "FOOD",
    "proportional": { "quench": 0.5, "calories": 0.5 },
    "spoils_in": "25 days",
    "extend": { "flags": [ "NO_AUTO_CONSUME" ] },
    "use_action": {
      "type": "effect_on_conditions",
      "description": "Eat the handful of cherry potion fruits.",
      "effect_on_conditions": [ "EOC_POTION_FRUIT_CHERRY" ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_POTION_FRUIT_CHERRY",
    "effect": [ { "u_add_effect": "effect_pfruit_nobleed", "duration": { "math": [ "250 + rand(1500)" ] } } ]
  },
  {
    "type": "COMESTIBLE",
    "id": "potion_fruit_apricot",
    "name": { "str": "handful of potion fruits (apricots)", "str_pl": "handfuls of potion fruits (apricots)" },
    "description": "A handful of apricots infused with mana.  It will enhance your visual acuity.",
    "copy-from": "apricot",
    "comestible_type": "FOOD",
    "proportional": { "quench": 0.5, "calories": 0.5 },
    "spoils_in": "20 days",
    "extend": { "flags": [ "NO_AUTO_CONSUME" ] },
    "use_action": {
      "type": "effect_on_conditions",
      "description": "Eat the handful of apricot potion fruits.",
      "effect_on_conditions": [ "EOC_POTION_FRUIT_APRICOT" ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_POTION_FRUIT_APRICOT",
    "effect": [ { "u_add_effect": "effect_pfruit_vision", "duration": { "math": [ "250 + rand(1500)" ] } } ]
  },
  {
    "type": "COMESTIBLE",
    "id": "potion_fruit_grapes",
    "name": { "str": "handful of potion fruits (grapes)", "str_pl": "handfuls of potion fruits (grapes)" },
    "description": "A handful of grapes infused with mana.  It will cure intoxication.",
    "copy-from": "grapes",
    "comestible_type": "FOOD",
    "proportional": { "quench": 0.5, "calories": 0.5 },
    "spoils_in": "20 days",
    "extend": { "flags": [ "NO_AUTO_CONSUME" ] },
    "use_action": {
      "type": "effect_on_conditions",
      "description": "Eat the handful of grape potion fruits.",
      "effect_on_conditions": [ "EOC_POTION_FRUIT_GRAPE" ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_POTION_FRUIT_GRAPE",
    "effect": [ { "u_add_effect": "effect_pfruit_no_drunk", "duration": "1 seconds" }, { "math": [ "u_pain()", "+=", "10" ] } ]
  },
  {
    "type": "COMESTIBLE",
    "id": "potion_fruit_mayapple",
    "name": { "str": "potion fruit (mayapple)", "str_pl": "potion fruits (mayapple)" },
    "description": "A mayapple infused with mana.  It will allow you to eat questionable food without harm.",
    "copy-from": "mayapple",
    "comestible_type": "FOOD",
    "proportional": { "quench": 0.5, "calories": 0.5 },
    "spoils_in": "20 days",
    "extend": { "flags": [ "NO_AUTO_CONSUME" ] },
    "use_action": {
      "type": "effect_on_conditions",
      "description": "Eat the mayapple potion fruits.",
      "effect_on_conditions": [ "EOC_POTION_FRUIT_MAYAPPLE" ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_POTION_FRUIT_MAYAPPLE",
    "effect": [ { "u_add_effect": "effect_pfruit_eat_poison", "duration": { "math": [ "250 + rand(1500)" ] } } ]
  }
]
