每个精灵默认有 4 个技能槽,使用特定物品最多可以扩展到 10 个技能槽。当尝试学习时,有概率在其任何技能槽中学习新技能,同时覆盖掉该技能槽原有的技能。当然,也有一定几率会失败。
const base = 25;
const failure = base;
const slot1 = base + Math.sqrt(catalystsOnSlot1);
...
const slotN = base + Math.sqrt(catalystsOnSlotN);
const total = failure + slot1 + ...slotN;
const chanceOfFailure = failure/total;
const chanceSlot1 = slot1/total;
...
const chanceSlotN = slotN/total;