benneb / InfoCompte7

Hi,

I've a issue with this variable on percentageCrawler function:

var percentageProdSupp = crawler * crawler_value;

crawler return a object and that not working, I fix with

var percentageProdSupp = parseInt(crawler) * crawler_value;

But I don't know what is the root issue

function percentageCrawler(mm, mc, md, crawler)
{
crawler = isNaN(crawler)? 0 : crawler;
var percentageMax = Math.min(bonusMaxPlanete(parseInt(mm), parseInt(mc), parseInt(md)), 50);
var percentageProdSupp = crawler * crawler_value;
var resultat = percentageProdSupp >= percentageMax ? percentageMax : percentageProdSupp
return percentageProdSupp >= percentageMax ? percentageMax : percentageProdSupp;
}