Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
MDPro3
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
Hussain Hayder
MDPro3
Commits
d4a71944
Commit
d4a71944
authored
Nov 25, 2025
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix hand test bug
parent
ff0f7328
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
12 deletions
+29
-12
Assets/Addressables/Text/UpdateContent.txt
Assets/Addressables/Text/UpdateContent.txt
+3
-0
Assets/Scripts/MDPro3/Duel/YgoServer.cs
Assets/Scripts/MDPro3/Duel/YgoServer.cs
+1
-2
Assets/Scripts/MDPro3/Servant/RoomServant.cs
Assets/Scripts/MDPro3/Servant/RoomServant.cs
+4
-1
Assets/Scripts/MDPro3/UI/ServantUI/DeckEditorUI.cs
Assets/Scripts/MDPro3/UI/ServantUI/DeckEditorUI.cs
+21
-9
No files found.
Assets/Addressables/Text/UpdateContent.txt
View file @
d4a71944
MDPro3 v1.3.7更新:
1.卡组编辑界面的[测试]按钮恢复功能,并以第一位WindBot为对手,不洗牌进行决斗。
MDPro3 v1.3.6更新:
1.新卡片特效:小丑与锁鸟[94145021];
2.修复部分情况下召唤怪兽后卡片悬空的错误;
...
...
Assets/Scripts/MDPro3/Duel/YgoServer.cs
View file @
d4a71944
using
System.IO
;
using
System.Runtime.InteropServices
;
using
System.Threading
;
...
...
@@ -17,7 +16,7 @@ namespace MDPro3.Net
public
static
Thread
serverThread
;
public
static
void
StartServer
(
string
args
)
{
if
(
ServerRunning
())
if
(
ServerRunning
())
StopServer
();
serverThread
=
new
Thread
(()
=>
...
...
Assets/Scripts/MDPro3/Servant/RoomServant.cs
View file @
d4a71944
...
...
@@ -210,6 +210,8 @@ namespace MDPro3.Servant
{
if
(
servantUI
==
null
)
return
;
if
(
FromHandTest
)
return
;
GetUI
<
RoomServantUI
>().
Realize
();
}
...
...
@@ -474,6 +476,7 @@ namespace MDPro3.Servant
public
void
StocMessage_HsPlayerEnter
(
BinaryReader
r
)
{
if
(!
FromHandTest
)
AudioManager
.
PlaySE
(
"SE_ROOM_SITDOWN"
);
var
name
=
r
.
ReadUnicode
(
20
);
var
pos
=
r
.
ReadByte
()
&
3
;
...
...
Assets/Scripts/MDPro3/UI/ServantUI/DeckEditorUI.cs
View file @
d4a71944
...
...
@@ -230,7 +230,7 @@ namespace MDPro3.UI.ServantUI
{
base
.
AfterHideEvent
();
if
(!
gotoAppearance
||
!
RoomServant
.
FromHandTest
)
if
(!
gotoAppearance
&&
!
RoomServant
.
FromHandTest
)
Dispose
();
}
...
...
@@ -924,15 +924,22 @@ namespace MDPro3.UI.ServantUI
public
void
OnHandTest
()
{
if
(!
DeckView
.
deckLoaded
)
return
;
if
(
condition
==
Condition
.
ChangeSide
)
return
;
if
(!
DeckIsFromLocal
)
{
if
(
condition
!=
Condition
.
ChangeSide
)
MessageManager
.
Toast
(
InterString
.
Get
(
"请先保存卡组"
));
return
;
}
_
=
HandTestAsync
();
}
private
async
UniTask
HandTestAsync
()
{
UIManager
.
UIBlackIn
(
0.3f
);
await
UniTask
.
WaitForSeconds
(
0.3f
);
int
port
=
7911
;
while
(!
TcpHelper
.
IsPortAvailable
(
port
))
{
...
...
@@ -943,12 +950,12 @@ namespace MDPro3.UI.ServantUI
string
args
=
string
.
Format
(
"{0} {1} {2} {3} {4} {5} {6} {7} {8} {9} {10} {11}"
,
port
.
ToString
(),
BanlistManager
.
EmptyBanlistName
,
"-1"
,
// Banlist
"5"
,
// Pool
"0"
,
// Model
"F"
,
//
"
F"
,
//
Check
"
F"
,
//
Shuffle
"
T"
,
// No
Check
"
T"
,
// No
Shuffle
"8000"
,
// Life Point
"5"
,
// Hand
"1"
,
// Time
...
...
@@ -960,9 +967,14 @@ namespace MDPro3.UI.ServantUI
RoomServant
.
FromLocalHost
=
false
;
RoomServant
.
FromHandTest
=
true
;
YgoServer
.
StartServer
(
args
);
await
UniTask
.
Delay
(
50
);
UIManager
.
UIBlackIn
(
0.3f
);
await
UniTask
.
WaitForSeconds
(
0.3f
);
OcgCore
.
handler
=
Program
.
instance
.
room
.
Handler
;
Program
.
instance
.
solo
.
StartAIForHandTest
(
port
);
await
UniTask
.
Delay
(
5
0
);
await
UniTask
.
Delay
(
10
0
);
bool
joined
=
false
;
TcpHelper
.
LinkStart
(
"127.0.0.1"
,
Config
.
Get
(
"DuelPlayerName0"
,
Config
.
EMPTY_STRING
),
port
.
ToString
(),
string
.
Empty
,
true
,
()
=>
joined
=
true
);
await
UniTask
.
WaitUntil
(()
=>
joined
);
...
...
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