wrined User

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;
}