Generate correct responses to "supply"-needs.
The ...Compacted was added to the wrong variable during
one of the earlier patches.
@@ -224,8 +224,8 @@ function generateResponseNeedTo(theirNeed) {
if(theirNeedType === won.WON.BasicNeedTypeDemandCompacted) {
reNeedType = won.WON.BasicNeedTypeSupply;
descriptionPhrase = 'I have something similar to: ';
- } else if(theirNeedType === won.WON.BasicNeedTypeSupply) {
- reNeedType = won.WON.BasicNeedTypeDemandCompacted;
+ } else if(theirNeedType === won.WON.BasicNeedTypeSupplyCompacted) {
+ reNeedType = won.WON.BasicNeedTypeDemand;
descriptionPhrase = 'I want something like: ';
} else if(theirNeedType === won.WON.BasicNeedTypeDotogetherCompacted) {
reNeedType = won.WON.BasicNeedTypeDotogether;
