@@ -5,7 +5,6 @@ import Entity from "@wayward/game/game/entity/Entity";
55import type Island from "@wayward/game/game/island/Island" ;
66import Item from "@wayward/game/game/item/Item" ;
77import type { IOverlayInfo } from "@wayward/game/game/tile/ITerrain" ;
8- import { TerrainType } from "@wayward/game/game/tile/ITerrain" ;
98import Tile from "@wayward/game/game/tile/Tile" ;
109import type Translation from "@wayward/game/language/Translation" ;
1110import Mod from "@wayward/game/mod/Mod" ;
@@ -40,6 +39,7 @@ import ItemInformation from "./inspect/ItemInformation";
4039import TerrainInformation from "./inspect/TerrainInformation" ;
4140import TileEventInformation from "./inspect/TileEventInformation" ;
4241import VehicleInformation from "./inspect/VehicleInformation" ;
42+ import ConsoleUtility from "@wayward/utilities/console/ConsoleUtility" ;
4343
4444export type InspectDialogInformationSectionClass = new ( ) => InspectInformationSection ;
4545
@@ -164,7 +164,8 @@ export default class InspectDialog extends TabDialog<InspectInformationSection>
164164
165165 const item = what instanceof Item ? what : undefined ;
166166 if ( item ) {
167- this . LOG . info ( "Item:" , item ) ;
167+ ConsoleUtility . magic . $$item ( item ) ;
168+ this . LOG . info ( "$$item:" , item [ "debug" ] ) ;
168169 }
169170
170171 while ( what instanceof Item ) {
@@ -352,8 +353,13 @@ export default class InspectDialog extends TabDialog<InspectInformationSection>
352353 @Bound
353354 private logUpdate ( ) : void {
354355 if ( this . shouldLog ) {
355- const tileData = this . tile ? this . tile . getTileData ( ) : undefined ;
356- this . LOG . info ( "Tile:" , this . tile , this . tile ?. toString ( ) , tileData ?. map ( data => TerrainType [ data . type ] ) . join ( ", " ) , tileData ) ;
356+ Object . defineProperty ( window , "$$tile" , {
357+ configurable : true ,
358+ get : ( ) => {
359+ return this . tile ;
360+ } ,
361+ } ) ;
362+ this . LOG . info ( "$$tile:" , this . tile ?. [ "debug" ] ) ;
357363 this . shouldLog = false ;
358364 }
359365
0 commit comments