oh fuck i forgot
This commit is contained in:
13
debug_weather.js
Normal file
13
debug_weather.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const fs = require('fs');
|
||||
const root = JSON.parse(fs.readFileSync('fullstate.json'));
|
||||
|
||||
const gameData = root.fullState.child.data;
|
||||
console.log('Weather:', JSON.stringify(gameData.weather, null, 2));
|
||||
|
||||
const userSlot = gameData.userSlots[0];
|
||||
const garden = userSlot.data.garden;
|
||||
const tileIds = Object.keys(garden.tileObjects);
|
||||
if (tileIds.length > 0) {
|
||||
const tile = garden.tileObjects[tileIds[0]];
|
||||
console.log('Tile Sample:', JSON.stringify(tile, null, 2).substring(0, 1000));
|
||||
}
|
||||
Reference in New Issue
Block a user