INNER CODE UNIT · TypeScript

room

Thorium-Sim/thorium · server/classes/generic/index.ts:449

    const room = rooms.find(r => r.id === randomRoom);
    const deck = room && App.decks.find(d => d.id === room.deckId);
    const randomLocation = randomFromList(
      App.rooms.filter(r => r.simulatorId === this.simulatorId),
    );
    const randomLocationDeck = randomLocation
      ? App.decks.find(d => d.id === randomLocation.deckId)
      : {number: null};
    const location = room
      ? `${room.name}, Deck ${deck.number}`
      : deck
      ? `Deck ${deck.number}`
      : randomLocation
      ? `${randomLocation.name}, Deck ${randomLocationDeck?.number}`
      : "None";
    // First create our context object
    const context = Object.assign(
      {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…