[
  {
    "id": "health_desc_template",
    "type": "widget",
    "style": "clause",
    "clauses": [
      { "id": "horrible", "text": "Horrible", "color": "red", "condition": { "math": [ "u_health() < -100" ] } },
      {
        "id": "very_bad",
        "text": "Very bad",
        "color": "light_red",
        "condition": { "and": [ { "math": [ "u_health() >= -100" ] }, { "math": [ "u_health() < -50" ] } ] }
      },
      {
        "id": "bad",
        "text": "Bad",
        "color": "yellow",
        "condition": { "and": [ { "math": [ "u_health() >= -50" ] }, { "math": [ "u_health() < -10" ] } ] }
      },
      {
        "id": "ok",
        "text": "OK",
        "color": "light_gray",
        "condition": { "and": [ { "math": [ "u_health() >= -10" ] }, { "math": [ "u_health() < 10" ] } ] }
      },
      {
        "id": "good",
        "text": "Good",
        "color": "white",
        "condition": { "and": [ { "math": [ "u_health() >= 10" ] }, { "math": [ "u_health() < 50" ] } ] }
      },
      {
        "id": "very_good",
        "text": "Very good",
        "color": "green",
        "condition": { "and": [ { "math": [ "u_health() >= 50" ] }, { "math": [ "u_health() < 100" ] } ] }
      },
      {
        "id": "excellent",
        "text": "Excellent",
        "color": "light_green",
        "condition": { "math": [ "u_health() >= 100" ] }
      }
    ]
  },
  {
    "id": "health_num",
    "type": "widget",
    "label": "Health",
    "var": "health",
    "style": "number",
    "colors": [ "c_red", "c_light_red", "c_light_green", "c_green" ]
  },
  {
    "id": "daily_health_num",
    "type": "widget",
    "label": "Daily health",
    "var": "daily_health",
    "style": "number",
    "colors": [ "c_red", "c_light_red", "c_light_green", "c_green" ]
  },
  {
    "id": "health_desc",
    "type": "widget",
    "label": "Health",
    "style": "text",
    "copy-from": "health_desc_template"
  }
]
