Commit 0b83901f authored by Chunchi Che's avatar Chunchi Che

fix link def

parent f5d5a2cb
......@@ -27,7 +27,7 @@ const TYPE_TOON = 0x400000; //
const TYPE_XYZ = 0x800000; //
const TYPE_PENDULUM = 0x1000000; //
const TYPE_SPSUMMON = 0x2000000; //
const TYPE_LINK = 0x4000000; //
export const TYPE_LINK = 0x4000000; //
/*
* 在做卡牌信息展示的时候,发现`CardMeta`里面的数据和`strings.conf`配置文件
......
......@@ -10,6 +10,7 @@ import {
Attribute2StringCodeMap,
extraCardTypes,
Race2StringCodeMap,
TYPE_LINK,
Type2StringCodeMap,
} from "../../../../common";
import { Desc } from "./Desc";
......@@ -43,7 +44,7 @@ export const CardModal = () => {
const { isOpen, meta, counters: _counters } = snap;
const name = meta?.text.name;
const types = meta?.data.type;
const types = extraCardTypes(meta?.data.type ?? 0);
const race = meta?.data.race;
const attribute = meta?.data.attribute;
const desc = meta?.text.desc;
......@@ -75,12 +76,11 @@ export const CardModal = () => {
style={{ borderRadius: 4 }}
/>
<Space direction="vertical" className={styles.info}>
<AtkLine atk={atk} def={def} />
<AttLine
types={extraCardTypes(types || 0)}
race={race}
attribute={attribute}
<AtkLine
atk={atk}
def={types.includes(TYPE_LINK) ? undefined : def}
/>
<AttLine types={types} race={race} attribute={attribute} />
{/* TODO: 只有怪兽卡需要展示攻击防御 */}
{/* TODO: 展示星级/LINK数 */}
{/* <CounterLine counters={counters} /> */}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment