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
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
nanahira
srvpro
Commits
f91fac8b
Commit
f91fac8b
authored
Apr 27, 2023
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
15 quit
parent
f901507d
Pipeline
#21388
passed with stages
in 9 minutes and 49 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
ygopro-server.coffee
ygopro-server.coffee
+4
-0
ygopro-server.js
ygopro-server.js
+5
-0
No files found.
ygopro-server.coffee
View file @
f91fac8b
...
...
@@ -1823,6 +1823,10 @@ class Room
oppo_pos
=
if
@
hostinfo
.
mode
==
2
then
2
else
1
if
@
duel_stage
==
ygopro
.
constants
.
DUEL_STAGE
.
DUELING
switch
settings
.
modules
.
http
.
quick_death_rule
when
4
# instant death
win_pos
=
if
@
dueling_players
[
0
].
lp
>
@
dueling_players
[
oppo_pos
].
lp
then
0
else
oppo_pos
ygopro
.
stoc_send_chat_to_room
(
this
,
"${death_finish_part1}"
+
@
dueling_players
[
win_pos
].
name
+
"${death_finish_part2}"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
)
ygopro
.
ctos_send
(
@
dueling_players
[
oppo_pos
-
win_pos
].
server
,
'SURRENDER'
)
when
3
@
death
=
-
2
ygopro
.
stoc_send_chat_to_room
(
this
,
"${death_start_phase}"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
)
...
...
ygopro-server.js
View file @
f91fac8b
...
...
@@ -2421,6 +2421,11 @@
oppo_pos
=
this
.
hostinfo
.
mode
===
2
?
2
:
1
;
if
(
this
.
duel_stage
===
ygopro
.
constants
.
DUEL_STAGE
.
DUELING
)
{
switch
(
settings
.
modules
.
http
.
quick_death_rule
)
{
case
4
:
// instant death
win_pos
=
this
.
dueling_players
[
0
].
lp
>
this
.
dueling_players
[
oppo_pos
].
lp
?
0
:
oppo_pos
;
ygopro
.
stoc_send_chat_to_room
(
this
,
"
${death_finish_part1}
"
+
this
.
dueling_players
[
win_pos
].
name
+
"
${death_finish_part2}
"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
);
ygopro
.
ctos_send
(
this
.
dueling_players
[
oppo_pos
-
win_pos
].
server
,
'
SURRENDER
'
);
break
;
case
3
:
this
.
death
=
-
2
;
ygopro
.
stoc_send_chat_to_room
(
this
,
"
${death_start_phase}
"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
);
...
...
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