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
Dark_Zane
MDPro3
Commits
a7d4f681
Commit
a7d4f681
authored
May 25, 2024
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update windbot
parent
0889f6e8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
3 deletions
+31
-3
Assets/Addressables/Text/UpdateContent.txt
Assets/Addressables/Text/UpdateContent.txt
+3
-3
Assets/Scripts/Windbot/Game/GameAI.cs
Assets/Scripts/Windbot/Game/GameAI.cs
+16
-0
Assets/Scripts/Windbot/Game/GameBehavior.cs
Assets/Scripts/Windbot/Game/GameBehavior.cs
+7
-0
Assets/Scripts/Windbot/Game/GameClient.cs
Assets/Scripts/Windbot/Game/GameClient.cs
+5
-0
No files found.
Assets/Addressables/Text/UpdateContent.txt
View file @
a7d4f681
MDPro3 v1.1.1更新:
MDPro3 v1.1.1更新:
1.新投稿动画:琰魔龙 红莲魔·渊、龙骑士 D-终。
1.新投稿动画:琰魔龙 红莲魔·渊、龙骑士 D-终。
2.现在在决斗中也能开启加速了,回放下为2倍速,其他模式下为1.5倍速。
2.现在在决斗中也能开启加速了,回放
模式
下为2倍速,其他模式下为1.5倍速。
3.修复上版本中,部分新卡在本地模式下无法发动效果的错误。
3.修复上版本中,部分新卡在本地模式下无法发动效果的错误。
4.修复上版本中,编辑卡组模式下,卡图加载过程中退出卡组编辑模式,导致游戏不能继续读取卡图的错误。
4.修复上版本中,某些条件下游戏不能读取卡图的错误。
5.修复上版本中,自选卡组AI不能选择卡组的错误。
MDPro3 v1.1.0更新:
MDPro3 v1.1.0更新:
0.本次更新安卓端需要卸载老版本才能进行安装。安卓端的首选图形API改为Vulkan。
0.本次更新安卓端需要卸载老版本才能进行安装。安卓端的首选图形API改为Vulkan。
...
@@ -17,7 +18,6 @@ MDPro3 v1.1.0更新:
...
@@ -17,7 +18,6 @@ MDPro3 v1.1.0更新:
头像:冥铭途·楼中怪、大植然狮面草、电子龙、邪恶★双子 姬丝吉尔・璃拉、白色宿命的埃尔德里希尔;
头像:冥铭途·楼中怪、大植然狮面草、电子龙、邪恶★双子 姬丝吉尔・璃拉、白色宿命的埃尔德里希尔;
卡套:荷鲁斯的荣光-伊姆赛特、暴走召唤师 阿莱斯特、大植然狮面草。
卡套:荷鲁斯的荣光-伊姆赛特、暴走召唤师 阿莱斯特、大植然狮面草。
卡盒:王之棺;
卡盒:王之棺;
5.现在决斗日志在未被拖动的情况下会自动向下翻滚。
5.现在决斗日志在未被拖动的情况下会自动向下翻滚。
6.修复部分情况下错误触发灵摆召唤特效的错误。
6.修复部分情况下错误触发灵摆召唤特效的错误。
7.修复英语和西班牙语在卡片详情框中的效果文本单词被分割换行的错误。
7.修复英语和西班牙语在卡片详情框中的效果文本单词被分割换行的错误。
...
...
Assets/Scripts/Windbot/Game/GameAI.cs
View file @
a7d4f681
...
@@ -25,6 +25,18 @@ namespace WindBot.Game
...
@@ -25,6 +25,18 @@ namespace WindBot.Game
_activatedCards
=
new
Dictionary
<
int
,
int
>();
_activatedCards
=
new
Dictionary
<
int
,
int
>();
}
}
private
void
CheckSurrender
()
{
foreach
(
CardExecutor
exec
in
Executor
.
Executors
)
{
if
(
exec
.
Type
==
ExecutorType
.
Surrender
&&
exec
.
Func
())
{
_dialogs
.
SendSurrender
();
Game
.
Surrender
();
}
}
}
/// <summary>
/// <summary>
/// Called when the AI got the error message.
/// Called when the AI got the error message.
/// </summary>
/// </summary>
...
@@ -117,6 +129,7 @@ namespace WindBot.Game
...
@@ -117,6 +129,7 @@ namespace WindBot.Game
_dialogs
.
SendNewTurn
();
_dialogs
.
SendNewTurn
();
}
}
Executor
.
OnNewPhase
();
Executor
.
OnNewPhase
();
CheckSurrender
();
}
}
public
void
OnMove
(
ClientCard
card
,
int
previousControler
,
int
previousLocation
,
int
currentControler
,
int
currentLocation
)
public
void
OnMove
(
ClientCard
card
,
int
previousControler
,
int
previousLocation
,
int
currentControler
,
int
currentLocation
)
...
@@ -130,6 +143,7 @@ namespace WindBot.Game
...
@@ -130,6 +143,7 @@ namespace WindBot.Game
public
void
OnDirectAttack
(
ClientCard
card
)
public
void
OnDirectAttack
(
ClientCard
card
)
{
{
_dialogs
.
SendOnDirectAttack
(
card
.
Name
);
_dialogs
.
SendOnDirectAttack
(
card
.
Name
);
CheckSurrender
();
}
}
/// <summary>
/// <summary>
...
@@ -155,6 +169,7 @@ namespace WindBot.Game
...
@@ -155,6 +169,7 @@ namespace WindBot.Game
m_selector
.
Clear
();
m_selector
.
Clear
();
m_selector_pointer
=
-
1
;
m_selector_pointer
=
-
1
;
Executor
.
OnChainEnd
();
Executor
.
OnChainEnd
();
CheckSurrender
();
}
}
/// <summary>
/// <summary>
...
@@ -422,6 +437,7 @@ namespace WindBot.Game
...
@@ -422,6 +437,7 @@ namespace WindBot.Game
public
MainPhaseAction
OnSelectIdleCmd
(
MainPhase
main
)
public
MainPhaseAction
OnSelectIdleCmd
(
MainPhase
main
)
{
{
Executor
.
SetMain
(
main
);
Executor
.
SetMain
(
main
);
CheckSurrender
();
foreach
(
CardExecutor
exec
in
Executor
.
Executors
)
foreach
(
CardExecutor
exec
in
Executor
.
Executors
)
{
{
if
(
exec
.
Type
==
ExecutorType
.
GoToEndPhase
&&
main
.
CanEndPhase
&&
exec
.
Func
())
// check if should enter end phase directly
if
(
exec
.
Type
==
ExecutorType
.
GoToEndPhase
&&
main
.
CanEndPhase
&&
exec
.
Func
())
// check if should enter end phase directly
...
...
Assets/Scripts/Windbot/Game/GameBehavior.cs
View file @
a7d4f681
...
@@ -85,6 +85,7 @@ namespace WindBot.Game
...
@@ -85,6 +85,7 @@ namespace WindBot.Game
_packets
.
Add
(
StocMessage
.
Chat
,
OnChat
);
_packets
.
Add
(
StocMessage
.
Chat
,
OnChat
);
_packets
.
Add
(
StocMessage
.
ChangeSide
,
OnChangeSide
);
_packets
.
Add
(
StocMessage
.
ChangeSide
,
OnChangeSide
);
_packets
.
Add
(
StocMessage
.
ErrorMsg
,
OnErrorMsg
);
_packets
.
Add
(
StocMessage
.
ErrorMsg
,
OnErrorMsg
);
_packets
.
Add
(
StocMessage
.
TeammateSurrender
,
OnTeammateSurrender
);
_messages
.
Add
(
GameMessage
.
Retry
,
OnRetry
);
_messages
.
Add
(
GameMessage
.
Retry
,
OnRetry
);
_messages
.
Add
(
GameMessage
.
Start
,
OnStart
);
_messages
.
Add
(
GameMessage
.
Start
,
OnStart
);
...
@@ -325,6 +326,12 @@ namespace WindBot.Game
...
@@ -325,6 +326,12 @@ namespace WindBot.Game
//Connection.Close();
//Connection.Close();
}
}
private
void
OnTeammateSurrender
(
BinaryReader
packet
)
{
Thread
.
Sleep
(
500
);
Game
.
Surrender
();
}
private
void
OnRetry
(
BinaryReader
packet
)
private
void
OnRetry
(
BinaryReader
packet
)
{
{
_ai
.
OnRetry
();
_ai
.
OnRetry
();
...
...
Assets/Scripts/Windbot/Game/GameClient.cs
View file @
a7d4f681
...
@@ -90,6 +90,11 @@ namespace WindBot.Game
...
@@ -90,6 +90,11 @@ namespace WindBot.Game
Connection
.
Send
(
chat
);
Connection
.
Send
(
chat
);
}
}
public
void
Surrender
()
{
Connection
.
Send
(
CtosMessage
.
Surrender
);
}
private
void
OnPacketReceived
(
BinaryReader
reader
)
private
void
OnPacketReceived
(
BinaryReader
reader
)
{
{
_behavior
.
OnPacket
(
reader
);
_behavior
.
OnPacket
(
reader
);
...
...
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