@@ -70,7 +70,8 @@ var Offsets={
7070 PLAYER_TPCTEXT : 0x6b24 ,
7171 PLAYER_PLAYTIME : 0x6b90 ,
7272 PLAYER_POCKETS : 0x6bb0 ,
73- PLAYER_CATALOG : 0x6c00 , //starts with encyclopedia
73+ PLAYER_ENCYCLOPEDIA : 0x6c50 ,
74+ PLAYER_CATALOG : 0x6c70 ,
7475 PLAYER_BANK : 0x6b6c ,
7576 PLAYER_MEDALS : 0x6b7c ,
7677 PLAYER_WALLET : 0x6e38 ,
@@ -175,7 +176,8 @@ const OffsetsPlus={
175176 PLAYER_TPCTEXT : 0x6b38 ,
176177 PLAYER_PLAYTIME : 0x6bb0 ,
177178 PLAYER_POCKETS : 0x6bd0 ,
178- PLAYER_CATALOG : 0x6c20 , //starts with encyclopedia
179+ PLAYER_ENCYCLOPEDIA : 0x6c70 ,
180+ PLAYER_CATALOG : 0x6c90 ,
179181 PLAYER_BANK : 0x6b8c ,
180182 PLAYER_MEDALS : 0x6b9c ,
181183 PLAYER_WALLET : 0x6f08 ,
@@ -235,7 +237,7 @@ const Constants={
235237 BADGES :[ 'Fishes' , 'Bugs' , 'Marine' , 'Fish collection' , 'Bug collection' , 'Marine collection' , 'Balloons' , 'Visiting other towns' , 'Being visited' , 'Watering flowers' , 'Bank' , 'Turnips' , 'Medals' , 'StreetPass' , 'Weeds' , 'Shopping' , 'Letters' , 'Refurbishing' , 'Catalog' , 'K.K. Slider' , 'Home points' , 'Time played' , 'Helping neighbors' , 'Dream Suite' ]
236238 } ,
237239
238- FULL_ENCYCLOPEDIA :[ 0xfe , 0xff , 0x12 , 0xef , 0x7f , 0xfd , 0x7d , 0x87 , 0xc1 , 0x38 , 0x80 , 0xa3 , 0x01 , 0x00 , 0x00 , 0x00 , 0xf0 , 0xff , 0xfb , 0xff , 0x83 , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xef , 0xff , 0xff , 0x29 , 0xd1 , 0xff , 0xff , 0xff , 0x7f , 0x3f , 0xaf , 0xef , 0xff , 0x7f , 0x11 , 0x08 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0xfc , 0x5f , 0xf7 , 0xfd , 0x85 , 0xaf , 0xff , 0x77 , 0x04 , 0xf0 , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xbf , 0x67 , 0x01 , 0x75 , 0x79 , 0x3e , 0xdd , 0xb8 ] ,
240+ FULL_ENCYCLOPEDIA :[ 0xcc , 0xfc , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xd0 , 0x9a ] ,
239241 ALL_EMOTIONS :[
240242 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0a , 0x0b , 0x0c , 0x0d , 0x0e ,
241243 0x10 , 0x11 , 0x12 , 0x13 , 0x14 , 0x15 , 0x16 , 0x17 , 0x18 , 0x19 , 0x1a , 0x1b , 0x1c , 0x1d , 0x1e ,
@@ -2221,7 +2223,7 @@ Player.prototype.unlockEmotions=function(){
22212223}
22222224Player . prototype . fillEncyclopedia = function ( ) {
22232225 MarcDialogs . confirm ( 'Do you want to fill encyclopedia up for this player?<br/>' + getWarningMessage ( ) , function ( ) {
2224- var encyclopediaOffset = currentPlayer . offset + Offsets . PLAYER_CATALOG ;
2226+ var encyclopediaOffset = currentPlayer . offset + Offsets . PLAYER_ENCYCLOPEDIA ;
22252227 for ( var i = 0 ; i < Constants . FULL_ENCYCLOPEDIA . length ; i ++ )
22262228 savegame . storeByte ( encyclopediaOffset + i , Constants . FULL_ENCYCLOPEDIA [ i ] ) ;
22272229 MarcDialogs . alert ( 'Encyclopedia was filled for this player.' ) ;
@@ -2230,7 +2232,7 @@ Player.prototype.fillEncyclopedia=function(){
22302232Player . prototype . fillCatalog = function ( ) {
22312233 MarcDialogs . confirm ( 'Do you want to fill catalog up for this player?<br/>' + getWarningMessage ( ) , function ( ) {
22322234 var catalogOffset = currentPlayer . offset + Offsets . PLAYER_CATALOG ;
2233- var maxInts = plusMode ?180 : 136 ;
2235+ var maxInts = plusMode ?106 : 56 ; //Non PlusMode size is only estimate
22342236 for ( var i = 0 ; i < maxInts ; i ++ )
22352237 savegame . storeByte4 ( catalogOffset + i * 4 , 0xffffffff ) ;
22362238 MarcDialogs . alert ( 'Catalog was filled for this player.' ) ;
0 commit comments