@@ -8,35 +8,33 @@ export type Captcha = {
88 } [ ] ;
99} ;
1010
11- const captchas : { name : string ; preheading : string ; heading : string ; shuffle ?: boolean ; correct : boolean [ ] } [ ] = [
11+ const captchas : { name : string ; prefix ? : string ; heading : string ; shuffle ?: boolean ; correct : boolean [ ] } [ ] = [
1212 {
1313 name : "jigsaw" ,
14- preheading : "Select all squares with a" ,
14+ prefix : "a" ,
1515 heading : "valid Jigsaw Block placement." ,
1616 shuffle : true ,
1717 correct : [ true , true , true , true , true , true , false , false , false ] ,
1818 } ,
1919 {
2020 name : "typo" ,
21- preheading : "Select all squares with a" ,
21+ prefix : "a" ,
2222 heading : "typo." ,
2323 correct : [ true , false , true , true , false , true , false , false , false ] ,
2424 } ,
2525 {
2626 name : "herobrine" ,
27- preheading : "Select all squares with" ,
2827 heading : "Herobrine." ,
2928 correct : [ false , false , false , true , true , false , false , false , false ] ,
3029 } ,
3130 {
3231 name : "pregnancy" ,
33- preheading : "Select all squares with" ,
3432 heading : "abusive parents." ,
3533 correct : [ false , true , true , true , true , true , true , true , true ] ,
3634 } ,
3735 {
3836 name : "creeper" ,
39- preheading : "Select all squares with a" ,
37+ prefix : "a" ,
4038 heading : "Creeper." ,
4139 shuffle : true ,
4240 correct : [ false , true , true , true , true , true , false , true , false ] ,
@@ -61,7 +59,7 @@ export const getRandomCaptcha = async (exclude?: string) => {
6159
6260 return {
6361 name : captcha . name ,
64- preheading : captcha . preheading ,
62+ preheading : `Select all squares with ${ captcha . prefix ?? "" } ` ,
6563 heading : captcha . heading ,
6664 images : captcha . shuffle ? shuffle ( unshuffledImages ) : unshuffledImages ,
6765 } satisfies Captcha ;
0 commit comments