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
38
Issues
38
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
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
赤子奈落
MDPro3
Commits
c2f6d2fe
Commit
c2f6d2fe
authored
Jan 12, 2026
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
e4cecdb1
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
50 additions
and
34 deletions
+50
-34
Assets/Scripts/MDPro3/Duel/BG/DuelBGManager.cs
Assets/Scripts/MDPro3/Duel/BG/DuelBGManager.cs
+15
-13
Assets/Scripts/MDPro3/Duel/CoreWrapper.cs
Assets/Scripts/MDPro3/Duel/CoreWrapper.cs
+12
-9
Assets/Scripts/MDPro3/Duel/GameCard.cs
Assets/Scripts/MDPro3/Duel/GameCard.cs
+12
-5
Assets/Scripts/MDPro3/Duel/Message/DuelMessage.cs
Assets/Scripts/MDPro3/Duel/Message/DuelMessage.cs
+1
-0
Assets/Scripts/MDPro3/Servant/OcgCore.cs
Assets/Scripts/MDPro3/Servant/OcgCore.cs
+4
-2
Assets/Scripts/MDPro3/UI/Popup/Old/PopupDuelSelectCardItem.cs
...ts/Scripts/MDPro3/UI/Popup/Old/PopupDuelSelectCardItem.cs
+5
-4
ProjectSettings/ProjectSettings.asset
ProjectSettings/ProjectSettings.asset
+1
-1
No files found.
Assets/Scripts/MDPro3/Duel/BG/DuelBGManager.cs
View file @
c2f6d2fe
...
@@ -966,7 +966,10 @@ namespace MDPro3.Duel
...
@@ -966,7 +966,10 @@ namespace MDPro3.Duel
{
{
card
.
effects
.
Clear
();
card
.
effects
.
Clear
();
card
.
ClearButtons
();
card
.
ClearButtons
();
if
((
card
.
p
.
location
&
(
uint
)
CardLocation
.
Deck
)
>
0
)
if
(
card
.
forSelect
)
{
card
.
forSelect
=
false
;
if
(
card
.
p
.
InLocation
(
CardLocation
.
Deck
))
{
{
if
(
deckReserved
)
if
(
deckReserved
)
{
{
...
@@ -981,6 +984,7 @@ namespace MDPro3.Duel
...
@@ -981,6 +984,7 @@ namespace MDPro3.Duel
}
}
}
}
}
}
}
foreach
(
var
place
in
places
)
foreach
(
var
place
in
places
)
{
{
...
@@ -1689,15 +1693,14 @@ namespace MDPro3.Duel
...
@@ -1689,15 +1693,14 @@ namespace MDPro3.Duel
// 闪刀起动-交闪
// 闪刀起动-交闪
else
if
(
code
==
63166095
||
code
==
63166096
)
else
if
(
code
==
63166095
||
code
==
63166096
)
{
{
int
code2
=
0
;
nextMoveActionDuration
=
2.2f
+
5f
;
nextMoveActionDuration
=
2.2f
+
5f
;
nextMoveAction
=
()
=>
nextMoveNeedCode
=
true
;
nextMoveAction
=
(
code2
)
=>
{
{
effect
=
GetCardEffectPrefab
(
code
==
63166095
?
"Ef13671"
:
"Ef03434"
);
effect
=
GetCardEffectPrefab
(
code
==
63166095
?
"Ef13671"
:
"Ef03434"
);
var
manager
=
effect
.
GetComponent
<
ElementObjectManager
>();
var
manager
=
effect
.
GetComponent
<
ElementObjectManager
>();
nextMoveManager
=
manager
;
nextMoveManager
=
manager
;
var
renderer
=
manager
.
GetElement
<
Renderer
>(
"SummonPosDummy"
);
var
renderer
=
manager
.
GetElement
<
Renderer
>(
"SummonPosDummy"
);
code2
=
Program
.
instance
.
ocgcore
.
GetNextConfirmedCardCode
();
_
=
Program
.
instance
.
texture_
.
LoadCardToRendererWithMaterialAsync
(
renderer
,
code2
,
true
);
_
=
Program
.
instance
.
texture_
.
LoadCardToRendererWithMaterialAsync
(
renderer
,
code2
,
true
);
UnityEngine
.
Object
.
Destroy
(
effect
,
2.2f
);
UnityEngine
.
Object
.
Destroy
(
effect
,
2.2f
);
};
};
...
@@ -1709,7 +1712,6 @@ namespace MDPro3.Duel
...
@@ -1709,7 +1712,6 @@ namespace MDPro3.Duel
var
target
=
nextMoveManager
.
GetElement
<
Transform
>(
"DummyCard01"
);
var
target
=
nextMoveManager
.
GetElement
<
Transform
>(
"DummyCard01"
);
var
card
=
lastMoveCard
;
var
card
=
lastMoveCard
;
card
.
SetCode
(
code2
);
card
.
model
.
SetActive
(
true
);
card
.
model
.
SetActive
(
true
);
card
.
ResetModelRotation
();
card
.
ResetModelRotation
();
card
.
model
.
transform
.
position
=
target
.
position
;
card
.
model
.
transform
.
position
=
target
.
position
;
...
...
Assets/Scripts/MDPro3/Duel/CoreWrapper.cs
View file @
c2f6d2fe
...
@@ -830,15 +830,18 @@ namespace Percy
...
@@ -830,15 +830,18 @@ namespace Percy
int
cs
=
raw
[
10
];
int
cs
=
raw
[
10
];
int
cp
=
raw
[
11
];
int
cp
=
raw
[
11
];
//if (!Convert.ToBoolean(cl & ((int)CardLocation.Grave + (int)CardLocation.Overlay)) &&
if
(!
OcgCore
.
nextMoveNeedCode
)
// Convert.ToBoolean(cl & ((int)CardLocation.Deck + (int)CardLocation.Hand))
{
// || Convert.ToBoolean(cp & (int)CardPosition.FaceDown))
if
(!
Convert
.
ToBoolean
(
cl
&
((
int
)
CardLocation
.
Grave
+
(
int
)
CardLocation
.
Overlay
))
&&
//{
Convert
.
ToBoolean
(
cl
&
((
int
)
CardLocation
.
Deck
+
(
int
)
CardLocation
.
Hand
))
// raw[0] = 0;
||
Convert
.
ToBoolean
(
cp
&
(
int
)
CardPosition
.
FaceDown
))
// raw[1] = 0;
{
// raw[2] = 0;
raw
[
0
]
=
0
;
// raw[3] = 0;
raw
[
1
]
=
0
;
//}
raw
[
2
]
=
0
;
raw
[
3
]
=
0
;
}
}
currentWriter
.
Write
(
raw
);
currentWriter
.
Write
(
raw
);
break
;
break
;
case
GameMessage
.
PosChange
:
case
GameMessage
.
PosChange
:
...
...
Assets/Scripts/MDPro3/Duel/GameCard.cs
View file @
c2f6d2fe
...
@@ -113,12 +113,13 @@ namespace MDPro3
...
@@ -113,12 +113,13 @@ namespace MDPro3
public
int
levelForSelect_2
=
0
;
public
int
levelForSelect_2
=
0
;
public
int
counterCanCount
=
0
;
public
int
counterCanCount
=
0
;
public
int
counterSelected
=
0
;
public
int
counterSelected
=
0
;
public
List
<
GameCard
>
targets
=
new
List
<
GameCard
>
();
public
List
<
GameCard
>
targets
=
new
();
public
List
<
GameCard
>
effectTargets
=
new
List
<
GameCard
>
();
public
List
<
GameCard
>
effectTargets
=
new
();
public
List
<
GameCard
>
overlays
=
new
List
<
GameCard
>
();
public
List
<
GameCard
>
overlays
=
new
();
public
GameCard
overlayParent
;
public
GameCard
overlayParent
;
public
GameCard
equipedCard
;
public
GameCard
equipedCard
;
public
List
<
Effect
>
effects
=
new
();
public
List
<
Effect
>
effects
=
new
();
public
bool
forSelect
;
public
int
overFatherCount
;
public
int
overFatherCount
;
private
const
float
closeupLineColorIntensity
=
1.5f
;
private
const
float
closeupLineColorIntensity
=
1.5f
;
...
@@ -1034,7 +1035,13 @@ namespace MDPro3
...
@@ -1034,7 +1035,13 @@ namespace MDPro3
if
(
nextMoveAction
!=
null
)
if
(
nextMoveAction
!=
null
)
{
{
model
.
SetActive
(
false
);
model
.
SetActive
(
false
);
nextMoveAction
.
Invoke
();
var
code
=
data
.
Id
;
if
(
code
==
0
)
{
code
=
Program
.
instance
.
ocgcore
.
GetNextConfirmedCardCode
();
SetCode
(
code
);
}
nextMoveAction
.
Invoke
(
code
);
await
UniTask
.
WaitForSeconds
(
nextMoveActionDuration
);
await
UniTask
.
WaitForSeconds
(
nextMoveActionDuration
);
return
;
return
;
}
}
...
@@ -1258,7 +1265,7 @@ namespace MDPro3
...
@@ -1258,7 +1265,7 @@ namespace MDPro3
model
.
transform
.
position
=
fx
.
transform
.
position
;
model
.
transform
.
position
=
fx
.
transform
.
position
;
model
.
transform
.
localEulerAngles
=
fx
.
transform
.
localEulerAngles
;
model
.
transform
.
localEulerAngles
=
fx
.
transform
.
localEulerAngles
;
sequence
.
Pause
();
sequence
.
Pause
();
if
(
data
.
Id
==
0
)
if
(
data
.
Id
==
0
)
{
{
var
code
=
Program
.
instance
.
ocgcore
.
GetUpdateDataIdByGameCard
(
this
);
var
code
=
Program
.
instance
.
ocgcore
.
GetUpdateDataIdByGameCard
(
this
);
SetCode
(
code
);
SetCode
(
code
);
...
...
Assets/Scripts/MDPro3/Duel/Message/DuelMessage.cs
View file @
c2f6d2fe
...
@@ -720,6 +720,7 @@ namespace MDPro3.Duel
...
@@ -720,6 +720,7 @@ namespace MDPro3.Duel
lastMoveCard
=
card
;
lastMoveCard
=
card
;
card
.
SetCode
(
code
);
card
.
SetCode
(
code
);
to
.
reason
=
reason
;
to
.
reason
=
reason
;
nextMoveNeedCode
=
false
;
if
(
CanSyncNextMove
(
from
,
to
))
if
(
CanSyncNextMove
(
from
,
to
))
_
=
card
.
MoveAsync
(
to
);
_
=
card
.
MoveAsync
(
to
);
...
...
Assets/Scripts/MDPro3/Servant/OcgCore.cs
View file @
c2f6d2fe
...
@@ -122,7 +122,7 @@ namespace MDPro3.Servant
...
@@ -122,7 +122,7 @@ namespace MDPro3.Servant
private
static
bool
noMoreWait
;
private
static
bool
noMoreWait
;
public
static
Action
endingAction
;
public
static
Action
endingAction
;
public
static
Action
nextMoveAction
;
public
static
Action
<
int
>
nextMoveAction
;
public
static
float
nextMoveActionDuration
;
public
static
float
nextMoveActionDuration
;
public
static
ElementObjectManager
nextMoveManager
;
public
static
ElementObjectManager
nextMoveManager
;
public
static
Action
nextEventAction
;
public
static
Action
nextEventAction
;
...
@@ -148,6 +148,8 @@ namespace MDPro3.Servant
...
@@ -148,6 +148,8 @@ namespace MDPro3.Servant
public
static
int
movingToOpExclude
=
0
;
public
static
int
movingToOpExclude
=
0
;
public
static
uint
nextMoveMessageController
;
public
static
uint
nextMoveMessageController
;
public
static
bool
nextMoveNeedCode
;
#
region
Config
Params
#
region
Config
Params
public
static
readonly
Vector3
myPosition
=
new
(
0
,
15
,
-
25
);
public
static
readonly
Vector3
myPosition
=
new
(
0
,
15
,
-
25
);
...
@@ -939,7 +941,7 @@ namespace MDPro3.Servant
...
@@ -939,7 +941,7 @@ namespace MDPro3.Servant
currentMessage
=
(
GameMessage
)
currentPackage
.
Function
;
currentMessage
=
(
GameMessage
)
currentPackage
.
Function
;
//if (currentMessage != GameMessage.UpdateData)
//if (currentMessage != GameMessage.UpdateData)
//
Debug.Log($"GameMessage: {currentMessage}");
//
Debug.Log($"GameMessage: {currentMessage}");
try
try
{
{
...
...
Assets/Scripts/MDPro3/UI/Popup/Old/PopupDuelSelectCardItem.cs
View file @
c2f6d2fe
...
@@ -36,18 +36,19 @@ namespace MDPro3.UI
...
@@ -36,18 +36,19 @@ namespace MDPro3.UI
public
PopupDuelSelectCard
manager
;
public
PopupDuelSelectCard
manager
;
public
GameCard
card
;
public
GameCard
card
;
static
Color
opColor
=
new
Color
(
0.9f
,
0
,
0
,
1
);
private
static
Color
opColor
=
new
(
0.9f
,
0
,
0
,
1
);
public
bool
selected
;
public
bool
selected
;
public
bool
unselectable
;
public
bool
unselectable
;
static
Color
unselectableColor
=
new
Color
(
0.5f
,
0.5f
,
0.5f
,
1f
);
private
static
Color
unselectableColor
=
new
(
0.5f
,
0.5f
,
0.5f
,
1f
);
public
bool
preselected
;
public
bool
preselected
;
static
float
doubleClickTime
=
0.2f
;
private
static
readonly
float
doubleClickTime
=
0.2f
;
private
void
Start
()
private
void
Start
()
{
{
_
=
RefreshCard
(
card
.
GetValidData
().
Id
);
_
=
RefreshCard
(
card
.
GetData
().
Id
);
card
.
forSelect
=
true
;
if
((
card
.
p
.
location
&
(
uint
)
CardLocation
.
Search
)
>
0
)
if
((
card
.
p
.
location
&
(
uint
)
CardLocation
.
Search
)
>
0
)
{
{
...
...
ProjectSettings/ProjectSettings.asset
View file @
c2f6d2fe
...
@@ -140,7 +140,7 @@ PlayerSettings:
...
@@ -140,7 +140,7 @@ PlayerSettings:
loadStoreDebugModeEnabled
:
0
loadStoreDebugModeEnabled
:
0
visionOSBundleVersion
:
1.0
visionOSBundleVersion
:
1.0
tvOSBundleVersion
:
1.0
tvOSBundleVersion
:
1.0
bundleVersion
:
1.3.8.
1
bundleVersion
:
1.3.8.
2
preloadedAssets
:
preloadedAssets
:
-
{
fileID
:
11400000
,
guid
:
5fb02d2098f52054b89ce4a9f63ba9ee
,
type
:
2
}
-
{
fileID
:
11400000
,
guid
:
5fb02d2098f52054b89ce4a9f63ba9ee
,
type
:
2
}
-
{
fileID
:
-944628639613478452
,
guid
:
a916821eb5eea2842a69be6041bcdb82
,
type
:
3
}
-
{
fileID
:
-944628639613478452
,
guid
:
a916821eb5eea2842a69be6041bcdb82
,
type
:
3
}
...
...
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