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
JQY
MDPro3
Commits
8fbad045
Commit
8fbad045
authored
Dec 11, 2025
by
J114514
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加盖卡发动的专属语音
2.增加上级召唤语音 3.专属击败特效展示时不再展示通用击败特效
parent
c0bd334c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
11 deletions
+55
-11
Assets/Scripts/MDPro3/Duel/BG/DuelBGManager.cs
Assets/Scripts/MDPro3/Duel/BG/DuelBGManager.cs
+19
-10
Assets/Scripts/MDPro3/Duel/Message/DuelMessage.cs
Assets/Scripts/MDPro3/Duel/Message/DuelMessage.cs
+14
-0
Assets/Scripts/MDPro3/Duel/Message/VoiceMessage.cs
Assets/Scripts/MDPro3/Duel/Message/VoiceMessage.cs
+22
-1
No files found.
Assets/Scripts/MDPro3/Duel/BG/DuelBGManager.cs
View file @
8fbad045
...
...
@@ -83,6 +83,8 @@ namespace MDPro3.Duel
public
List
<
PlaceSelector
>
places
=
new
();
private
DuelFinalBlow
duelFinalBlow
;
private
bool
playingExFinalBatEffect
=
false
;
#
endregion
#
region
Public
...
...
@@ -2107,6 +2109,7 @@ namespace MDPro3.Duel
if
(
returnValue
==
FinalAttackType
.
Normal
)
return
false
;
await
AnimationFinalAttackAsync
(
returnValue
,
attackCard
,
attackedPosition
);
return
true
;
}
...
...
@@ -2123,18 +2126,22 @@ namespace MDPro3.Duel
DOTween
.
To
(()
=>
Program
.
instance
.
TimeScale
,
x
=>
Program
.
instance
.
TimeScale
=
x
,
1f
,
0.85f
).
SetEase
(
Ease
.
InQuad
);
#endif
if
(
life0
<=
0
)
if
(
!
playingExFinalBatEffect
)
{
var
hitObj
=
ABLoader
.
LoadMasterDuelGameObject
(
"fxp_dithit_fin_near_001"
);
hitObj
.
transform
.
position
=
new
Vector3
(
0
,
15
,
-
25
);
UnityEngine
.
Object
.
Destroy
(
hitObj
,
10
);
}
if
(
life1
<=
0
)
{
var
hitObj
=
ABLoader
.
LoadMasterDuelGameObject
(
"fxp_dithit_fin_far_001"
);
hitObj
.
transform
.
position
=
new
Vector3
(
0
,
15
,
25
);
UnityEngine
.
Object
.
Destroy
(
hitObj
,
10
);
if
(
life0
<=
0
)
{
var
hitObj
=
ABLoader
.
LoadMasterDuelGameObject
(
"fxp_dithit_fin_near_001"
);
hitObj
.
transform
.
position
=
new
Vector3
(
0
,
15
,
-
25
);
UnityEngine
.
Object
.
Destroy
(
hitObj
,
10
);
}
if
(
life1
<=
0
)
{
var
hitObj
=
ABLoader
.
LoadMasterDuelGameObject
(
"fxp_dithit_fin_far_001"
);
hitObj
.
transform
.
position
=
new
Vector3
(
0
,
15
,
25
);
UnityEngine
.
Object
.
Destroy
(
hitObj
,
10
);
}
}
}
public
void
ReleaseTurnObjects
()
...
...
@@ -2561,6 +2568,7 @@ namespace MDPro3.Duel
{
if
(
type
==
FinalAttackType
.
Normal
)
return
;
playingExFinalBatEffect
=
true
;
Sequence
sequence
;
if
(
type
==
FinalAttackType
.
BlueEyes
)
...
...
@@ -2577,6 +2585,7 @@ namespace MDPro3.Duel
sequence
=
await
AnimationFinalAttack_Obelisk
(
attackCard
,
attackedPosition
);
await
sequence
.
WaitAsync
();
playingExFinalBatEffect
=
false
;
}
private
async
UniTask
<
Sequence
>
AnimationFinalAttack_BlueEyes
(
GameCard
attackCard
,
Vector3
attackedPosition
)
...
...
Assets/Scripts/MDPro3/Duel/Message/DuelMessage.cs
View file @
8fbad045
...
...
@@ -1321,6 +1321,20 @@ namespace MDPro3.Duel
var
isFinalAttack
=
duelBGManager
.
IsFinalBlow
();
duelBGManager
.
HideAttackLine
();
duelBGManager
.
HideDuelFinalBlowText
();
if
(!
isFinalAttack
&&
attackCard
!=
null
&&
attackedCard
!=
null
&&
attackedCard
.
p
.
InPosition
(
CardPosition
.
Attack
))
{
var
diff
=
attackCard
.
GetData
().
Attack
-
attackedCard
.
GetData
().
Attack
;
if
(
attackCard
.
p
.
InMyControl
())
{
if
(
diff
>=
life1
)
isFinalAttack
=
true
;
}
else
{
if
(
diff
>=
life0
)
isFinalAttack
=
true
;
}
}
if
(
isFinalAttack
&&
(
await
duelBGManager
.
NeedSpecialFinalAttackAsync
(
attackCard
,
attackedPosition
)))
return
;
...
...
Assets/Scripts/MDPro3/Duel/Message/VoiceMessage.cs
View file @
8fbad045
...
...
@@ -277,7 +277,7 @@ namespace MDPro3.Duel
if
(
aloneVoiceData
.
Count
>
0
)
{
UniTask
.
Create
(
async
()
=>
_
=
UniTask
.
Create
(
async
()
=>
{
Core
.
GetUI
<
MDPro3
.
UI
.
ServantUI
.
OcgCoreUI
>().
OnNor
();
var
voiceTask
=
PlayAloneVoiceAsync
(
aloneVoiceData
);
...
...
@@ -460,6 +460,19 @@ namespace MDPro3.Duel
if
(
NeedBeforeCardEffect
(
gps
.
InMyControl
()))
voiceData
.
Add
(
GetBeforeCardEffectData
(
target
,
gps
.
InMyControl
()));
var
card
=
Core
.
GCS_Get
(
gps
);
if
(
card
!=
null
)
{
var
spdata
=
GetVoiceByCard
(
target
,
target
.
MainMagicTrap
,
card
.
GetData
().
Id
,
0
,
gps
.
InMyControl
());
if
(
spdata
.
name
!=
string
.
Empty
)
{
ignoreNextChaining
=
true
;
voiceData
.
Add
(
spdata
);
return
UniTask
.
CompletedTask
;
}
}
var
data
=
new
VoiceData
();
data
.
name
=
GetVoiceBySubCategory
(
target
.
CardEffect
,
(
int
)
CardEffectSub
.
Reverse
,
(
int
)
CardEffectSub
.
Reverse
,
0
);
data
.
num
=
GetVoiceNum
(
target
,
data
.
name
);
...
...
@@ -477,6 +490,8 @@ namespace MDPro3.Duel
data2
.
delay
=
0f
;
voiceData
.
Add
(
data2
);
ignoreNextChaining
=
true
;
return
UniTask
.
CompletedTask
;
...
...
@@ -507,6 +522,7 @@ namespace MDPro3.Duel
var
patternIndex
=
0
;
var
fromHand
=
false
;
var
isMe
=
to
.
InMyControl
();
var
advance
=
lastVoiceIsRelease
;
if
((
reason
&
(
uint
)
CardReason
.
RELEASE
)
>
0
&&
card
.
GetData
().
HasType
(
CardType
.
Monster
))
...
...
@@ -517,6 +533,7 @@ namespace MDPro3.Duel
subCategory
=
(
int
)
SummonSub
.
Release
;
subInCase
=
subCategory
;
lastVoiceIsRelease
=
true
;
}
else
lastVoiceIsRelease
=
false
;
...
...
@@ -526,6 +543,10 @@ namespace MDPro3.Duel
code
=
nextPack
.
Data
.
reader
.
ReadInt32
();
category
=
(
int
)
Category
.
Summon
;
subCategory
=
(
int
)
SummonSub
.
Normal
;
if
(
advance
||
OcgCore
.
materialCards
.
Count
>
0
)
{
subCategory
=
(
int
)
SummonSub
.
Advance
;
}
isMe
=
from
.
controller
==
0
;
var
targetDataT
=
isMe
?
heroVoices
:
rivalVoices
;
...
...
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