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
197ac9dc
Commit
197ac9dc
authored
Jun 21, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update deck_bad
parent
0c1cfe8b
Pipeline
#37919
failed with stages
in 6 minutes and 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
22 deletions
+29
-22
ygopro-server.coffee
ygopro-server.coffee
+13
-10
ygopro-server.js
ygopro-server.js
+16
-12
No files found.
ygopro-server.coffee
View file @
197ac9dc
...
@@ -3333,13 +3333,13 @@ ygopro.ctos_follow 'UPDATE_DECK', true, (buffer, info, client, server, datas)->
...
@@ -3333,13 +3333,13 @@ ygopro.ctos_follow 'UPDATE_DECK', true, (buffer, info, client, server, datas)->
CLIENT_kick_reconnect
(
client
,
buffer
)
CLIENT_kick_reconnect
(
client
,
buffer
)
else
else
ygopro
.
stoc_send_chat
(
client
,
"${deck_incorrect_reconnect}"
,
ygopro
.
constants
.
COLORS
.
RED
)
ygopro
.
stoc_send_chat
(
client
,
"${deck_incorrect_reconnect}"
,
ygopro
.
constants
.
COLORS
.
RED
)
ygopro
.
stoc_send
(
client
,
'HS_PLAYER_CHANGE'
,
{
status
:
(
client
.
pos
<<
4
)
|
0xa
})
ygopro
.
stoc_send
(
client
,
'ERROR_MSG'
,
{
ygopro
.
stoc_send
(
client
,
'ERROR_MSG'
,
{
msg
:
2
,
msg
:
2
,
code
:
0
code
:
0
})
})
ygopro
.
stoc_send
(
client
,
'HS_PLAYER_CHANGE'
,
{
status
:
(
client
.
pos
<<
4
)
|
0xa
})
return
true
return
true
room
=
ROOM_all
[
client
.
rid
]
room
=
ROOM_all
[
client
.
rid
]
return
false
unless
room
return
false
unless
room
...
@@ -3365,17 +3365,20 @@ ygopro.ctos_follow 'UPDATE_DECK', true, (buffer, info, client, server, datas)->
...
@@ -3365,17 +3365,20 @@ ygopro.ctos_follow 'UPDATE_DECK', true, (buffer, info, client, server, datas)->
CLIENT_kick
(
room
.
dueling_players
[
oppo_pos
-
win_pos
])
CLIENT_kick
(
room
.
dueling_players
[
oppo_pos
-
win_pos
])
CLIENT_kick
(
room
.
dueling_players
[
oppo_pos
-
win_pos
+
1
])
if
room
.
hostinfo
.
mode
==
2
CLIENT_kick
(
room
.
dueling_players
[
oppo_pos
-
win_pos
+
1
])
if
room
.
hostinfo
.
mode
==
2
return
true
return
true
struct
=
ygopro
.
structs
.
get
(
"deck"
)
struct
.
_setBuff
(
buffer
)
deck_ok
=
(
msg
)
->
deck_ok
=
(
msg
)
->
ygopro
.
stoc_send_chat
(
client
,
msg
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
)
await
ygopro
.
stoc_send_chat
(
client
,
msg
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
)
return
false
return
false
deck_bad
=
(
msg
)
->
deck_bad
=
(
msg
)
->
struct
.
set
(
"mainc"
,
1
)
struct
.
set
(
"sidec"
,
1
)
struct
.
set
(
"deckbuf"
,
[
4392470
,
4392470
])
ygopro
.
stoc_send_chat
(
client
,
msg
,
ygopro
.
constants
.
COLORS
.
RED
)
ygopro
.
stoc_send_chat
(
client
,
msg
,
ygopro
.
constants
.
COLORS
.
RED
)
return
false
if
room
.
duel_stage
==
ygopro
.
constants
.
DUEL_STAGE
.
BEGIN
ygopro
.
stoc_send
(
client
,
'HS_PLAYER_CHANGE'
,
{
status
:
(
client
.
pos
<<
4
)
|
0xa
})
ygopro
.
stoc_send
(
client
,
'ERROR_MSG'
,
{
msg
:
2
,
code
:
0
})
return
true
if
room
.
random_type
or
room
.
arena
if
room
.
random_type
or
room
.
arena
if
client
.
pos
==
0
if
client
.
pos
==
0
room
.
waiting_for_player
=
room
.
waiting_for_player2
room
.
waiting_for_player
=
room
.
waiting_for_player2
...
...
ygopro-server.js
View file @
197ac9dc
...
@@ -4437,7 +4437,7 @@
...
@@ -4437,7 +4437,7 @@
});
});
ygopro
.
ctos_follow
(
'
UPDATE_DECK
'
,
true
,
async
function
(
buffer
,
info
,
client
,
server
,
datas
)
{
ygopro
.
ctos_follow
(
'
UPDATE_DECK
'
,
true
,
async
function
(
buffer
,
info
,
client
,
server
,
datas
)
{
var
athleticCheckResult
,
buff_main
,
buff_side
,
card
,
current_deck
,
deck
,
deck_array
,
deck_bad
,
deck_main
,
deck_ok
,
deck_side
,
deck_text
,
deckbuf_from_challonge
,
decks
,
found_deck
,
i
,
j
,
l
,
len
,
len1
,
line
,
oppo_pos
,
recover_player_data
,
recoveredDeck
,
room
,
struct
,
trim_deckbuf
,
win_pos
;
var
athleticCheckResult
,
buff_main
,
buff_side
,
card
,
current_deck
,
deck
,
deck_array
,
deck_bad
,
deck_main
,
deck_ok
,
deck_side
,
deck_text
,
deckbuf_from_challonge
,
decks
,
found_deck
,
i
,
j
,
l
,
len
,
len1
,
line
,
oppo_pos
,
recover_player_data
,
recoveredDeck
,
room
,
trim_deckbuf
,
win_pos
;
if
(
settings
.
modules
.
reconnect
.
enabled
&&
client
.
pre_reconnecting
)
{
if
(
settings
.
modules
.
reconnect
.
enabled
&&
client
.
pre_reconnecting
)
{
if
(
!
CLIENT_is_able_to_reconnect
(
client
)
&&
!
CLIENT_is_able_to_kick_reconnect
(
client
))
{
if
(
!
CLIENT_is_able_to_reconnect
(
client
)
&&
!
CLIENT_is_able_to_kick_reconnect
(
client
))
{
ygopro
.
stoc_send_chat
(
client
,
"
${reconnect_failed}
"
,
ygopro
.
constants
.
COLORS
.
RED
);
ygopro
.
stoc_send_chat
(
client
,
"
${reconnect_failed}
"
,
ygopro
.
constants
.
COLORS
.
RED
);
...
@@ -4448,13 +4448,13 @@
...
@@ -4448,13 +4448,13 @@
CLIENT_kick_reconnect
(
client
,
buffer
);
CLIENT_kick_reconnect
(
client
,
buffer
);
}
else
{
}
else
{
ygopro
.
stoc_send_chat
(
client
,
"
${deck_incorrect_reconnect}
"
,
ygopro
.
constants
.
COLORS
.
RED
);
ygopro
.
stoc_send_chat
(
client
,
"
${deck_incorrect_reconnect}
"
,
ygopro
.
constants
.
COLORS
.
RED
);
ygopro
.
stoc_send
(
client
,
'
HS_PLAYER_CHANGE
'
,
{
status
:
(
client
.
pos
<<
4
)
|
0xa
});
ygopro
.
stoc_send
(
client
,
'
ERROR_MSG
'
,
{
ygopro
.
stoc_send
(
client
,
'
ERROR_MSG
'
,
{
msg
:
2
,
msg
:
2
,
code
:
0
code
:
0
});
});
ygopro
.
stoc_send
(
client
,
'
HS_PLAYER_CHANGE
'
,
{
status
:
(
client
.
pos
<<
4
)
|
0xa
});
}
}
return
true
;
return
true
;
}
}
...
@@ -4507,18 +4507,22 @@
...
@@ -4507,18 +4507,22 @@
}
}
return
true
;
return
true
;
}
}
struct
=
ygopro
.
structs
.
get
(
"
deck
"
);
deck_ok
=
async
function
(
msg
)
{
struct
.
_setBuff
(
buffer
);
await
ygopro
.
stoc_send_chat
(
client
,
msg
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
);
deck_ok
=
function
(
msg
)
{
ygopro
.
stoc_send_chat
(
client
,
msg
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
);
return
false
;
return
false
;
};
};
deck_bad
=
function
(
msg
)
{
deck_bad
=
function
(
msg
)
{
struct
.
set
(
"
mainc
"
,
1
);
struct
.
set
(
"
sidec
"
,
1
);
struct
.
set
(
"
deckbuf
"
,
[
4392470
,
4392470
]);
ygopro
.
stoc_send_chat
(
client
,
msg
,
ygopro
.
constants
.
COLORS
.
RED
);
ygopro
.
stoc_send_chat
(
client
,
msg
,
ygopro
.
constants
.
COLORS
.
RED
);
return
false
;
if
(
room
.
duel_stage
===
ygopro
.
constants
.
DUEL_STAGE
.
BEGIN
)
{
ygopro
.
stoc_send
(
client
,
'
HS_PLAYER_CHANGE
'
,
{
status
:
(
client
.
pos
<<
4
)
|
0xa
});
}
ygopro
.
stoc_send
(
client
,
'
ERROR_MSG
'
,
{
msg
:
2
,
code
:
0
});
return
true
;
};
};
if
(
room
.
random_type
||
room
.
arena
)
{
if
(
room
.
random_type
||
room
.
arena
)
{
if
(
client
.
pos
===
0
)
{
if
(
client
.
pos
===
0
)
{
...
...
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