-
-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define achievements inside quest types #3327
Conversation
so that typos will become compile-time errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, I got stuck in one place (isAchieved
function in AchievementGiver
class, see TODO comment added in last commit).
@westnordost Could you please already comment on the general direction of this PR and maybe guide me how to fix the issue that is now blocking me?
app/src/main/java/de/westnordost/streetcomplete/data/user/achievements/AchievementsModule.kt
Show resolved
Hide resolved
app/src/main/java/de/westnordost/streetcomplete/quests/camera_type/AddCameraType.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/de/westnordost/streetcomplete/quests/leaf_detail/AddForestLeafType.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/de/westnordost/streetcomplete/quests/oneway_suspects/AddSuspectedOneway.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/de/westnordost/streetcomplete/quests/orchard_produce/AddOrchardProduce.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/de/westnordost/streetcomplete/data/user/achievements/AchievementGiver.kt
Outdated
Show resolved
Hide resolved
...src/main/java/de/westnordost/streetcomplete/quests/defibrillator/AddIsDefibrillatorIndoor.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/de/westnordost/streetcomplete/quests/cycleway/AddCycleway.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/de/westnordost/streetcomplete/quests/camera_type/AddCameraType.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/de/westnordost/streetcomplete/quests/leaf_detail/AddForestLeafType.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/de/westnordost/streetcomplete/quests/oneway_suspects/AddSuspectedOneway.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/de/westnordost/streetcomplete/quests/orchard_produce/AddOrchardProduce.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/de/westnordost/streetcomplete/data/osm/edits/upload/ElementEditsUploader.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/de/westnordost/streetcomplete/data/user/achievements/AchievementsModule.kt
Show resolved
Hide resolved
app/src/main/java/de/westnordost/streetcomplete/data/user/achievements/AchievementGiver.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/de/westnordost/streetcomplete/data/user/achievements/AchievementGiver.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I stumbled upon the .has
, thought at first it is some extension function from Kotlin alike .contains
. Maybe it would be better to write it out, it's not much longer.
But in any case, otherwise, everything looks good! Thank you!
As suggested in #3311 (comment):