Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Neos
Commits
5ebda8bb
Commit
5ebda8bb
authored
Sep 04, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/feedback' into 'main'
修复一些玩家反馈的Bug 02 See merge request
mycard/Neos!295
parents
f5d5a2cb
130e5bdc
Pipeline
#23355
passed with stages
in 12 minutes and 1 second
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
9 deletions
+12
-9
src/common.ts
src/common.ts
+1
-1
src/service/duel/selectEffectYn.ts
src/service/duel/selectEffectYn.ts
+4
-1
src/ui/BuildDeck/CardDetail.tsx
src/ui/BuildDeck/CardDetail.tsx
+1
-1
src/ui/Duel/Message/CardModal/index.tsx
src/ui/Duel/Message/CardModal/index.tsx
+6
-6
No files found.
src/common.ts
View file @
5ebda8bb
...
...
@@ -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`配置文件
...
...
src/service/duel/selectEffectYn.ts
View file @
5ebda8bb
...
...
@@ -31,7 +31,10 @@ export default async (selectEffectYn: MsgSelectEffectYn) => {
// TODO: 国际化文案
const
desc
=
fetchStrings
(
Region
.
System
,
effect_description
);
const
desc
=
fetchStrings
(
Region
.
System
,
effect_description
===
0
?
200
:
effect_description
,
);
const
meta
=
fetchCard
(
code
);
await
displayYesNoModal
(
textGenerator
(
desc
,
meta
,
location
));
};
src/ui/BuildDeck/CardDetail.tsx
View file @
5ebda8bb
...
...
@@ -101,7 +101,7 @@ export const CardDetail: React.FC<{
}
}
return
result
;
},
[
c
ode
]);
},
[
c
ard
]);
return
(
<
div
className=
{
classNames
(
styles
.
detail
,
{
[
styles
.
open
]:
open
})
}
>
...
...
src/ui/Duel/Message/CardModal/index.tsx
View file @
5ebda8bb
...
...
@@ -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} /> */
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment