进化
Evolution
Last updated
Evolution
Last updated
const base = 10**(rarity+1);
const success = (power/10) + catalysts;
const failure = (success > base * 8) ? (base * 2) : (base * 10 - success);
const evolution = canEvolve ? (success * 2 / 3) : 0;
const mutation = success - evolution;
const total = success + failure;
const chanceOfEvolution = evolution / total;
const chanceOfMutation = mutation / total;
const chanceOfFailure = failure / total;