546 B
546 B
MercanRey6.js — confidenceFor() (satır 245)
function confidenceFor(profile, connections, online)
{
var base = Math.min(90, 30 + Number(profile.knowledge || 0) * 0.55);
if (online) base += 7;
if (connections.length > 0) base += Math.min(18, connections.length * 9);
if (listSize(profile.tags) >= 4) base += 4;
if (listSize(profile.itemWarnings) > 0) base += 3;
return Math.max(0, Math.min(99, Math.round(base)));
}