Commit 54f91d96 authored by YSPplayer's avatar YSPplayer Committed by mercury233

add bot Tearlaments (#158)

parent e062a1ec
#created by ...
#main
3717252
77723643
572850
572850
572850
73956664
73956664
25926710
25926710
25926710
99937011
99937011
99937011
62320425
62320425
62320425
63542003
63542003
97518132
37961969
37961969
37961969
74078255
74078255
74078255
92919429
92919429
92919429
17266660
17266660
17266660
21074344
21074344
21074344
40177746
6767771
77103950
77103950
74920585
74920585
#extra
28226490
84330567
69946549
92731385
92731385
94977269
80532587
84815190
33158448
21044178
98127546
21887175
38342335
27381364
65741786
!side
...@@ -142,6 +142,13 @@ namespace WindBot.Game.AI.Decks ...@@ -142,6 +142,13 @@ namespace WindBot.Game.AI.Decks
AddExecutor(ExecutorType.SpellSet, SpellSet); AddExecutor(ExecutorType.SpellSet, SpellSet);
AddExecutor(ExecutorType.Repos, DefaultRepos); AddExecutor(ExecutorType.Repos, DefaultRepos);
} }
public override bool OnSelectHand()
{
// go first
return true;
}
public override void OnNewTurn() public override void OnNewTurn()
{ {
if (pre_link_mode < 0) pre_link_mode = Program.Rand.Next(2); if (pre_link_mode < 0) pre_link_mode = Program.Rand.Next(2);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -248,6 +248,13 @@ namespace WindBot.Game.AI.Decks ...@@ -248,6 +248,13 @@ namespace WindBot.Game.AI.Decks
} }
} }
#endregion #endregion
public override bool OnSelectHand()
{
// go first
return true;
}
public override void OnNewTurn() public override void OnNewTurn()
{ {
handActivated = false; handActivated = false;
......
...@@ -165,6 +165,10 @@ namespace WindBot.Game.AI ...@@ -165,6 +165,10 @@ namespace WindBot.Game.AI
// For overriding // For overriding
return null; return null;
} }
public virtual void OnSelectChain(IList<ClientCard> cards)
{
return;
}
public virtual bool OnSelectYesNo(int desc) public virtual bool OnSelectYesNo(int desc)
{ {
......
...@@ -304,6 +304,7 @@ namespace WindBot.Game ...@@ -304,6 +304,7 @@ namespace WindBot.Game
/// <returns>Index of the activated card or -1.</returns> /// <returns>Index of the activated card or -1.</returns>
public int OnSelectChain(IList<ClientCard> cards, IList<int> descs, bool forced) public int OnSelectChain(IList<ClientCard> cards, IList<int> descs, bool forced)
{ {
Executor.OnSelectChain(cards);
foreach (CardExecutor exec in Executor.Executors) foreach (CardExecutor exec in Executor.Executors)
{ {
for (int i = 0; i < cards.Count; ++i) for (int i = 0; i < cards.Count; ++i)
......
...@@ -86,6 +86,7 @@ ...@@ -86,6 +86,7 @@
<Compile Include="Game\AI\Decks\SkyStrikerExecutor.cs" /> <Compile Include="Game\AI\Decks\SkyStrikerExecutor.cs" />
<Compile Include="Game\AI\Decks\MokeyMokeyKingExecutor.cs" /> <Compile Include="Game\AI\Decks\MokeyMokeyKingExecutor.cs" />
<Compile Include="Game\AI\Decks\MokeyMokeyExecutor.cs" /> <Compile Include="Game\AI\Decks\MokeyMokeyExecutor.cs" />
<Compile Include="Game\AI\Decks\TearlamentsExecutor.cs" />
<Compile Include="Game\AI\Decks\ThunderDragonExecutor.cs" /> <Compile Include="Game\AI\Decks\ThunderDragonExecutor.cs" />
<Compile Include="Game\AI\Decks\TimeThiefExecutor.cs" /> <Compile Include="Game\AI\Decks\TimeThiefExecutor.cs" />
<Compile Include="Game\AI\Decks\ToadallyAwesomeExecutor.cs" /> <Compile Include="Game\AI\Decks\ToadallyAwesomeExecutor.cs" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment