Compare commits

...

1 Commits

Author SHA1 Message Date
HF 4760e17a15 increase turkey cooldown temporarily 2023-03-20 16:48:15 +01:00
1 changed files with 4 additions and 1 deletions

View File

@ -113,8 +113,11 @@ export default async function drawByOffsets(
const isAdmin = (user.userlvl === 1);
const req = (isAdmin) ? null : canvas.req;
const clrIgnore = canvas.cli || 0;
const factor = (isAdmin || (user.userlvl > 0 && pixels[0][1] < clrIgnore))
let factor = (isAdmin || (user.userlvl > 0 && pixels[0][1] < clrIgnore))
? 0.0 : coolDownFactor;
if (user.country === 'tr') {
factor *= 2.0;
}
const bcd = canvas.bcd * factor;
const pcd = (canvas.pcd) ? canvas.pcd * factor : bcd;
const pxlOffsets = [];