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
minh khanh
MDPro3
Commits
2f07a747
Commit
2f07a747
authored
Mar 18, 2024
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bugs
parent
d93da2fc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
22 deletions
+26
-22
Assets/Scripts/MDPro3/Duel/GameCard.cs
Assets/Scripts/MDPro3/Duel/GameCard.cs
+11
-11
Assets/Scripts/MDPro3/Servants/OcgCore.cs
Assets/Scripts/MDPro3/Servants/OcgCore.cs
+11
-9
Assets/Scripts/MDPro3/Servants/SelectDeck.cs
Assets/Scripts/MDPro3/Servants/SelectDeck.cs
+2
-0
ProjectSettings/ProjectSettings.asset
ProjectSettings/ProjectSettings.asset
+2
-2
No files found.
Assets/Scripts/MDPro3/Duel/GameCard.cs
View file @
2f07a747
...
...
@@ -874,23 +874,23 @@ namespace MDPro3
AddStringTail
(
InterString
.
Get
(
"帤淏寞腎部"
));
else
RemoveStringTail
(
InterString
.
Get
(
"帤淏寞腎部"
));
if
((
data
.
Type
&
(
uint
)
CardType
.
Xyz
)
>
0
&&
(
gps
.
location
&
(
uint
)
CardLocation
.
MonsterZone
)
>
0
)
overlays
=
Program
.
I
().
ocgcore
.
GCS_GetOverlays
(
this
);
else
overlays
=
new
List
<
GameCard
>();
overlays
=
Program
.
I
().
ocgcore
.
GCS_GetOverlays
(
this
);
cacheP
=
p
;
p
=
gps
;
//Debug.LogFormat("reason: {0:X}", p.reason);
//Debug.LogFormat("{0}: reason: {1:X} location: {2:X}", data.Name, p.reason, p.location);
for
each
(
var
overlay
in
overlays
)
for
(
int
i
=
0
;
i
<
overlays
.
Count
;
i
++
)
{
overlay
.
overlayParent
=
this
;
overlay
.
p
.
controller
=
gps
.
controller
;
overlay
.
p
.
location
=
gps
.
location
|
(
uint
)
CardLocation
.
Overlay
;
overlay
.
p
.
sequence
=
gps
.
sequence
;
overlay
.
p
.
position
=
(
int
)
CardPosition
.
FaceUpAttack
;
overlay
s
[
i
]
.
overlayParent
=
this
;
overlay
s
[
i
]
.
p
.
controller
=
gps
.
controller
;
overlay
s
[
i
]
.
p
.
location
=
gps
.
location
|
(
uint
)
CardLocation
.
Overlay
;
overlay
s
[
i
]
.
p
.
sequence
=
gps
.
sequence
;
overlay
s
[
i
].
p
.
position
=
i
;
}
Program
.
I
().
ocgcore
.
ArrangeCards
();
if
(
Program
.
I
().
ocgcore
.
currentMessage
==
GameMessage
.
Move
&&
cacheP
.
location
!=
p
.
location
...
...
Assets/Scripts/MDPro3/Servants/OcgCore.cs
View file @
2f07a747
...
...
@@ -1903,13 +1903,15 @@ namespace MDPro3
uint
reason
=
r
.
ReadUInt32
();
card
=
GCS_Get
(
from
);
if
(
card
==
null
)
card
=
GCS_Create
(
from
);
card
.
CacheData
();
card
.
SetCode
(
code
);
to
.
reason
=
reason
;
Sleep
((
int
)(
card
.
Move
(
to
)
*
100
));
ArrangeCards
();
if
(
card
!=
null
)
{
card
.
CacheData
();
card
.
SetCode
(
code
);
to
.
reason
=
reason
;
Sleep
((
int
)(
card
.
Move
(
to
)
*
100
));
}
else
Debug
.
LogFormat
(
"GCS_Get: not found, location: {0:X}, sequence: {1:X}, position: {2:X}"
,
from
.
location
,
from
.
sequence
,
from
.
position
);
break
;
case
GameMessage
.
PosChange
:
ES_hint
=
StringHelper
.
GetUnsafe
(
1600
);
//卡片改变了表示形式
...
...
@@ -2199,8 +2201,6 @@ namespace MDPro3
cardsInChain
.
Add
(
card
);
Sleep
(
100
);
ES_hint
=
InterString
.
Get
(
"「[?]」被发动时"
,
card
.
GetData
().
Name
);
if
(
GetAutoInfo
())
description
.
Show
(
card
,
null
);
}
if
(
gps
.
controller
==
0
)
{
...
...
@@ -2212,6 +2212,8 @@ namespace MDPro3
if
(!
opActivated
.
Contains
(
code
))
opActivated
.
Add
(
code
);
}
if
(
card
!=
null
&&
GetAutoInfo
())
description
.
Show
(
card
,
null
);
break
;
case
GameMessage
.
Chained
:
var
currentChainCard
=
cardsInChain
[
cardsInChain
.
Count
-
1
];
...
...
Assets/Scripts/MDPro3/Servants/SelectDeck.cs
View file @
2f07a747
...
...
@@ -66,6 +66,8 @@ namespace MDPro3
Clear
();
btnDelete
.
SwitchOffWithoutAction
();
btnPickup
.
OnSwitchOff
();
if
(!
Directory
.
Exists
(
"Deck"
))
Directory
.
CreateDirectory
(
"Deck"
);
var
files
=
Directory
.
GetFiles
(
"Deck"
,
"*.ydk"
);
List
<
string
>
fileList
=
files
.
ToList
();
foreach
(
var
file
in
files
)
...
...
ProjectSettings/ProjectSettings.asset
View file @
2f07a747
...
...
@@ -134,7 +134,7 @@ PlayerSettings:
16:10:
1
16:9:
1
Others
:
1
bundleVersion
:
0.5.
1
bundleVersion
:
0.5.
2
preloadedAssets
:
[]
metroInputSource
:
0
wsaTransparentSwapchain
:
0
...
...
@@ -529,7 +529,7 @@ PlayerSettings:
m_APIs
:
0b000000
m_Automatic
:
1
-
m_BuildTarget
:
WindowsStandaloneSupport
m_APIs
:
0
b000000020000001200000015
000000
m_APIs
:
0
200000012000000150000000b
000000
m_Automatic
:
0
m_BuildTargetVRSettings
:
-
m_BuildTarget
:
Standalone
...
...
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