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
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
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
bb8f4fec
Commit
bb8f4fec
authored
Jun 09, 2016
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ai version
parent
747a8251
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
ygopro-server.coffee
ygopro-server.coffee
+8
-0
ygopro-server.js
ygopro-server.js
+8
-0
No files found.
ygopro-server.coffee
View file @
bb8f4fec
...
...
@@ -784,6 +784,14 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
return
else
windbot
=
_
.
sample
settings
.
modules
.
windbots
if
info
.
version
==
4921
#YGOMobile不更新,强行兼容
info
.
version
=
settings
.
version
struct
=
ygopro
.
structs
[
"CTOS_JoinGame"
]
struct
.
_setBuff
(
buffer
)
struct
.
set
(
"version"
,
info
.
version
)
buffer
=
struct
.
buffer
ygopro
.
stoc_send_chat
(
client
,
"您的版本号过低,可能出现未知问题,电脑用户请升级版本,YGOMobile用户请等待作者更新"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
)
room
=
ROOM_find_or_create_by_name
(
'AI#'
+
Math
.
floor
(
Math
.
random
()
*
100000
))
# 这个 AI# 没有特殊作用, 仅作为标记
if
!
room
...
...
ygopro-server.js
View file @
bb8f4fec
...
...
@@ -971,6 +971,14 @@
}
else
{
windbot
=
_
.
sample
(
settings
.
modules
.
windbots
);
}
if
(
info
.
version
===
4921
)
{
info
.
version
=
settings
.
version
;
struct
=
ygopro
.
structs
[
"
CTOS_JoinGame
"
];
struct
.
_setBuff
(
buffer
);
struct
.
set
(
"
version
"
,
info
.
version
);
buffer
=
struct
.
buffer
;
ygopro
.
stoc_send_chat
(
client
,
"
您的版本号过低,可能出现未知问题,电脑用户请升级版本,YGOMobile用户请等待作者更新
"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
);
}
room
=
ROOM_find_or_create_by_name
(
'
AI#
'
+
Math
.
floor
(
Math
.
random
()
*
100000
));
if
(
!
room
)
{
ygopro
.
stoc_die
(
client
,
"
服务器已经爆满,请稍候再试
"
);
...
...
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