/* The legend of Zelda: Breath of the wild v20170508 by Marc Robledo 2017 */ var currentEditingItem=0; SavegameEditor={ Name:'The legend of Zelda: Breath of the wild', Filename:'game_data.sav', /* Constants */ Constants:{ MAX_ITEMS:410, STRING_SIZE:0x80 }, /* Offsets */ OffsetsAll:{ FILESIZE: [896976, 897160, 897112], /* header v1.0 v1.1 v1.2 */ RUPEES: [0x23149bf8, 0x00e0a0, 0x00e110, 0x00e110], MONS: [0xce7afed3, 0x0bc480, 0x0bc558, 0x0bc538], ITEMS: [0x5f283289, 0x052828, 0x0528d8, 0x0528c0], ITEMS_QUANTITY: [0x6a09fc59, 0x063340, 0x0633f0, 0x0633d8], MOD_WEAPON_TYPES: [0x57ee221d, 0x050328, 0x0503d8, 0x0503c0], MOD_WEAPON_VALUES: [0xa6d926bc, 0x0a9ca8, 0x0a9d78, 0x0a9d58], MOD_BOW_TYPES: [0x0cbf052a, 0x0045f0, 0x0045f8, 0x0045f8], MOD_BOW_VALUES: [0x1e3fd294, 0x00a8e0, 0x00a940, 0x00a940], MOD_SHIELD_TYPES: [0xc5238d2b, 0x0b5810, 0x0b58e8, 0x0b58c8], MOD_SHIELD_VALUES: [0x69f17e8a, 0x063218, 0x0632c8, 0x0632b0], HORSE_SADDLES: [0x333aa6e5, 0x03d0e8, 0x03d190, 0x03d190], HORSE_REINS: [0x6150c6be, 0x060508, 0x0605b8, 0x0605a0], HORSE_NAMES: [0x7b74e117, 0x070320, 0x0703c0, 0x0703a8], HORSE_MANES: [0x9c6cfd3f, 0x0a6478, 0x0a6538, 0x0a6520], HORSE_TYPES: [0xc247b696, 0x0b46f8, 0x0b47d8, 0x0b47b8], HORSE_BONDS: [0xe1a0ca54, 0x0c3670, 0x0c3738, 0x0c3710], /* max=0x3f80 */ KOROK_SEED_COUNTER: [0x8a94e07a, 0x076148, 0x0761f8, 0x0761e0] }, /* private functions */ _searchHeader:function(hdr){ for(var i=0x14; i'+itemId+'' }, _getItemCategory:function(itemId){ for(var i=0; i#'+i+' '+this._getItemTranslation(itemNameId)+' '), inputNumber('item'+i, 0, this._getItemMaximumQuantity(itemNameId), tempFile.readInt(this._getItemQuantityOffset(i))) ) }, addItem:function(){ var i=0; while(document.getElementById('number-item'+i)){ i++; } if(i