/* The legend of Zelda: Breath of the wild v20170521 by Marc Robledo 2017 */ var currentEditingItem=0; SavegameEditor={ Name:'The legend of Zelda: Breath of the wild', Filename:'game_data.sav', Version:20170522, /* Constants */ Constants:{ MAX_ITEMS:410, STRING_SIZE:0x80, /* v1.0 v1.1 v1.2 */ FILESIZE: [896976, 897160, 897112], HEADER: [0x24e2, 0x24ee, 0x2588], }, /* Offsets */ OffsetsAll:{ /* hash 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], FLAGS_WEAPON: [0x57ee221d, 0x050328, 0x0503d8, 0x0503c0], FLAGSV_WEAPON: [0xa6d926bc, 0x0a9ca8, 0x0a9d78, 0x0a9d58], FLAGS_BOW: [0x0cbf052a, 0x0045f0, 0x0045f8, 0x0045f8], FLAGSV_BOW: [0x1e3fd294, 0x00a8e0, 0x00a940, 0x00a940], FLAGS_SHIELD: [0xc5238d2b, 0x0b5810, 0x0b58e8, 0x0b58c8], FLAGSV_SHIELD: [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], DEFEATED_HINOX_COUNTER: [0x54679940, 0x04d2b8, 0x04d368, 0x04d358], DEFEATED_TALUS_COUNTER: [0x698266be, 0x063010, 0x0630c0, 0x0630a8], DEFEATED_MOLDUGA_COUNTER:[0x441b7231, 0x0466d0, 0x046788, 0x046780], PLAYTIME: [0x73c29681, 0x067888, 0x067920, 0x067908], RELIC_GERUDO: [0x97f925c3, 0x07adc0, 0x07ae80, 0x07ae68], RELIC_GORON: [0xf1cf4807, 0x0cb3c0, 0x0cb488, 0x0cb460], RELIC_RITO: [0xfda0cde4, 0x0da0d8, 0x0da190, 0x0da160] }, /* private functions */ _toHexInt:function(i){var s=i.toString(16);while(s.length<8)s='0'+s;return '0x'+s}, _writeBoolean:function(offset,val,arrayPos){if(arrayPos)tempFile.writeInt(offset+8*i,val?1:0);else tempFile.writeInt(offset,val?1:0)}, _writeValue:function(offset,val,arrayPos){if(arrayPos)tempFile.writeInt(offset+8*i,val);else tempFile.writeInt(offset,val)}, _writeString:function(offset,str){ for(var i=0; i<16; i++){ tempFile.writeBytes(offset,[0,0,0,0]); var fourBytes=str.substr(i*4, 4); for(j=0; j'+itemId+'' }, _getItemCategory:function(itemId){ for(var i=0; iYou can now safely remove all .jpg files under pict_book folder.'); } /* MarcTooltips.js v20170518 - Marc Robledo 2014-2017 - http://www.marcrobledo.com/license */ var MarcTooltips=function(){return{add:function(a,b,c){var d=document.createElement("div");d.className="tooltip",d.style.position="absolute",d.style.zIndex="9000",d.style.top="0",d.style.left="0",d.innerHTML=b,document.body.appendChild(d);var e="down",f="center";c&&c.position&&/^(up|down|left|right)$/i.test(c.position)&&(e=c.position.toLowerCase()),c&&c.align&&/^(top|bottom|left|right)$/i.test(c.align)&&(("up"!==e&&"down"!==e||"left"!==c.align&&"right"!==c.align)&&("left"!==e&&"right"!==e||"top"!==c.align&&"bottom"!==c.align)||(f=c.align.toLowerCase()));var h=document.createElement("div");h.className="arrow",d.className+=" position-"+e+" align-"+f,d.className+="left"===e||"right"===e?" position-horizontal":" position-vertical",d.appendChild(h);var i=function(){var a=document.documentElement,b=(window.pageXOffset||a.scrollLeft)-(a.clientLeft||0),c=(window.pageYOffset||a.scrollTop)-(a.clientTop||0),g=this.getBoundingClientRect(),h=d.getBoundingClientRect();d.style.top="up"===e?parseInt(g.top+c-h.height)+"px":"down"===e?parseInt(g.top+c+g.height)+"px":"top"===f?parseInt(g.top+c)+"px":"bottom"===f?parseInt(g.top+c-(h.height-g.height))+"px":parseInt(g.top+c-parseInt((h.height-g.height)/2))+"px",d.style.left="up"===e||"down"===e?"left"===f?parseInt(g.left+b)+"px":"right"===f?parseInt(g.left+b-(h.width-g.width))+"px":parseInt(g.left+b-parseInt((h.width-g.width)/2))+"px":"left"===e?parseInt(g.left+b-h.width)+"px":parseInt(g.left+b+g.width)+"px",d.className+=" visible"},j=function(){d.className=d.className.replace(" visible","")};"string"==typeof a&&(a=[a]);for(var k=0;kh){ document.getElementById('header').style.position='fixed'; document.getElementById('header').style.top='-'+h+'px'; }else{ document.getElementById('header').style.position='absolute'; document.getElementById('header').style.top='0px'; } } window.addEventListener('load',function(){ window.addEventListener('scroll',onScroll,false); }, false);