Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
Windbot-408
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
神之吹息
Windbot-408
Commits
d6afaed2
Commit
d6afaed2
authored
Aug 20, 2018
by
handsomekiwi
Committed by
mercury233
Aug 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add chaintargetonly list (#73)
parent
787e3cab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
Game/AI/AIFunctions.cs
Game/AI/AIFunctions.cs
+1
-1
Game/Duel.cs
Game/Duel.cs
+2
-0
Game/GameBehavior.cs
Game/GameBehavior.cs
+5
-2
No files found.
Game/AI/AIFunctions.cs
View file @
d6afaed2
...
@@ -350,7 +350,7 @@ namespace WindBot.Game.AI
...
@@ -350,7 +350,7 @@ namespace WindBot.Game.AI
public
bool
IsChainTargetOnly
(
ClientCard
card
)
public
bool
IsChainTargetOnly
(
ClientCard
card
)
{
{
return
Duel
.
ChainTarget
s
.
Count
==
1
&&
card
.
Equals
(
Duel
.
ChainTargets
[
0
]);
return
Duel
.
ChainTarget
Only
.
Count
==
1
&&
card
.
Equals
(
Duel
.
ChainTargetOnly
[
0
]);
}
}
public
bool
ChainContainsCard
(
int
id
)
public
bool
ChainContainsCard
(
int
id
)
...
...
Game/Duel.cs
View file @
d6afaed2
...
@@ -19,6 +19,7 @@ namespace WindBot.Game
...
@@ -19,6 +19,7 @@ namespace WindBot.Game
public
int
LastChainPlayer
{
get
;
set
;
}
public
int
LastChainPlayer
{
get
;
set
;
}
public
IList
<
ClientCard
>
CurrentChain
{
get
;
set
;
}
public
IList
<
ClientCard
>
CurrentChain
{
get
;
set
;
}
public
IList
<
ClientCard
>
ChainTargets
{
get
;
set
;
}
public
IList
<
ClientCard
>
ChainTargets
{
get
;
set
;
}
public
IList
<
ClientCard
>
ChainTargetOnly
{
get
;
set
;
}
public
int
LastSummonPlayer
{
get
;
set
;
}
public
int
LastSummonPlayer
{
get
;
set
;
}
public
Duel
()
public
Duel
()
...
@@ -29,6 +30,7 @@ namespace WindBot.Game
...
@@ -29,6 +30,7 @@ namespace WindBot.Game
LastChainPlayer
=
-
1
;
LastChainPlayer
=
-
1
;
CurrentChain
=
new
List
<
ClientCard
>();
CurrentChain
=
new
List
<
ClientCard
>();
ChainTargets
=
new
List
<
ClientCard
>();
ChainTargets
=
new
List
<
ClientCard
>();
ChainTargetOnly
=
new
List
<
ClientCard
>();
LastSummonPlayer
=
-
1
;
LastSummonPlayer
=
-
1
;
}
}
...
...
Game/GameBehavior.cs
View file @
d6afaed2
...
@@ -621,7 +621,8 @@ namespace WindBot.Game
...
@@ -621,7 +621,8 @@ namespace WindBot.Game
if
(
_debug
)
if
(
_debug
)
if
(
card
!=
null
)
Logger
.
WriteLine
(
"("
+
cc
.
ToString
()
+
" 's "
+
(
card
.
Name
??
"UnKnowCard"
)
+
" activate effect)"
);
if
(
card
!=
null
)
Logger
.
WriteLine
(
"("
+
cc
.
ToString
()
+
" 's "
+
(
card
.
Name
??
"UnKnowCard"
)
+
" activate effect)"
);
_ai
.
OnChaining
(
card
,
cc
);
_ai
.
OnChaining
(
card
,
cc
);
_duel
.
ChainTargets
.
Clear
();
//_duel.ChainTargets.Clear();
_duel
.
ChainTargetOnly
.
Clear
();
_duel
.
LastSummonPlayer
=
-
1
;
_duel
.
LastSummonPlayer
=
-
1
;
_duel
.
CurrentChain
.
Add
(
card
);
_duel
.
CurrentChain
.
Add
(
card
);
_duel
.
LastChainPlayer
=
cc
;
_duel
.
LastChainPlayer
=
cc
;
...
@@ -633,7 +634,8 @@ namespace WindBot.Game
...
@@ -633,7 +634,8 @@ namespace WindBot.Game
_ai
.
OnChainEnd
();
_ai
.
OnChainEnd
();
_duel
.
LastChainPlayer
=
-
1
;
_duel
.
LastChainPlayer
=
-
1
;
_duel
.
CurrentChain
.
Clear
();
_duel
.
CurrentChain
.
Clear
();
//_duel.ChainTargets.Clear();
_duel
.
ChainTargets
.
Clear
();
_duel
.
ChainTargetOnly
.
Clear
();
}
}
private
void
OnCardSorting
(
BinaryReader
packet
)
private
void
OnCardSorting
(
BinaryReader
packet
)
...
@@ -758,6 +760,7 @@ namespace WindBot.Game
...
@@ -758,6 +760,7 @@ namespace WindBot.Game
if
(
_debug
)
if
(
_debug
)
Logger
.
WriteLine
(
"("
+
(
CardLocation
)
loc
+
" 's "
+
(
card
.
Name
??
"UnKnowCard"
)
+
" become target)"
);
Logger
.
WriteLine
(
"("
+
(
CardLocation
)
loc
+
" 's "
+
(
card
.
Name
??
"UnKnowCard"
)
+
" become target)"
);
_duel
.
ChainTargets
.
Add
(
card
);
_duel
.
ChainTargets
.
Add
(
card
);
_duel
.
ChainTargetOnly
.
Add
(
card
);
}
}
}
}
...
...
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