<commit_before>var WaveManager = function (lightOverlay)
{
    this._currentWave = 0;
    this._lightOverlay = lightOverlay;
    this.t = 0;
    this.op = 'plus';

    this.colorPoints = [
        {t: 0, r: 0.02, g: 0, b: 0.07},       // Midst of the night
        {t: 0.5, r: 0.22, g: 0.3, b: 0.27},     // Morning
        {t: 1, r: 0.62, g: 0.7, b: 0.67},     // Midst of the day
    ];

    this.start = function ()
    {
        this._started = true;
    };

    this.update = function (dt)
    {
        switch (this.op)
        {
            case 'plus':
                this.t+=dt*0.045;
                break;
            case 'minus':
                this.t-=dt*0.045;
                break;
        }

        if (this.t < 0.5)
        {
            var t = this.t * 2;

            this._lightOverlay._overlay.setBlend(
                Math.lerp(0.02, 0.22, t),
                Math.lerp(0.0, 0.3, t),
                Math.lerp(0.07, 0.27, t)
            );
        }
        else if (this.t < 1)
        {
            var t = (this.t - 0.5) * 2;
            this._lightOverlay._overlay.setBlend(
                Math.lerp(0.22, 0.62, t),
                Math.lerp(0.3, 0.7, t),
                Math.lerp(0.27, 0.67, t)
            );
        }
        
        if (this.t <= 0)
        {
            this.op = 'plus';
        }
        
        if (this.t >= 1)
        {
            this.op = 'minus';
        }
    };
};<commit_msg>Hurdur wave spawnings<commit_after>var WaveManager = function (lightOverlay)
{
    this._currentWave = 0;
    this._lightOverlay = lightOverlay;
    this.t = 0;
    this.op = 'plus';

    this.colorPoints = [
        {t: 0, r: 0.02, g: 0, b: 0.07},       // Midst of the night
        {t: 0.5, r: 0.22, g: 0.3, b: 0.27},     // Morning
        {t: 1, r: 0.62, g: 0.7, b: 0.67},     // Midst of the day
    ];

    this.start = function ()
    {
        this._started = true;
    };

    this.update = function (dt)
    {
        switch (this.op)
        {
            case 'plus':
                this.t+=dt*0.045;
                break;
            case 'minus':
                this.t-=dt*0.045;
                break;
        }

        if (this.t < 0.5)
        {
            var t = this.t * 2;

            this._lightOverlay._overlay.setBlend(
                Math.lerp(0.02, 0.22, t),
                Math.lerp(0.0, 0.3, t),
                Math.lerp(0.07, 0.27, t)
            );
        }
        else if (this.t < 1)
        {
            var t = (this.t - 0.5) * 2;
            this._lightOverlay._overlay.setBlend(
                Math.lerp(0.22, 0.62, t),
                Math.lerp(0.3, 0.7, t),
                Math.lerp(0.27, 0.67, t)
            );
        }
        
        if (this.t <= 0)
        {
            this.op = 'plus';
        }
        
        if (this.t >= 1)
        {
            this.op = 'minus';
        }

        this.spawnWave();
    };

    this.spawnWave = function ()
    {
        var amountMobs = Math.floor(2 + ((++this._currentWave) * Math.random()) * 0.5);

        for (var i = 0; i < amountMobs; i++)
        {
            
        }
    }
};
{'fraction_non_alphanumeric': 0.1538216560509554, 'fraction_numerical': 0.050955414012738856, 'mean_word_length': 0.9993634627625716, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2193123', 'n_tokens_mistral': 1235, 'n_tokens_neox': 1110, 'n_words': 236}