在进化过程中,旧的NFT会被烧毁。如果成功,则会生成一个稀有度更高的精灵宝可本。这意味着旧的宝可本的等级、名称和技能将丢失。但是,由于等级和技能增加了精灵的战力,因此有助于增加成功进化的几率。
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;