Make abuse report window more user friendly

This commit is contained in:
2021-05-17 11:16:20 +02:00
parent 5be98caadc
commit 5875d187b6
8 changed files with 92 additions and 50 deletions

View File

@@ -46,20 +46,12 @@ func adType() int {
// Intn returns a number up to n, but never n itself. So to get a random 0
// or 1 we need to give it n=2. We can use this function to make other
// splits like 1/3 1/4, etc
switch i := rand.Intn(20); i {
case 0, 1: // 10%
switch i := rand.Intn(10); i {
case 0: // 10%
return amarulaSolutions
case 2: // 5%
return pdpro1
case 3: // 5%
return pdpro2
case 4: // 5%
return pdpro3
case 5: // 5%
return pdpro4
case 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17: // 60%
case 1, 2, 3, 4, 5: // 50%
return brave
case 18, 19: // 10%
case 6, 7, 8, 9: // 40%
return aAds
default:
panic(fmt.Errorf("random number generator returned unrecognised number: %d", i))