fixed # 修复大量BUG

This commit is contained in:
2026-11-22 17:36:42 +08:00
parent 9c3687fe7f
commit f955716c97
29 changed files with 934 additions and 319 deletions
+3 -1
View File
@@ -4,7 +4,9 @@ import { relicRandomGet } from "./random.js";
export const restRecovery = run => 8+heldRelics(run).reduce((n,r)=>n+(r.rule.restHeal || 0),0);
export const relicShopPrice = (run,base) => Math.max(1,Math.floor(heldRelics(run).reduce((n,r)=>n*(r.rule.shopDiscount || 1),base)));
export function recordRelicShopPurchase(run){relicState(run).mawBankBroken=true;}
export function recordRelicShopPurchase(run) {
if (heldRelics(run).some(relic => relic.rule.breaksOnPurchase)) relicState(run).mawBankBroken = true;
}
export function relicRestChoices(run) {
const state = relicState(run), choices = [];
for (const relic of heldRelics(run)) {