* define magic numbers from combat ratings
* move forgotten rating base values from Util to Stats
* fix localized rating strings for item and spell tooltips (expected float, got string)
* some cleanup in item/spell types to make it more clear when an internal stat is being handled, not an itemMod or combatRating
* unify stat handling. If there are discrepancies left at least they are now centralized.
- health should no longer pretend to be mana
- stats are no longer capped to 32.7k points as items can have multiple of the same stat and handily exceed smallints
* weight scale fixes:
- "repair cost" is no longer a weight scale option. Why was it one in the first place? Also it wasn't even accessible before. (that was a bug)
- "bonus armor" is now searchable and only applied to armor pieces
* removed unused parsed stats from itemsets
* relax numeric type requirements when working with filters
* restore smart type casting functionality of Util::checkNumeric when used with NUM_ANY
* enable Util::arraySumByKey to work recursively
* fix source display in listview
* rewritten and moved to its own class, should be easier to expand in the future
* add missing sources and types from TrinityCore
* implement conditions on Areatrigger and Loot containers
* implement reverse lookups (e.g. a spell is a conditional for something else)
* general beautification pass .. should be more legible in general
NOTE:
* texts have been changed, so the existing translation for esES ist gone
* selecting and describing condition targets is still wonky
* convert configuration from list of constants to object
* fixes config changes not applying on cli whithout closing and reopening again
* config variables are no longer embedded in localization text
* enable level scaling for spells with RealPointsPerLevel
* note: While BasePoint vars ($m, $M) can scale, they are often involved in formulas that would have to be recalculated in javascript. This is currently impossible. So this var is skipped for now.
* fixed misc issues Intellisense was nice enough to highlight.
* mostly deprecated usage of uninitialized parameters
* class GenericPage still needs a long, hard look and a refactor
* so, apparently the client allows ui escape sequences in the weirdest of places. Guess i have to follow suit.
* also, the sequences can be multiline
* also also, the file extension for icons is optional
* fixed wrong indizes for gem color picker in locale 3 (deDE)
* fixed interpretation of filter enums. Some are providing their value directly, others have an intermediate key.
* createSQLForCriterium is no longer abstract. (was implemented in exactly the same way everywhere)
* erronous criteria are now logged and discarded entirely)
* rewrote SetupSrcipt
* implemented 'zone' parameter
* implemented 'bossdrop' parameter
* implemented 'dungeondifficulty' parameter
* implemented item filter relying on zone information (dropsInX)
* fixed world random drops showing a single loot source
* extended Source column of spells to the same functionality as items
ToDo:
* apply new 'commondrop' parameter on loot listviews
* gather difficuly versions of gameobjects and apply the same logic as for creatures
* implement fake spawns so npcs can get linked to a zone
* fixed break and trim functions not handling text shorter than break length
* add option to output raw text besides html, markup format
* decalare return types and parameter types
* cleanup
* fixed more error pages without styles/scripts
* fixed sourcemore for items if more then 300 items where requested at once
* fixed item name localization in rare cases
* use strings from globalstrings.lua to format time in item and spell tooltips
* fixed item filter ItemCooldown
* fixed timeAgo format
* move item duration to correct position in tooltip
* apply stats and name suffix to result set for filter #124 - random enchantment
* fix filter #125 - required arena team rating
* fix filter #85 - objective of quest
* moving commonly used strings to defines
* moving commonly reused/similar page generation functions to the parent
* generally using consistent return types, more type hints and less strings
* prevent browser context menu when right clicking on UI elements with their own context menus
* fixed menu path for icons
* display a "sells" entry for every combination of currencies the vendor accepts per item
* display every cost combination in the quick infos on the item detail page
* added support for locale 4
* some strings are missing and will need to be translated at a later date
* thx @qyh214 for a lot of content
Co-authored-by: qyh214 <sandy0214qin@msn.com>