Repository navigation
Read Forever spell data from the Forever build - #64
Merged
Merged
Conversation
The game data export also downloads the spell icons, channel spells and class spells of the newest Forever build. A Forever log reads these tables, every other game keeps the retail ones.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Forever logs its own spells, and the retail spell data covers only a small part of them. Most abilities in a Forever log showed initials instead of an icon, and classes from casts and channel bars read retail's tables.
The game data export now also downloads the spell tables of the newest Forever build: spell icons, channel spells and class spells. It writes them to
game-data/forever/, and the manifest names the build. The engine keeps spell tables per game and reads the ones of the open log's game. The app loads the Forever tables only when a Forever log is open, and spell icons follow the open log's game. The image download includes the Forever icon names.Retail and every other game read the retail tables as before. A Forever log never falls back to them: with an export that has no Forever tables, it shows no spell icons and takes no class from casts. Dungeons, boss portraits and map art stay retail-only.
The rule "Forever has its own tables, every other game reads retail's" exists twice, once in the engine (
DataGame::of) and once in the app (dataGameOf). The engine picks the tables for its reports, and the app picks which tables to load and which icons to show. Each refers to the other.