From e09292d3034397f4a9fcafc2aaeb40238ba8f8d8 Mon Sep 17 00:00:00 2001 From: wow890209 Date: Mon, 2 Oct 2023 00:20:32 +0800 Subject: [PATCH] refactor --- .../quest/domain/quests/TutorialQuests.kt | 8 ++++---- .../Memory/repositoryimpl/MemoryQuestRepository.kt | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/utopia-gamification/src/main/kotlin/tw/waterballsa/utopia/utopiagamification/quest/domain/quests/TutorialQuests.kt b/utopia-gamification/src/main/kotlin/tw/waterballsa/utopia/utopiagamification/quest/domain/quests/TutorialQuests.kt index 5988cf72..da8deb5d 100644 --- a/utopia-gamification/src/main/kotlin/tw/waterballsa/utopia/utopiagamification/quest/domain/quests/TutorialQuests.kt +++ b/utopia-gamification/src/main/kotlin/tw/waterballsa/utopia/utopiagamification/quest/domain/quests/TutorialQuests.kt @@ -139,7 +139,7 @@ val MemoryQuestRepository.firstMessageActionQuest: Quest ) ) -val MemoryQuestRepository.SendContainsImageMessageInEngineerLifeChannelQuest: Quest +val MemoryQuestRepository.sendContainsImageMessageInEngineerLifeChannelQuest: Quest get() = findById(4) ?: save( Quest( id = 4, @@ -177,7 +177,7 @@ val MemoryQuestRepository.SendContainsImageMessageInEngineerLifeChannelQuest: Qu ) ) -val MemoryQuestRepository.ReplyToAnyoneInCareerAdvancementTopicChannelQuest: Quest +val MemoryQuestRepository.replyToAnyoneInCareerAdvancementTopicChannelQuest: Quest get() = findById(5) ?: save( Quest( id = 5, @@ -293,7 +293,7 @@ val MemoryQuestRepository.flagPostQuest: Quest ) ) -val MemoryQuestRepository.SendMessageInVoiceChannelQuest: Quest +val MemoryQuestRepository.sendMessageInVoiceChannelQuest: Quest get() = findById(8) ?: save( Quest( id = 8, @@ -333,7 +333,7 @@ val MemoryQuestRepository.SendMessageInVoiceChannelQuest: Quest ) ) -val MemoryQuestRepository.JoinActivityQuest: Quest +val MemoryQuestRepository.joinActivityQuest: Quest get() = findById(9) ?: save( Quest( id = 9, diff --git a/utopia-gamification/src/main/kotlin/tw/waterballsa/utopia/utopiagamification/repositories/Memory/repositoryimpl/MemoryQuestRepository.kt b/utopia-gamification/src/main/kotlin/tw/waterballsa/utopia/utopiagamification/repositories/Memory/repositoryimpl/MemoryQuestRepository.kt index d85c51f8..f1704bfa 100644 --- a/utopia-gamification/src/main/kotlin/tw/waterballsa/utopia/utopiagamification/repositories/Memory/repositoryimpl/MemoryQuestRepository.kt +++ b/utopia-gamification/src/main/kotlin/tw/waterballsa/utopia/utopiagamification/repositories/Memory/repositoryimpl/MemoryQuestRepository.kt @@ -15,12 +15,12 @@ class MemoryQuestRepository(val wsa: WsaDiscordProperties) : QuestRepository { unlockAcademyQuest selfIntroductionQuest firstMessageActionQuest - SendContainsImageMessageInEngineerLifeChannelQuest - ReplyToAnyoneInCareerAdvancementTopicChannelQuest + sendContainsImageMessageInEngineerLifeChannelQuest + replyToAnyoneInCareerAdvancementTopicChannelQuest watchVideoQuest flagPostQuest - SendMessageInVoiceChannelQuest - JoinActivityQuest + sendMessageInVoiceChannelQuest + joinActivityQuest quizQuest }