Commit be7c6c84 authored by timel's avatar timel

fix: remove card list modal in message store

parent 93b6a609
Pipeline #22366 failed with stages
in 12 minutes and 24 seconds
...@@ -21,14 +21,6 @@ export interface ModalState { ...@@ -21,14 +21,6 @@ export interface ModalState {
interactivies: { desc: string; response: number; effectCode?: number }[]; interactivies: { desc: string; response: number; effectCode?: number }[];
counters: { [type: number]: number }; counters: { [type: number]: number };
}; };
// 卡牌列表弹窗
cardListModal: {
isOpen: boolean;
list: {
meta?: CardMeta;
interactivies: { desc: string; response: number }[];
}[];
};
// Yes or No弹窗 // Yes or No弹窗
yesNoModal: { yesNoModal: {
isOpen: boolean; isOpen: boolean;
......
...@@ -259,21 +259,14 @@ const onCardClick = (card: CardType) => { ...@@ -259,21 +259,14 @@ const onCardClick = (card: CardType) => {
card.location.sequence card.location.sequence
); );
if (overlayMaterials.length > 0) { if (overlayMaterials.length > 0) {
messageStore.cardListModal.list = displayCardListModal({
overlayMaterials.map((overlay) => ({ isZone: false,
meta: { monster: card,
id: overlay.code, });
text: overlay.meta.text,
data: overlay.meta.data,
},
interactivies: [],
})) || [];
messageStore.cardListModal.isOpen = true;
} }
}; };
const onFieldClick = (card: CardType) => { const onFieldClick = (card: CardType) => {
messageStore.cardListModal.isOpen = true;
displayCardListModal({ displayCardListModal({
isZone: true, isZone: true,
zone: card.location.zone, zone: card.location.zone,
......
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