Closed Odyssey closed 1 week ago
Fixed in https://github.com/BAndysc/WoWDatabaseEditor/pull/224. Shows that it has been merged into the main branch. But for some unknown reason, the json in the main branch hasn't changed
Fixed in #224. Shows that it has been merged into the main branch. But for some unknown reason, the json in the main branch hasn't changed
The json is changed:
Is there any problem with it?
https://github.com/BAndysc/WoWDatabaseEditor/blob/ad03280fc13e3544e46d0b1ace550973c72ef4f6/WDE.Conditions/SmartData/conditions.json#L104 It's still "ReputationRankParameter https://github.com/BAndysc/WoWDatabaseEditor/pull/224/files It has been changed to “ReputationRankMaskParameter” and merged
All good nowadays.
Describe the bug When working with conditions using CONDITION_REPUTATION_RANK, the editor uses the wrong field type and values for ConditionValue2 (Reputation Rank).
When generating sql, it writes the index of the element in the selectabable field instead of the corresponding bitmask value. It is also not treated as a bitmask, so it's not possible to create a mask containing more than one reputation rank.
Because of that, reputation based conditions created with the editor may often be wrong (see the reproducing section).
Version (commit hash) d83de4265ddfc05e3dacfd0a915aee50a010db71
To Reproduce Steps to reproduce the behavior:
SELECT * FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup IN (8558,8560);
>= friendly
with factionIds 932 and 934 respectively, and are currently only set to friendly difficulty, so when someone reaches honored, revered or exalted they cannot use the flightmaster point anymore (as the field needs to beconditionValue2=16|32|64|128
bitmask value for that to happen).Expected behavior Should be able to stack multiple reputation ranks as a bitmask and should output the right values to generated sql. Should not be described as "minimum rank" but rather "rank mask".
Screenshots TC Wiki, conditions table Condition editor for gossip_menu_option with the example above SQL output generated with rank=friendly (4 instead of 16)