Kamalisk / arkhamdb

146 stars 84 forks source link

Basic Weakness randomizer can select invalid class-locked weaknesses #658

Open mikecheb opened 5 months ago

mikecheb commented 5 months ago

The Scarlet Keys introduced weaknesses which are only available to investigators of a specific class. The randomizer logic should be updated to prevent, for example, Pay Your Due (Rogue-only) from being selected for Agnes.

Presumably, this is where such logic would belong. Currently, the only filtering is for weaknesses in the user's collection: https://github.com/Kamalisk/arkhamdb/blob/c41d74e1f9b81152754e408911e78d1dbebff4d0/src/AppBundle/Resources/public/js/ui.deckedit.js#L1123-L1142

I might work on this if I find some time in the next week or two.