feedback2 WL: 特性 shows the chosen module's line also on a record cloned for another skill or module (the in-match card too); found by the Grok review of #64
This commit is contained in:
1 parent
4c78ab94e6
commit
187cc91216
2 files changed
+17
-1
No files matched your search
@@ -274,7 +274,9 @@ export function BondChips({ bondIds, bonds = [], onBond = null, off = null, gran
|
||||
export function traitText(c, golden, lo) {
|
||||
const t = (lo?.record || c).trait || {};
|
||||
const base = t.descRaw || t.desc || '';
|
||||
if (!golden || lo?.record !== c) return base;
|
||||
if (!golden) return base;
|
||||
// the record's own module line, also for a record cloned for another skill or module (a 不装备 record carries none) —
|
||||
// until 0.1.2 a clone fell back to the class trait (Grok review of GitHub #64; the in-match card had it too)
|
||||
return t.moduleDescRaw || base;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user