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.
LaptopSimulator2015/zz_CaptchaGlitch_Empty/Empty.cs

18 lines
556 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Base;
namespace LaptopSimulator2015.Glitches
{
public class Empty : CaptchaGlitch
{
public double chance { get { if (currentLevel < 1) return 0; return Math.Min(currentLevel / 10d, 0.4); } }
public int currentLevel { get; set; }
public bool postGlitch => false;
public void apply(char inputChar, ref string inputString, char[] captchaChars, Random rnd) => inputString.Remove(0, 1);
}
}