Rewrite scaling and stat mod line conversion to export more stuff #173
+45,723
−18,947
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.
Description of the problem being solved:
To properly get all the stat data from a modLine e.g. order, tradeId, etc we have to go through the statDescriptors and stats. This produces the correct tradeId (regardless if they exist). It can be thought of as an inverse to the current statDescriptor stuff but including other details related to the stats. It also makes a best guess at the values of modLine's stats that don't exist e.g. Always Poison gets assumed to have a stat value of 100 this means it can be used to be scaled now. This also exports all forms of a given modLine and if a given stat is local which will be useful for trade.
Example
Todo