Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro2
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
mercury233
ygopro2
Commits
2cf7a1d3
Commit
2cf7a1d3
authored
Sep 30, 2020
by
mercury233
Committed by
nanahira
Oct 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add basic support for cant check grave (#18)
parent
ebfc2c37
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 @
2cf7a1d3
...
...
@@ -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 @
2cf7a1d3
...
...
@@ -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 @
2cf7a1d3
...
...
@@ -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);
...
...
@@ -1228,6 +1238,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)
...
...
@@ -1282,6 +1293,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);
...
...
@@ -1329,6 +1341,7 @@ public class Ocgcore : ServantWithCardDescription
Program.I().room.joinWithReconnect = false;
turns = 0;
deckReserved = false;
cantCheckGrave = false;
keys.Insert(0, currentMessageIndex);
RMSshow_clear();
md5Maker = 0;
...
...
@@ -2031,6 +2044,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)
...
...
@@ -5310,6 +5327,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)
...
...
@@ -8169,6 +8201,7 @@ public class Ocgcore : ServantWithCardDescription
}
}
deckReserved = false;
cantCheckGrave = false;
surrended = false;
Program.I().room.duelEnded = false;
gameInfo.swaped = false;
...
...
@@ -8193,6 +8226,7 @@ public class Ocgcore : ServantWithCardDescription
cardsForConfirm.Clear();
logicalClearChain();
deckReserved = false;
cantCheckGrave = false;
if (isShowed)
{
clearResponse();
...
...
@@ -8977,7 +9011,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