Skip to content

Commit b182454

Browse files
author
marcrobledo
committed
fixed NaNxNaN string in items
1 parent 3960fc0 commit b182454

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

_cache_service_worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ caches.keys().then(function(cacheNames){
3030
});
3131

3232
var PRECACHE_ID='acnl-editor';
33-
var PRECACHE_VERSION='v1h';
33+
var PRECACHE_VERSION='v1.5.2b';
3434
var PRECACHE_URLS=[
3535
'/acnl-editor/','/acnl-editor/index.html',
3636
'/acnl-editor/help.html',

js/editor_garden.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Animal Crossing: New Leaf Save Editor (garden.dat) v20190427
2+
Animal Crossing: New Leaf Save Editor (garden.dat) v20190502
33
by Marc Robledo 2015-2019
44
55
A lot of thanks to:
@@ -923,11 +923,11 @@ function click(evt,itemGridObj,firstClick){
923923
}
924924

925925

926-
//if(itemGridObj.belongsToMap){
926+
if(itemGridObj.showCoords){
927927
el('debug-name').innerHTML='<b>'+(itemGridObj.startX+x)+'x'+(itemGridObj.startY+y)+':</b> '+itemSlot.name;
928-
//}else{
929-
// el('debug-name').innerHTML=itemSlot.name;
930-
//}
928+
}else{
929+
el('debug-name').innerHTML=itemSlot.name;
930+
}
931931
el('debug-hex').innerHTML=itemSlot.nameHex;
932932

933933
el('debug').style.top=window.pageYOffset+24+rect.top+y*itemGridObj.tileSize+'px';
@@ -967,7 +967,7 @@ function ItemGridMap(type){
967967
this.items=new Array(16*16*nGrids);
968968
for(var i=0; i<nGrids; i++){
969969
this.itemGrids[i]=new ItemGrid(this.offsetItems+i*4*16*16, 16, 16);
970-
//this.itemGrids[i].belongsToMap=true;
970+
this.itemGrids[i].showCoords=true;
971971
this.itemGrids[i].startX=16+16*(i%acreWidth);
972972
this.itemGrids[i].startY=16+16*parseInt(i/acreWidth);
973973

0 commit comments

Comments
 (0)