feedback7 R23-TOAST: 拟态物质 / 简易通讯机 / 寻呼模块 that grant nothing say why — 「{who}:卡池中已没有{name}」 (拟态物质 with 2 copies owned and the shared pool out: 1 elite + 2 normal 溯光星源 hold all 5 of the Ⅵ阶's copies) or 「{who}:没有可获得的同盟约干员」; the item is still destroyed (装备时销毁). GitHub #401, the owner's OK of 2026-10-09; en / ja / ko / zh-TW; golden: unchanged

This commit is contained in:
sganggs committed 2026-10-09 01:05:07 +08:00
1 parent 9bacd9ad45
commit 8c76309796
8 files changed
+72 -6

No files matched your search

+3
View File
@@ -33,6 +33,7 @@
import { itemKeyOf, isCoreBond } from '../support/index.js';
import { metaBonds } from '../support/meta.js';
import { msg, dn } from '../../../../shared/i18n.js';
const int = (v, d = 0) => (Number.isFinite(v) ? Math.trunc(v) : d);
@@ -102,6 +103,8 @@ export function registerMeta(registry) {
if (id) ids.push(id);
}
if (ids.length) ctx.offerChess(ids, { source: 'item' });
// nothing to offer (e.g. 缪尔赛思's 调和 below shop level 6): still destroyed — say why (GitHub #401, builtinMeta toastNothing)
else ctx.toast(msg('{who}:没有可获得的同盟约干员', { who: dn(ctx.gd.item(ev.item?.id)?.name || '') }), 'warn');
},
}));