Skip to content

Commit

Permalink
more QuestTypeAchievement fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mnalis committed Oct 9, 2021
1 parent 6ba78e0 commit 41b1fb0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import de.westnordost.streetcomplete.data.meta.updateWithCheckDate
import de.westnordost.streetcomplete.data.osm.osmquests.OsmFilterQuestType
import de.westnordost.streetcomplete.data.osm.edits.update_tags.StringMapChangesBuilder
import de.westnordost.streetcomplete.quests.surface.Surface
import de.westnordost.streetcomplete.data.user.achievements.QuestTypeAchievement.BICYCLIST
import de.westnordost.streetcomplete.data.user.achievements.QuestTypeAchievement.BLIND
import de.westnordost.streetcomplete.data.user.achievements.QuestTypeAchievement.WHEELCHAIR

class AddRoadSmoothness : OsmFilterQuestType<SmoothnessAnswer>() {

Expand All @@ -27,6 +30,8 @@ class AddRoadSmoothness : OsmFilterQuestType<SmoothnessAnswer>() {
override val icon = R.drawable.ic_quest_street_surface_detail
override val isSplitWayEnabled = true

override val questTypeAchievements = listOf(BLIND, WHEELCHAIR, BICYCLIST)

override fun getTitle(tags: Map<String, String>): Int {
val hasName = tags.containsKey("name")
val isSquare = tags["area"] == "yes"
Expand Down

0 comments on commit 41b1fb0

Please sign in to comment.