{
  "metadata": {
    "id": "sample",
    "name": "Sample",
    "description": "A sample preset for demonstrative purposes.",
    "author": [
      "3snow_p7im"
    ],
    "weight": -3999,
    "knowledgeCheck": "",
    "metaExtension": "",
    "metaComplexity": "7",
    "itemStats": "",
    "timeFrame": "",
    "moddedLevel": "",
    "castleType": "",
    "transformEarly": "",
    "transformFocus": "",
    "winCondition": ""
  },

  "comment": "Build off the Safe preset",
  "inherits": "safe",
  "relicLocations": true,
  "relicLocationsExtension": "equipment",
  "preventLeaks": false,
  "stats": false,
  "thrustSwordAbility": true,
  "music": false,
  "turkeyMode": false,
  "tournamentMode": true,
  "antiFreezeMode": true,
  "fastwarpMode": true,
  "magicmaxMode": true,
  "mypurseMode": true,
  "unlockedMode": true,
  "noprologueMode": true,
  "surpriseMode": true,
  "iwsMode": true,
  "enemyStatRandoMode": true,
  "shopPriceRandoMode": true,
  "startRoomRandoMode": true,
  "startRoomRando2ndMode": true,
  "rlbcMode": true,
  "newGoalsSet": "a",
  "immunityPotionMode": true,
  "godspeedMode": true,
  "libraryShortcut": true,
  "singleHitGearMode": true,

  "alias": [{
    "comment": "Alias NO3 as Entrance",
    "zone": "NO3",
    "alias": "Entrance"
  }, {
    "comment": "Alias TOP as Castle Keep",
    "zone": "TOP",
    "alias": "Castle Keep"
  }, {
    "comment": "Alias Leap Stone as Double Jump",
    "relic": "Leap Stone",
    "alias": "Double Jump"
  }, {
    "comment": "Alias Sprite Card as Duplicator",
    "relic": "Sprite Card",
    "alias": "Duplicator"
  }, {
    "comment": "Alias Nosedevil Card as Heart Refresh",
    "relic": "Nosedevil Card",
    "alias": "Heart Refresh"
  }],

  "relicName": [{
    "relic": "Faerie Scroll",
    "newName": "Portal Spell"
  }],

  "complexityGoal": {
    "min": 2,
    "max": 7,
    "comment": "Require Soul of Bat + Soul of Wolf or Gravity Boots + Form of Mist to complete game",
    "goals": [
      "Soul of Bat + Soul of Wolf",
      "Gravity Boots + Form of Mist"
  ]},

  "placeRelic": [{
    "comment": "Sprit Orb at Form of Mist location",
    "relic": "Spirit Orb",
    "location": "Form of Mist"
  }, {
    "comment": "Soul of Wolf or Form of Mist at Leap Stone location",
    "relic": ["Soul of Wolf", "Form of Mist"],
    "location": "Leap Stone"
  }],

  "replaceRelic": [{
    "comment": "Replace Sprite Card with Duplicator",
    "relic": "Sprite Card",
    "item": "Duplicator"
  }, {
    "comment": "Replace Nosedevil Card with Heart Refresh",
    "relic": "Nosedevil Card",
    "item": "Heart Refresh"
  }],

  "startingEquipment": [{
    "slot": "Right hand",
    "item": "Crissaegrim"
  }, {
    "slot": "Left hand",
    "item": "Dark shield"
  }, {
    "slot": "Head",
    "item": "Beryl circlet"
  }, {
    "slot": "Body",
    "item": "Dracula tunic"
  }, {
    "slot": "Cloak",
    "item": "Reverse cloak"
  }, {
    "slot": "Other",
    "item": "Ankh of Life"
  }, {
    "slot": "AxeArmor",
    "item": "Gold plate"
  }, {
    "slot": "Luck Mode",
    "item": "Talisman"
  }],

  "blockEquipment": [{
    "slot": "Right hand",
    "item": [
        "Crissaegrim"
      ]
  }, {
    "slot": "Left hand",
    "item": [
        "Alucard shield"
      ]
  }, {
    "slot": "Head",
    "item": [
        "Dragon helm"
      ]
  }, {
    "slot": "Body",
    "item": [
        "God's Garb"
      ]
  }, {
    "slot": "Cloak",
    "item": [
        "Twilight cloak"
      ]
  }, {
    "slot": "Other",
    "item": [
        "Duplicator"
    ]
  }],

  "prologueRewards": [{
    "item": "Heart Refresh",
    "replacement": "Banana"
  }, {
    "item": "Neutron bomb",
    "replacement": "Bat pentagram"
  }, {
    "item": "Potion",
    "replacement": "Elixir"
  }],
  
  "blockRewards": [{
    "item": "Heart Refresh",
    "replacement": "Library card"
  }, {
    "item": "Neutron bomb",
    "replacement": "Library card"
  }, {
    "item": "Potion",
    "replacement": "Library card"
  }],

  "itemLocations": [{
    "comment": "Place a Library Card in the Pot Roast wall of Entrance",
    "zone": "Entrance",
    "item": "Pot roast",
    "replacement": "Library card"
  }, {
    "comment": "Place an Orange in the second Turkey wall of Castle Keep",
    "zone": "Castle Keep",
    "item": "Turkey",
    "index": 2,
    "replacement": "Orange"
  }],
  
  "blockItems": [{
    "zone": "*",
    "item": "*",
    "replacement": [
      "Crissaegrim"
    ]
  }],

  "enemyDrops": [{
    "comment": "Make Warg drop $400 and Combat Knife",
    "enemy": "Warg",
    "items": ["$400", "Combat knife"]
  }, {
    "comment": "Make Merman level 3 drop Duplicator and Manna Prism",
    "enemy": "Merman",
    "level": 3,
    "items": ["Duplicator", "Manna prism"]
  }],
  
  "blockDrops": [{
    "enemy": "Bat",
    "items": [
      "Crissaegrim"
    ]
  }],

  "lockLocation": [{
    "location": "Soul of Bat",
    "comment": "Requires Mist + Gravity Boots + Double Jump or Mist + Power of Mist",
    "locks": [
      "Form of Mist + Gravity Boots + Double Jump",
      "Form of Mist + Power of Mist"
    ],
    "comment": "Access to Soul of Bat location must also give Soul of Wolf or form of Mist + Power of Mist",
    "escapeRequires": [
      "Soul of Wolf",
      "Form of Mist + Power of Mist"
    ]
  }, {
    "location": "Power of Wolf",
    "comment": "Requires Bat or Double Jump + Gravity Boots",
    "locks": [
      "Soul of Bat",
      "Double Jump + Gravity Boots"
    ]
  }, {
    "location": "Merman Statue",
    "comment": "Merman Statue requires Duplicator + Heart Refresh",
    "locks": [
      "Duplicator + Heart Refresh"
    ],
    "comment": "Never let Merman Statue location have Form of Mist or Soul of Bat",
    "block": [
      "Form of Mist",
      "Soul of Bat"
    ]
  }, {
    "location": "Leap Stone",
    "comment": "No Requirements",
    "locks": [
    ]
  }],

  "lockLocationAllowed": [{
    "location": "Merman Statue",
    "comment": "Merman Statue Out of Logic with Shield Rod",
    "locks": [
      "Shield Rod"
    ],
    "comment": "Never let Merman Statue location have Form of Mist or Soul of Bat",
    "block": [
      "Form of Mist",
      "Soul of Bat"
    ]
  }],
  
  "writes": [{
    "comment": "Jump to injected code (Used for editing things requiring to be edited in RAM)",
    "address": "0x000fa97c",
    "type": "word",
    "value": "0x0c04db00"
  }, {
    "address": "0x00158c98",
    "type": "word",
    "value": "0x34020003",
    "comment": "ori v0, 0x0003"
  }, {
    "comment": "Write to 8009 RAM addresses (Granting relics, stats, items, etc.)",
    "type": "word",
    "value": "0x3c038009",
    "comment": "lui v1, 0x8009"
  }, {
    "comment": "Enable Gravity Boots",
    "type": "word",
    "value": "0xa0627970",
    "comment": "sb v0, 0x7970 (v1)"
  }, {
    "comment": "Write to 8003 RAM addresses (Editing the game flags and calling functions)",
    "type": "word",
    "value": "0x3c038004",
    "comment": "lui v1, 0x8004"
  }, {
    "comment": "Save Return Address for rA (Map Code)",
    "type": "word",
    "value": "0x37F70000"
  }, {
    "comment": "Call Map Acquisition Function (Map Code)",
    "type": "word",
    "value": "0x0C03C8A2"
  }, {
    "type": "word",
    "value": "0x34040000",
    "comment": "Arg0 w/ 0"
  }, {
    "comment": "Recall Return Address for rA (Map Code)",
    "type": "word",
    "value": "0x36FF0000"
  }, {
    "comment": "(End Map Code)",
    "type": "word",
    "value": "0x00000000",
    "comment": "nop"
  }, {
    "comment": "Return from injected code",
    "type": "word",
    "value": "0x0803924f",
    "comment": "j 0x800e493c"
  }, {
    "comment": "Finish Return from injected code (Writes after this allow for direct editing of the ROM)",
    "type": "word",
    "value": "0x00000000",
    "comment": "nop"
  }, {
    "comment": "Death isn't there to steal equipment",
    "address": "0x4BAEA08",
    "type": "word",
    "value": "0x18000006"
  }, {
    "comment": "Rename Faerie Scroll to 'Portal Spell'",
    "address": "0xF56A8",
    "type": "word",
    "value": "0x74726F50"
  }, {
    "type": "word",
    "value": "0x53206C61"
  }, {
    "type": "word",
    "value": "0x6C6C6570"
  }, {
    "type": "char",
    "value": "0x00"
  }],

  "writes": [{
    "comment": "Jump to injected code",
    "address": "0x000fa97c",
    "type": "word",
    "value": "0x0c04db00"
  }, {
    "address": "0x00158c98",
    "type": "word",
    "value": "0x34020003",
    "comment": "ori v0, 0x0003"
  }, {
    "type": "word",
    "value": "0x3c038009",
    "comment": "lui v1, 0x8009"
  }, {
    "comment": "Enable Soul of Wolf",
    "type": "word",
    "value": "0xa0627968",
    "comment": "sb v0, 0x7968 (v1)"
  }, {
    "comment": "Enable Power of Wolf",
    "type": "word",
    "value": "0xa0627969",
    "comment": "sb v0, 0x7969 (v1)"
  }, {
    "comment": "Enable Skill of Wolf",
    "type": "word",
    "value": "0xa062796a",
    "comment": "sb v0, 0x796a (v1)"
  }, {
    "comment": "Return from injected code",
    "type": "word",
    "value": "0x0803924f",
    "comment": "j 0x800e493c"
  }, {
    "type": "word",
    "value": "0x00000000",
    "comment": "nop"
  }, {
    "comment": "Don't consume mana in wolf form",
    "type": "short",
    "address": "0x00118cc8",
    "value": "0x0000"
  }, {
    "comment": "Reduce mana consumption during wolf dash",
    "type": "char",
    "address": "0x000b53b0",
    "value": "0x01"
  }]
}
