{
  "profile": {
    "has_spikes": 0,
    "has_magick": 1,
    "shiny_bauble": 2,
    "cursed_item": 3,
    "$does_physical": 4,
    "$does_magick": 5,
    "$does_damage": 6,
    "$user_cursed": 7,
    "$does_healing": 8,
    "$damage_boost": 9,
    "$large_boost": 10,
    "$is_complete": 11
  },
  "actions": [
    {
      "name": "pierce_type",
      "cost": 100,
      "needs": {
        "has_spikes": true,
        "$is_complete": false
      },
      "effects": {
        "$does_physical": true,
        "$does_damage": true
      }
    },
    {
      "name": "magick_type",
      "cost": 100,
      "needs": {
        "$is_complete": false,
        "has_magick": true
      },
      "effects": {
        "$does_magick": true,
        "$does_damage": true
      }
    },
    {
      "name": "combined",
      "cost": 0,
      "needs": {
        "$does_damage": true
      },
      "effects": {
        "$is_complete": true
      }
    },
    {
      "name": "boost_magick",
      "cost": 0,
      "needs": {
        "shiny_bauble": true,
        "$does_magick": true,
        "$does_damage": true,
        "$is_complete": false,
        "$user_cursed": false
      },
      "effects": {
        "$damage_boost": true
      }
    },
    {
      "name": "boost_damage_large",
      "cost": 0,
      "needs": {
        "$user_cursed": true,
        "$is_complete": false,
        "$does_damage": true
      },
      "effects": {
        "$large_boost": true
      }
    },
    {
      "name": "curses_user",
      "cost": 1000,
      "needs": {
        "$is_complete": false,
        "cursed_item": true
      },
      "effects": {
        "$user_cursed": true
      }
    },
    {
      "name": "heals_user",
      "cost": 0,
      "needs": {
        "cursed_item": true,
        "$does_damage": false
      },
      "effects": {
        "$does_healing": true,
        "$is_complete": true
      }
    }
  ],
  "states": {
    "initial": {
      "shiny_bauble": false,
      "cursed_item": false,
      "has_spikes": false,
      "has_magick": false,
      "$user_cursed": false,
      "$does_damage": false,
      "$is_complete": false,
      "$does_healing": false,
      "$does_magick": false,
      "$does_physical": false,
      "$large_boost": false,
      "$damage_boost": false
    },
    "final": {
      "$user_cursed": true,
      "$does_damage": true,
      "$is_complete": true,
      "$does_healing": true,
      "$does_magick": true,
      "$does_physical": true,
      "$large_boost": true,
      "$damage_boost": true
    }
  },
  "scripts": {
    "actions": [
      "boost_magick",
      "pierce_type",
      "magick_type",
      "heals_user",
      "curses_user",
      "boost_damage_large",
      "combined"
    ]
  },
  "effects": {
    "boost_magick": {
      "damage": 10,
      "kind": 2,
      "element": 2,
      "probability": 1.0
    },
    "pierce_type": {
      "damage": 11,
      "kind": 1,
      "probability": 1.0
    },
    "magick_type": {
      "damage": 12,
      "kind": 2,
      "element": 1,
      "probability": 1.0
    },
    "heals_user": {
      "damage": 13,
      "probability": 1.0
    },
    "curses_user": {
      "damage": 14,
      "probability": 0.5
    },
    "boost_damage_large": {
      "damage": 15,
      "probability": 1.0
    },
    "combined": {
      "damage": 16,
      "probability": 1.0
    }
  },
  "junk": {
    "chess_pawn": {
      "name": "chess_pawn",
      "provides": ["cursed_item"]
    },
   "dirty_kerchief": {
      "name": "dirty_kerchief",
      "provides": ["has_magick"]
    },
   "mushroom": {
      "name": "mushroom",
      "provides": ["has_magick"]
    },
    "pocket_watch": {
      "name": "pocket_watch",
      "provides": ["shiny_bauble"]
    },
    "rusty_nails": {
      "name": "rusty_nails",
      "provides": ["has_spikes"]
    },
    "severed_finger": {
      "name": "severed_finger",
      "provides": ["cursed_item"]
    }
  },
  "starting_junk": [
    "mushroom", "rusty_nails"
  ]
}
