Files

562 B
Raw Permalink Blame History

Darklord.js — tozLoop() (satır 2857)

← Darklord.js · ← Master

function tozLoop(c, playerName, runId, tick)
{
    if (!isTozActive(playerName)) return;
    if (getTozRun(playerName) !== Number(runId)) return;

    var p = findPlayer(c, playerName);
    if (!p)
    {
        setTozActive(playerName, false);
        return;
    }

    applyTozState(c, p, tick);

    c.scheduleScript(TOZ_LOOP_TICKS, function(ctx) {
        tozLoop(ctx, playerName, runId, tick + 1);
    });
}