The getEmoji() function sometimes showed incorrect passive for example: when the crit passive had qualities [100,99]. So I changed the logic to check between quality 'boundaries' instead of adding to the 'count' variable to get the rankQuality.
I also did some cleaning -> changed var to constlet, != to !== etc.
The getEmoji() function sometimes showed incorrect passive for example: when the crit passive had qualities [100,99]. So I changed the logic to check between quality 'boundaries' instead of adding to the 'count' variable to get the rankQuality.
I also did some cleaning -> changed
var
toconst
let
,!=
to!==
etc.