fix double joke

This commit is contained in:
Mikhail Aristov 2024-01-28 10:34:06 +01:00
parent 77f7b4c010
commit 36823f36c7
2 changed files with 29 additions and 29 deletions

View File

@ -145,7 +145,7 @@ func on_joke_finish(joke: Joke):
is_listening = false is_listening = false
var mood_change = profile.joke_mood_mapping.get(joke.type, 0) var mood_change = profile.joke_mood_mapping.get(joke.type, 0)
if joke.type == last_joke_heard: if joke.type == last_joke_heard:
mood_change = max(0, mood_change) mood_change = min(0, mood_change)
update_mood(mood_change) update_mood(mood_change)
last_joke_heard = joke.type last_joke_heard = joke.type

File diff suppressed because one or more lines are too long