empathy: Fix judging interface to properly merge two entire groups
authorCarl Worth <cworth@cworth.org>
Fri, 12 Jun 2020 00:53:20 +0000 (17:53 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 12 Jun 2020 00:53:20 +0000 (17:53 -0700)
commit2f53ad28854b9d68fcbd19ca02002c5883234638
treed5a715dee6d3b012404f42bced3b59154b5b5cec
parent6baa178ee249fde9b660e91c6d6cc374b3d755ac
empathy: Fix judging interface to properly merge two entire groups

Previously, when selecting an item that was a part of a larger group,
it could get pulled out of that group to be merged with the other
selected item. This was absolutely bewildering to players.

Instead, the right thing is to entirely merge the two groups to which
each of the two selected items belong. That's what we do here, and
using Set objects rather than simply arrays as we had before.
empathy/empathy.jsx