Skip to content

Commit

Permalink
update chats logic
Browse files Browse the repository at this point in the history
  • Loading branch information
cheryllium committed Jan 7, 2024
1 parent cc01cd6 commit 7cf3bdf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/chats.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ let pleasantChat = {
positive: ['smile', 'happy', 'heart', 'A-happy:had a nice chat with FISH2.', 'B-happy:had a nice chat with FISH1.'],
negative: ['angry', 'surprised', 'grumpy', 'A-unhappy:tried to have a nice chat, but FISH2 was in a bad mood.'],
isPositive: function (fish1, fish2) {
return Math.random() < 0.8;
if (!fish2.goodMood) {
return Math.random() < 0.3;
}
return true;
},
};
let prankChat = {
Expand Down

0 comments on commit 7cf3bdf

Please sign in to comment.