UNPKG

@kayahr/ed-journal

Version:

Typescript library to read/watch the player journal of Frontier's game Elite Dangerous

12 lines 532 B
/* * Copyright (C) 2022 Klaus Reimer <k@ailis.de> * See LICENSE.md for licensing information. */ import { registerJournalEventUpdate } from "../../JournalEvent.js"; registerJournalEventUpdate("Synthesis", (json) => { // Since ED 2.3 the Materials data has changed from an object to an array of objects. if (json.Materials != null && !(json.Materials instanceof Array)) { json.Materials = Object.entries(json.Materials).map(([Name, Percent]) => ({ Name, Percent })); } }); //# sourceMappingURL=Synthesis.js.map