Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
cardvisa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
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
花桃白音
cardvisa
Commits
6d65f5e9
Commit
6d65f5e9
authored
Jun 24, 2024
by
花桃白音
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
p tag check
parent
4dba01be
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
9 deletions
+40
-9
.vs/cardvisa/v17/.suo
.vs/cardvisa/v17/.suo
+0
-0
cardvisa/Form1.cs
cardvisa/Form1.cs
+40
-9
cardvisa/bin/Debug/cardvisa.exe
cardvisa/bin/Debug/cardvisa.exe
+0
-0
cardvisa/bin/Debug/cardvisa.pdb
cardvisa/bin/Debug/cardvisa.pdb
+0
-0
cardvisa/obj/Debug/cardvisa.exe
cardvisa/obj/Debug/cardvisa.exe
+0
-0
cardvisa/obj/Debug/cardvisa.pdb
cardvisa/obj/Debug/cardvisa.pdb
+0
-0
No files found.
.vs/cardvisa/v17/.suo
View file @
6d65f5e9
No preview for this file type
cardvisa/Form1.cs
View file @
6d65f5e9
...
...
@@ -984,7 +984,12 @@ namespace cardvisa
if
(
cdbh
.
cmds
.
Count
>
0
)
{
var
id
=
e
.
Index
>
0
?
(
e
.
Index
<
20
?
e
.
Index
:
20
)
:
1
;
switch
((
e
.
Index
==
21
||
e
.
Index
==
0
)?
cdbh
.
cmds
[
GetCardFromListID
(
id
)].
LFState
:
LFStates
.
other
)
var
sqd
=
cdbh
.
cmds
[
GetCardFromListID
(
id
)];
if
(
e
.
Index
==
21
||
e
.
Index
==
0
)
{
sqd
.
LFState
=
LFStates
.
other
;
}
switch
(
sqd
.
LFState
)
{
case
LFStates
.
Forbidden
:
myBrush
=
Brushes
.
Red
;
...
...
@@ -1010,8 +1015,7 @@ namespace cardvisa
private
void
listBox1_SelectedValueChanged
(
object
sender
,
EventArgs
e
)
{
if
(
button3
.
Text
==
"关闭库"
)
{
{
var
id
=
listBox1
.
SelectedIndex
;
if
(
id
>
0
&&
id
<=
20
)
{
...
...
@@ -1021,6 +1025,25 @@ namespace cardvisa
ctpinfo
.
cdinit
(
sqd
.
cmdd
.
race
,
"race"
);
ctpinfo
.
cdinit
(
sqd
.
cmdd
.
attribute
,
"attr"
);
var
lv
=
ctpinfo
.
GetLevel
(
sqd
.
cmdd
.
level
);
var
pp
=
ctpinfo
.
GetPend
(
sqd
.
cmdd
.
level
);
string
ptext
=
"刻度:"
+
pp
;
string
reg
=
"(?<=←)\\s{0,3}(?<lp>\\d+)\\s{0,3}【.{2,6}】\\s{0,3}(?<rp>\\d+)\\s{0,3}(?=→)"
;
if
(
ctpinfo
.
IsCardType
(
"灵摆"
))
{
Match
mt
=
Regex
.
Match
(
sqd
.
cmdt
.
desc
,
reg
);
if
(
mt
.
Success
)
{
//MessageBox.Show(mt.Groups["lp"].Value + "/" + mt.Groups["rp"].Value);
if
(
mt
.
Groups
[
"lp"
].
Value
!=
mt
.
Groups
[
"rp"
].
Value
||
mt
.
Groups
[
"rp"
].
Value
!=
mt
.
Groups
[
"rp"
].
Value
)
{
ptext
+=
"【左右刻度描述不一致】"
;
}
if
(
mt
.
Groups
[
"lp"
].
Value
!=
pp
.
ToString
()
||
mt
.
Groups
[
"rp"
].
Value
!=
pp
.
ToString
())
{
ptext
+=
"【描述刻度与cdb不一致】"
;
}
}
}
richTextBox1
.
Text
=
""
;
try
{
...
...
@@ -1040,21 +1063,29 @@ namespace cardvisa
richTextBox1
.
Text
+=
exc
.
ToString
();
}
richTextBox1
.
Text
=
//第一行内容
//卡名[编号]
sqd
.
cmdt
.
name
+
"["
+
sqd
.
cmdd
.
id
+
"]"
+
"\r\n"
+
//第二行
//[卡片种类|种族|属性]
(
ctpinfo
.
IsCardType
(
"怪兽"
)
?
"[怪兽|"
+
ctpinfo
.
CardTypeFormat
(
"怪兽"
)
+
"] "
+
ctpinfo
.
CardTypeFormat
(
""
,
"|"
,
"race"
)
+
"/"
+
ctpinfo
.
CardTypeFormat
(
""
,
"|"
,
"attr"
)
+
"\r\n"
+
"\r\n"
//第三行
//[星星]攻击/守备力 灵摆刻度
+
"["
+
(
ctpinfo
.
IsCardType
(
"超量"
)
?
"☆"
:
(
ctpinfo
.
IsCardType
(
"连接"
)
?
"LINK-"
:
"★"
))
+
lv
+
"] "
+
"攻击力:"
+
sqd
.
cmdd
.
atk
+
(
ctpinfo
.
IsCardType
(
"连接"
)
?
""
:
" / 守备力:"
+
sqd
.
cmdd
.
def
)
:
(
ctpinfo
.
IsCardType
(
"连接"
)
?
""
:
(
ctpinfo
.
IsCardType
(
"灵摆"
)
?
ptext
:
" / 守备力:"
+
sqd
.
cmdd
.
def
)):
//第二行,非怪兽的分支
(
ctpinfo
.
IsCardType
(
"魔法"
)
?
"[魔法"
+
ctpinfo
.
CardTypeFormat
(
"魔法"
,
"|"
,
"type"
,
"|"
)
+
"]"
:
(
ctpinfo
.
IsCardType
(
"陷阱"
)
?
"[陷阱"
+
ctpinfo
.
CardTypeFormat
(
"陷阱"
,
"|"
,
"type"
,
"|"
)
+
"]"
:
"[卡种错误]"
)))
+
"\r\n"
+
"]"
:
"[卡种错误]"
)))
+
"\r\n"
+
sqd
.
cmdt
.
desc
;
string
path
=
Path
.
GetDirectoryName
(
cdbh
.
openedfile
);
string
pathtemp
=
path
+
"\\pics\\"
+
sqd
.
code
+
".jpg"
;
picViewer
.
FillPic
(
pathtemp
);
...
...
@@ -1779,11 +1810,11 @@ namespace cardvisa
rt
=
rt
.
Length
>=
2
?
rt
.
Substring
(
rt
.
Length
-
1
,
1
)
:
rt
;
return
Convert
.
ToInt32
(
rt
,
16
);
}
public
int
Get
Rank
(
long
lv
)
public
int
Get
Pend
(
long
lv
)
{
string
rt
=
Convert
.
ToString
(
lv
,
16
);
rt
=
rt
.
Length
>=
4
?
rt
.
Substring
(
rt
.
Length
-
2
,
1
)
:
rt
;
return
Convert
.
ToInt32
(
rt
);
rt
=
rt
.
Length
>=
4
?
rt
.
Substring
(
rt
.
Length
-
5
,
1
)
:
"0"
;
return
Convert
.
ToInt32
(
rt
,
16
);
}
public
bool
IsCardType
(
string
typeName
)
{
...
...
cardvisa/bin/Debug/cardvisa.exe
View file @
6d65f5e9
No preview for this file type
cardvisa/bin/Debug/cardvisa.pdb
View file @
6d65f5e9
No preview for this file type
cardvisa/obj/Debug/cardvisa.exe
View file @
6d65f5e9
No preview for this file type
cardvisa/obj/Debug/cardvisa.pdb
View file @
6d65f5e9
No preview for this file type
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