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:
parent
e53fb0a8d7
commit
d0e6111ea1
@ -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)
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user