This repository has been archived on 2022-08-05. You can view files and clone it, but cannot push or open issues or pull requests.
2019-09-19 18:51:31 +02:00
|
|
|
|
using Base;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace LaptopSimulator2015.Glitches
|
|
|
|
|
{
|
|
|
|
|
public class Rand : CaptchaGlitch
|
|
|
|
|
{
|
2019-09-26 19:10:39 +02:00
|
|
|
|
public double chance { get { if (currentLevel < 2) return 0; return Math.Min((currentLevel - 1) / 16d, 0.4); } }
|
2019-09-19 18:51:31 +02:00
|
|
|
|
public int currentLevel { get; set; }
|
2019-09-26 19:10:39 +02:00
|
|
|
|
public bool postGlitch => false;
|
|
|
|
|
public void apply(char inputChar, ref string inputString, char[] captchaChars, Random rnd) => inputString += captchaChars[rnd.Next(captchaChars.Length - 1)];
|
2019-09-19 18:51:31 +02:00
|
|
|
|
}
|
|
|
|
|
}
|