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
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
fallenstardust
YGOProUnity_V2
Commits
21f22a05
Commit
21f22a05
authored
Sep 30, 2020
by
mercury233
Committed by
GitHub
Sep 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add basic support for cant check grave (#18)
parent
1131c2d5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
2 deletions
+52
-2
Assets/SibylSystem/Book/Book.cs
Assets/SibylSystem/Book/Book.cs
+5
-1
Assets/SibylSystem/Ocgcore/OCGobjects/gameHiddenButton.cs
Assets/SibylSystem/Ocgcore/OCGobjects/gameHiddenButton.cs
+9
-0
Assets/SibylSystem/Ocgcore/Ocgcore.cs
Assets/SibylSystem/Ocgcore/Ocgcore.cs
+38
-1
No files found.
Assets/SibylSystem/Book/Book.cs
View file @
21f22a05
...
...
@@ -147,7 +147,11 @@ public class Book : WindowServant2D
}
}
opString
+=
master
.
managedString
.
TrimEnd
(
'\n'
);
if
(
master
.
strings
.
Count
>
0
)
if
(
Program
.
I
().
ocgcore
.
cantCheckGrave
)
{
labop
.
text
=
InterString
.
Get
(
"不能查看对手使用过的卡"
);
}
else
if
(
master
.
strings
.
Count
>
0
)
{
labop
.
text
=
InterString
.
Get
(
"[ff5555]对手使用过:@n[?][-]"
,
opString
);
}
...
...
Assets/SibylSystem/Ocgcore/OCGobjects/gameHiddenButton.cs
View file @
21f22a05
...
...
@@ -59,6 +59,11 @@ public class gameHiddenButton : OCGobject
void
showAll
()
{
if
(
location
==
CardLocation
.
Grave
&&
Program
.
I
().
ocgcore
.
cantCheckGrave
)
{
Program
.
I
().
cardDescription
.
RMSshow_none
(
InterString
.
Get
(
"不能确认墓地里的卡"
));
return
;
}
bool
allShow
=
true
;
for
(
int
i
=
0
;
i
<
Program
.
I
().
ocgcore
.
cards
.
Count
;
i
++)
if
(
Program
.
I
().
ocgcore
.
cards
[
i
].
gameObject
.
activeInHierarchy
)
{
...
...
@@ -151,6 +156,10 @@ public class gameHiddenButton : OCGobject
void
excite
()
{
excited
=
true
;
if
(
location
==
CardLocation
.
Grave
&&
Program
.
I
().
ocgcore
.
cantCheckGrave
)
{
return
;
}
YGOSharp
.
Card
data
=
null
;
string
tailString
=
""
;
uint
con
=
0
;
...
...
Assets/SibylSystem/Ocgcore/Ocgcore.cs
View file @
21f22a05
...
...
@@ -528,6 +528,11 @@ public class Ocgcore : ServantWithCardDescription
}
if
(
condition
==
Condition
.
duel
)
{
if
(
cantCheckGrave
)
{
RMSshow_none
(
InterString
.
Get
(
"不能确认墓地里的卡,无法跨越时间线!"
));
return
;
}
if
(
gameInfo
.
amIdanger
())
{
RMSshow_none
(
InterString
.
Get
(
"您的时间不足无法使用ReadingSteiner!"
));
...
...
@@ -712,6 +717,11 @@ public class Ocgcore : ServantWithCardDescription
void
on_stop
()
{
if
(
cantCheckGrave
)
{
RMSshow_none
(
InterString
.
Get
(
"不能确认墓地里的卡,无法跨越时间线!"
));
return
;
}
if
(
paused
==
false
)
{
destroy
(
waitObject
,
0
,
false
,
true
);
...
...
@@ -1204,6 +1214,7 @@ public class Ocgcore : ServantWithCardDescription
}
autoForceChainHandlerType
autoForceChainHandler
=
autoForceChainHandlerType
.
manDoAll
;
bool
deckReserved
=
false
;
public
bool
cantCheckGrave
=
false
;
public
int
turns
=
0
;
public
List
<
string
>
confirmedCards
=
new
List
<
string
>();
void
logicalizeMessage
(
Package
p
)
...
...
@@ -1258,6 +1269,7 @@ public class Ocgcore : ServantWithCardDescription
break
;
case
GameMessage
.
Win
:
deckReserved
=
false
;
cantCheckGrave
=
false
;
player
=
localPlayer
(
r
.
ReadByte
());
int
winType
=
r
.
ReadByte
();
keys
.
Insert
(
0
,
currentMessageIndex
);
...
...
@@ -1305,6 +1317,7 @@ public class Ocgcore : ServantWithCardDescription
Program
.
I
().
room
.
joinWithReconnect
=
false
;
turns
=
0
;
deckReserved
=
false
;
cantCheckGrave
=
false
;
keys
.
Insert
(
0
,
currentMessageIndex
);
RMSshow_clear
();
md5Maker
=
0
;
...
...
@@ -2007,6 +2020,10 @@ public class Ocgcore : ServantWithCardDescription
int
ptype
=
r
.
ReadByte
();
int
pvalue
=
r
.
ReadInt32
();
string
valstring
=
GameStringManager
.
get
(
pvalue
);
if
(
pvalue
==
38723936
)
{
valstring
=
InterString
.
Get
(
"不能确认墓地里的卡"
);
}
if
(
ptype
==
6
)
{
if
(
controller
==
0
)
...
...
@@ -5287,6 +5304,21 @@ public class Ocgcore : ServantWithCardDescription
int
ptype
=
r
.
ReadByte
();
int
pvalue
=
r
.
ReadInt32
();
string
valstring
=
GameStringManager
.
get
(
pvalue
);
if
(
pvalue
==
38723936
)
{
valstring
=
InterString
.
Get
(
"不能确认墓地里的卡"
);
if
(
player
==
0
)
{
if
(
ptype
==
6
)
{
clearAllShowed
();
Program
.
I
().
cardDescription
.
setData
(
YGOSharp
.
CardsManager
.
Get
(
38723936
),
GameTextureManager
.
opBack
,
""
,
true
);
cantCheckGrave
=
true
;
}
if
(
ptype
==
7
)
cantCheckGrave
=
false
;
}
}
if
(
ptype
==
6
)
{
if
(
player
==
0
)
...
...
@@ -8146,6 +8178,7 @@ public class Ocgcore : ServantWithCardDescription
}
}
deckReserved
=
false
;
cantCheckGrave
=
false
;
surrended
=
false
;
Program
.
I
().
room
.
duelEnded
=
false
;
gameInfo
.
swaped
=
false
;
...
...
@@ -8170,6 +8203,7 @@ public class Ocgcore : ServantWithCardDescription
cardsForConfirm
.
Clear
();
logicalClearChain
();
deckReserved
=
false
;
cantCheckGrave
=
false
;
if
(
isShowed
)
{
clearResponse
();
...
...
@@ -8938,7 +8972,10 @@ public class Ocgcore : ServantWithCardDescription
{
if
(
Program
.
I
().
setting
.
setting
.
spyer
.
value
)
{
Program.I().cardDescription.shiftCardShower(false);
if
(
cantCheckGrave
)
RMSshow_none
(
InterString
.
Get
(
"不能确认墓地里的卡,监控全局卡片功能暂停使用。"
));
else
Program
.
I
().
cardDescription
.
shiftCardShower
(
false
);
}
if
(
gameInfo
.
queryHashedButton
(
"hide_all_card"
)
==
true
)
{
...
...
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