Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
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
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
srvpro
Commits
db1c8950
Commit
db1c8950
authored
9 years ago
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wtf fix
parent
80861d83
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
ygopro-server.coffee
ygopro-server.coffee
+3
-3
ygopro-server.js
ygopro-server.js
+0
-3
No files found.
ygopro-server.coffee
View file @
db1c8950
...
...
@@ -1372,13 +1372,13 @@ ygopro.ctos_follow 'UPDATE_DECK', true, (buffer, info, client, server)->
struct
.
set
(
"sidec"
,
deck_side
.
length
)
struct
.
set
(
"deckbuf"
,
deckbuf
)
buffer
=
struct
.
buffer
log
.
info
(
"deck ok: "
+
client
.
name
)
#
log.info("deck ok: " + client.name)
ygopro
.
stoc_send_chat
(
client
,
"成功参加比赛"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
)
else
log
.
info
(
"bad deck: "
+
client
.
name
+
" / "
+
buff_main
+
" / "
+
buff_side
)
#
log.info("bad deck: " + client.name + " / " + buff_main + " / " + buff_side)
ygopro
.
stoc_send_chat
(
client
,
"您的卡组与报名卡组不符,请重新选择"
,
ygopro
.
constants
.
COLORS
.
RED
)
else
log
.
info
(
"player deck not found: "
+
client
.
name
)
#
log.info("player deck not found: " + client.name)
ygopro
.
stoc_send_chat
(
client
,
"没有找到您的报名信息,请联系主持"
,
ygopro
.
constants
.
COLORS
.
RED
)
return
false
...
...
This diff is collapsed.
Click to expand it.
ygopro-server.js
View file @
db1c8950
...
...
@@ -1717,14 +1717,11 @@
struct
.
set
(
"
sidec
"
,
deck_side
.
length
);
struct
.
set
(
"
deckbuf
"
,
deckbuf
);
buffer
=
struct
.
buffer
;
log
.
info
(
"
deck ok:
"
+
client
.
name
);
ygopro
.
stoc_send_chat
(
client
,
"
成功参加比赛
"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
);
}
else
{
log
.
info
(
"
bad deck:
"
+
client
.
name
+
"
/
"
+
buff_main
+
"
/
"
+
buff_side
);
ygopro
.
stoc_send_chat
(
client
,
"
您的卡组与报名卡组不符,请重新选择
"
,
ygopro
.
constants
.
COLORS
.
RED
);
}
}
else
{
log
.
info
(
"
player deck not found:
"
+
client
.
name
);
ygopro
.
stoc_send_chat
(
client
,
"
没有找到您的报名信息,请联系主持
"
,
ygopro
.
constants
.
COLORS
.
RED
);
}
}
...
...
This diff is collapsed.
Click to expand it.
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