From 4df9632d7c7093511b6e3b2349ee5d2fd99cb681 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 23 Jun 2023 22:42:19 +0200 Subject: [PATCH] Themes: add 'hoops' question to basketball pitches --- assets/layers/sport_pitch/sport_pitch.json | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/assets/layers/sport_pitch/sport_pitch.json b/assets/layers/sport_pitch/sport_pitch.json index e0f2ff3817..206e715bf9 100644 --- a/assets/layers/sport_pitch/sport_pitch.json +++ b/assets/layers/sport_pitch/sport_pitch.json @@ -178,6 +178,39 @@ ], "id": "sport_pitch-sport" }, + { + "id": "basketball-hoops", + "question": { + "en": "How much basketball hoops does this pitch have?" + }, + "mappings": [ + { + "if": "hoops=1", + "then": { + "en": "This basketball pitch has a single hoop" + } + }, + { + "if": "hoops=2", + "then": { + "en": "This basketball pitch has two hoops" + } + }, + { + "if": "hoops=4", + "then": { + "en": "This basketball pitch has four hoops" + } + }, + { + "if": "hoops~*", + "then": { + "en": "This basketball pitch has {hoops} hoops" + }, + "hideInAnswer": true + } + ] + }, { "question": { "nl": "Wat is de ondergrond van dit sportveld?",