Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
windbot
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
Commits
afaff398
Commit
afaff398
authored
Sep 28, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add deck Brave Token
parent
ec73c69a
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1070 additions
and
6 deletions
+1070
-6
Decks/AI_Brave.ydk
Decks/AI_Brave.ydk
+74
-0
Game/AI/Decks/BraveExecutor.cs
Game/AI/Decks/BraveExecutor.cs
+981
-0
Game/AI/DefaultExecutor.cs
Game/AI/DefaultExecutor.cs
+6
-3
Game/ClientField.cs
Game/ClientField.cs
+5
-0
Game/GameAI.cs
Game/GameAI.cs
+3
-3
WindBot.csproj
WindBot.csproj
+1
-0
No files found.
Decks/AI_Brave.ydk
0 → 100644
View file @
afaff398
#created by ...
#main
2563463
81866673
72090076
63362460
30680659
30680659
30680659
26202165
26202165
26202165
91646304
14558127
14558127
14558127
72291078
72291078
23434538
23434538
9742784
97268402
3285551
3285551
3285551
18144506
52947044
52947044
52947044
81439173
83764718
24224830
24224830
65681983
65681983
39568067
38745520
10045474
10045474
10045474
40605147
40605147
#extra
15291624
60461804
84815190
92519087
27548199
42566602
90953320
98558751
21915012
44097050
50588353
70369116
98978921
98978921
60303245
!side
55063751
55063751
55063751
34267821
34267821
34267821
43534808
43534808
43534808
94145021
94145021
94145021
14532163
14532163
14532163
Game/AI/Decks/BraveExecutor.cs
0 → 100644
View file @
afaff398
This diff is collapsed.
Click to expand it.
Game/AI/DefaultExecutor.cs
View file @
afaff398
...
@@ -498,8 +498,9 @@ namespace WindBot.Game.AI
...
@@ -498,8 +498,9 @@ namespace WindBot.Game.AI
/// </summary>
/// </summary>
protected
bool
DefaultEffectVeiler
()
protected
bool
DefaultEffectVeiler
()
{
{
if
(
Util
.
GetLastChainCard
()
!=
null
&&
Util
.
GetLastChainCard
().
IsCode
(
_CardId
.
GalaxySoldier
)
&&
Enemy
.
Hand
.
Count
>=
3
)
return
false
;
ClientCard
LastChainCard
=
Util
.
GetLastChainCard
();
if
(
Util
.
ChainContainsCard
(
_CardId
.
EffectVeiler
))
if
(
LastChainCard
!=
null
&&
(
LastChainCard
.
IsCode
(
_CardId
.
GalaxySoldier
)
&&
Enemy
.
Hand
.
Count
>=
3
||
LastChainCard
.
IsCode
(
_CardId
.
EffectVeiler
,
_CardId
.
InfiniteImpermanence
)))
return
false
;
return
false
;
return
DefaultBreakthroughSkill
();
return
DefaultBreakthroughSkill
();
}
}
...
@@ -537,7 +538,9 @@ namespace WindBot.Game.AI
...
@@ -537,7 +538,9 @@ namespace WindBot.Game.AI
protected
bool
DefaultInfiniteImpermanence
()
protected
bool
DefaultInfiniteImpermanence
()
{
{
// TODO: disable s & t
// TODO: disable s & t
if
(!
DefaultUniqueTrap
())
ClientCard
LastChainCard
=
Util
.
GetLastChainCard
();
if
(
LastChainCard
!=
null
&&
(
LastChainCard
.
IsCode
(
_CardId
.
GalaxySoldier
)
&&
Enemy
.
Hand
.
Count
>=
3
||
LastChainCard
.
IsCode
(
_CardId
.
EffectVeiler
,
_CardId
.
InfiniteImpermanence
)))
return
false
;
return
false
;
return
DefaultDisableMonster
();
return
DefaultDisableMonster
();
}
}
...
...
Game/ClientField.cs
View file @
afaff398
...
@@ -248,6 +248,11 @@ namespace WindBot.Game
...
@@ -248,6 +248,11 @@ namespace WindBot.Game
return
HasInHand
(
cardId
)
||
HasInGraveyard
(
cardId
);
return
HasInHand
(
cardId
)
||
HasInGraveyard
(
cardId
);
}
}
public
bool
HasInGraveyardOrInBanished
(
int
cardId
)
{
return
HasInBanished
(
cardId
)
||
HasInGraveyard
(
cardId
);
}
public
bool
HasInMonstersZoneOrInGraveyard
(
int
cardId
)
public
bool
HasInMonstersZoneOrInGraveyard
(
int
cardId
)
{
{
return
HasInMonstersZone
(
cardId
)
||
HasInGraveyard
(
cardId
);
return
HasInMonstersZone
(
cardId
)
||
HasInGraveyard
(
cardId
);
...
...
Game/GameAI.cs
View file @
afaff398
...
@@ -464,13 +464,13 @@ namespace WindBot.Game
...
@@ -464,13 +464,13 @@ namespace WindBot.Game
/// <returns>Index of the selected option.</returns>
/// <returns>Index of the selected option.</returns>
public
int
OnSelectOption
(
IList
<
int
>
options
)
public
int
OnSelectOption
(
IList
<
int
>
options
)
{
{
if
(
m_option
!=
-
1
&&
m_option
<
options
.
Count
)
return
m_option
;
int
result
=
Executor
.
OnSelectOption
(
options
);
int
result
=
Executor
.
OnSelectOption
(
options
);
if
(
result
!=
-
1
)
if
(
result
!=
-
1
)
return
result
;
return
result
;
if
(
m_option
!=
-
1
&&
m_option
<
options
.
Count
)
return
m_option
;
return
0
;
// Always select the first option.
return
0
;
// Always select the first option.
}
}
...
...
WindBot.csproj
View file @
afaff398
...
@@ -70,6 +70,7 @@
...
@@ -70,6 +70,7 @@
<Compile
Include=
"Game\AI\DeckAttribute.cs"
/>
<Compile
Include=
"Game\AI\DeckAttribute.cs"
/>
<Compile
Include=
"Game\AI\DecksManager.cs"
/>
<Compile
Include=
"Game\AI\DecksManager.cs"
/>
<Compile
Include=
"Game\AI\Decks\AltergeistExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\AltergeistExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\BraveExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\FamiliarPossessedExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\FamiliarPossessedExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\BlackwingExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\BlackwingExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\LuckyExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\LuckyExecutor.cs"
/>
...
...
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