{
  "$id": "https://offlands.net/schemas/v1/entity",
  "name": {
    "en": "Mira",
    "fr": "Mira"
  },
  "sprite": "offlands/sprite/entity/mira",
  "bounding_box": {
    "left": -7,
    "top": -25,
    "width": 15,
    "height": 25
  },
  "collision": {
    "type": "solid",
    "footprint": {
      "left": -5,
      "top": -4,
      "width": 10,
      "height": 4
    }
  },
  "area": {
    "radius": 3,
    "interval": "30s",
    "on_enter": [
      {
        "type": "composite",
        "conditions": [
          {
            "type": "is_player",
            "target": "subject"
          }
        ],
        "triggers": [
          {
            "type": "composite",
            "conditions": [
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "greater_than",
                "entity": "offlands/entity/spruce_sapling",
                "radius": 6,
                "count": 0
              }
            ],
            "triggers": [
              {
                "type": "say",
                "target": "initiator",
                "string": "offlands/string/mira_sapling"
              }
            ]
          },
          {
            "type": "composite",
            "conditions": [
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/spruce_sapling",
                "radius": 6,
                "count": 1
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "greater_than",
                "entity": "offlands/entity/old_spruce",
                "radius": 6,
                "count": 0
              }
            ],
            "triggers": [
              {
                "type": "say",
                "target": "initiator",
                "string": "offlands/string/mira_old_spruce"
              }
            ]
          },
          {
            "type": "composite",
            "conditions": [
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/spruce_sapling",
                "radius": 6,
                "count": 1
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/old_spruce",
                "radius": 6,
                "count": 1
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "greater_than",
                "entity": "offlands/entity/rabbit",
                "radius": 6,
                "count": 1
              }
            ],
            "triggers": [
              {
                "type": "say",
                "target": "initiator",
                "string": "offlands/string/mira_rabbits"
              }
            ]
          },
          {
            "type": "composite",
            "conditions": [
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/spruce_sapling",
                "radius": 6,
                "count": 1
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/old_spruce",
                "radius": 6,
                "count": 1
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/rabbit",
                "radius": 6,
                "count": 2
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "greater_than",
                "entity": "offlands/entity/gloop",
                "radius": 6,
                "count": 0
              }
            ],
            "triggers": [
              {
                "type": "say",
                "target": "initiator",
                "string": "offlands/string/mira_gloop"
              }
            ]
          },
          {
            "type": "composite",
            "conditions": [
              {
                "type": "influence",
                "target": "initiator",
                "influence": "offlands/influence/poison",
                "operation": "greater_than",
                "value": 0
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/spruce_sapling",
                "radius": 6,
                "count": 1
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/old_spruce",
                "radius": 6,
                "count": 1
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/rabbit",
                "radius": 6,
                "count": 2
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/gloop",
                "radius": 6,
                "count": 1
              }
            ],
            "triggers": [
              {
                "type": "say",
                "target": "initiator",
                "string": "offlands/string/mira_poison"
              }
            ]
          },
          {
            "type": "composite",
            "conditions": [
              {
                "type": "influence",
                "target": "initiator",
                "influence": "offlands/influence/poison",
                "operation": "less_than",
                "value": 1
              },
              {
                "type": "influence",
                "target": "initiator",
                "influence": "offlands/influence/litter",
                "operation": "greater_than",
                "value": 1
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/spruce_sapling",
                "radius": 6,
                "count": 1
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/old_spruce",
                "radius": 6,
                "count": 1
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/rabbit",
                "radius": 6,
                "count": 2
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/gloop",
                "radius": 6,
                "count": 1
              }
            ],
            "triggers": [
              {
                "type": "say",
                "target": "initiator",
                "string": "offlands/string/mira_litter"
              }
            ]
          },
          {
            "type": "composite",
            "conditions": [
              {
                "type": "influence",
                "target": "initiator",
                "influence": "offlands/influence/poison",
                "operation": "less_than",
                "value": 1
              },
              {
                "type": "influence",
                "target": "initiator",
                "influence": "offlands/influence/litter",
                "operation": "less_than",
                "value": 2
              },
              {
                "type": "influence",
                "target": "initiator",
                "influence": "offlands/influence/vegetation",
                "operation": "greater_than",
                "value": 1
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/spruce_sapling",
                "radius": 6,
                "count": 1
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/old_spruce",
                "radius": 6,
                "count": 1
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/rabbit",
                "radius": 6,
                "count": 2
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/gloop",
                "radius": 6,
                "count": 1
              }
            ],
            "triggers": [
              {
                "type": "say",
                "target": "initiator",
                "string": "offlands/string/mira_grass"
              }
            ]
          },
          {
            "type": "composite",
            "conditions": [
              {
                "type": "influence",
                "target": "initiator",
                "influence": "offlands/influence/poison",
                "operation": "less_than",
                "value": 1
              },
              {
                "type": "influence",
                "target": "initiator",
                "influence": "offlands/influence/litter",
                "operation": "less_than",
                "value": 2
              },
              {
                "type": "influence",
                "target": "initiator",
                "influence": "offlands/influence/vegetation",
                "operation": "less_than",
                "value": 2
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/spruce_sapling",
                "radius": 6,
                "count": 1
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/old_spruce",
                "radius": 6,
                "count": 1
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/rabbit",
                "radius": 6,
                "count": 2
              },
              {
                "type": "nearby",
                "target": "initiator",
                "operation": "less_than",
                "entity": "offlands/entity/gloop",
                "radius": 6,
                "count": 1
              }
            ],
            "triggers": [
              {
                "type": "say",
                "target": "initiator",
                "string": "offlands/string/mira_quiet"
              }
            ]
          }
        ]
      }
    ]
  },
  "interaction": {
    "type": "conversation",
    "hint": "offlands/string/talk",
    "conversation": "offlands/conversation/mira"
  }
}
