1
0
forked from 0ad/0ad

Enable eslint rule no-floating-decimal and remove all superfluous floating decimal points.

Differential Revision: https://code.wildfiregames.com/D2003
Patch By: Krinkle
This was SVN commit r22472.
This commit is contained in:
elexis 2019-07-14 10:03:10 +00:00
parent e53fb0a8d7
commit d0e6111ea1
2 changed files with 3 additions and 2 deletions

View File

@ -521,12 +521,12 @@ m.HQ.prototype.checkEvents = function(gameState, events)
}
if (decayToGaia)
continue;
let ratioMax = 0.70 + randFloat(0., 0.1);
let ratioMax = 0.7 + randFloat(0, 0.1);
for (let evt of events.Attacked)
{
if (ent.id() != evt.target)
continue;
ratioMax = 0.85 + randFloat(0., 0.1);
ratioMax = 0.85 + randFloat(0, 0.1);
break;
}
if (captureRatio > ratioMax)

View File

@ -15,6 +15,7 @@
"no-extra-boolean-cast": 0,
"no-extra-parens": 0,
"no-extra-semi": 1,
"no-floating-decimal": 1,
"no-func-assign": 1,
"no-negated-in-lhs": 1,
"no-obj-calls": 1,