Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOProUnity_V2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
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
MyCard
YGOProUnity_V2
Commits
8779c0b1
Commit
8779c0b1
authored
May 25, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement HINT_ZONE
parent
f0e9928d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
0 deletions
+59
-0
Assets/SibylSystem/Ocgcore/Ocgcore.cs
Assets/SibylSystem/Ocgcore/Ocgcore.cs
+12
-0
Assets/SibylSystem/ResourceManagers/GameStringHelper.cs
Assets/SibylSystem/ResourceManagers/GameStringHelper.cs
+47
-0
No files found.
Assets/SibylSystem/Ocgcore/Ocgcore.cs
View file @
8779c0b1
...
...
@@ -2149,6 +2149,12 @@ public class Ocgcore : ServantWithCardDescription
{
printDuelLog
(
InterString
.
Get
(
"卡片展示:[?]"
,
UIHelper
.
getSuperName
(
YGOSharp
.
CardsManager
.
Get
(
data
).
Name
,
data
)));
}
if
(
type
==
11
)
{
if
(
player
==
1
)
data
=
(
data
>>
16
)
|
(
data
<<
16
);
printDuelLog
(
InterString
.
Get
(
"区域选择:[?]"
,
GameStringHelper
.
zone
(
data
)));
}
break
;
case
GameMessage
.
MissedEffect
:
r
.
ReadInt32
();
...
...
@@ -2896,6 +2902,12 @@ public class Ocgcore : ServantWithCardDescription
{
animation_show_card_code
(
data
);
}
if
(
type
==
11
)
{
if
(
localPlayer
(
player
)
==
1
)
data
=
(
data
>>
16
)
|
(
data
<<
16
);
RMSshow_none
(
InterString
.
Get
(
"区域选择:[?]"
,
GameStringHelper
.
zone
(
data
)));
}
break
;
case
GameMessage
.
MissedEffect
:
break
;
...
...
Assets/SibylSystem/ResourceManagers/GameStringHelper.cs
View file @
8779c0b1
...
...
@@ -77,6 +77,53 @@ public class GameStringHelper
return
r
;
}
public
static
string
zone
(
long
data
)
{
List
<
string
>
strs
=
new
List
<
string
>();
for
(
long
filter
=
0x1L
;
filter
<=
(
0x1L
<<
32
);
filter
<<=
1
)
{
string
str
=
""
;
long
s
=
filter
&
data
;
if
(
s
!=
0
)
{
if
((
s
&
0x60
)
!=
0
)
{
str
+=
GameStringManager
.
get_unsafe
(
1081
);
data
&=
~
0x600000
;
}
else
if
((
s
&
0xffff
)
!=
0
)
str
+=
GameStringManager
.
get_unsafe
(
102
);
else
if
((
s
&
0xffff0000
)
!=
0
)
{
str
+=
GameStringManager
.
get_unsafe
(
103
);
s
>>=
16
;
}
if
((
s
&
0x1f
)
!=
0
)
str
+=
GameStringManager
.
get_unsafe
(
1002
);
else
if
((
s
&
0xff00
)
!=
0
)
{
s
>>=
8
;
if
((
s
&
0x1f
)
!=
0
)
str
+=
GameStringManager
.
get_unsafe
(
1003
);
else
if
((
s
&
0x20
)
!=
0
)
str
+=
GameStringManager
.
get_unsafe
(
1008
);
else
if
((
s
&
0xc0
)
!=
0
)
str
+=
GameStringManager
.
get_unsafe
(
1009
);
}
int
seq
=
1
;
for
(
int
i
=
0x1
;
i
<
0x100
;
i
<<=
1
)
{
if
((
s
&
i
)
!=
0
)
break
;
++
seq
;
}
str
+=
"("
+
seq
.
ToString
()
+
")"
;
strs
.
Add
(
str
);
}
}
return
String
.
Join
(
", "
,
strs
.
ToArray
());
}
public
static
string
mainType
(
long
a
)
{
string
r
=
""
;
...
...
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