Commit c110109d authored by mercury233's avatar mercury233

new deck

parent 01524bc5
#created by ...
#main
63941210
36956512
55063751
28674152
29726552
65367484
65367484
65367484
77150143
77150143
77150143
31755044
31755044
31755044
86120751
86120751
86120751
78872731
78872731
78872731
18144506
53129443
73628505
73628505
73628505
74063034
74063034
74063034
83764718
99330325
99330325
99330325
46060017
46060017
46060017
57103969
47679935
47679935
47679935
73881652
#extra
75286621
75286621
48791583
56832966
84013237
581014
581014
11510448
11510448
41375811
41375811
48905153
48905153
85115440
85115440
!side
This diff is collapsed.
......@@ -59,6 +59,7 @@
NaturiaBarkion = 2956282,
EvilswarmOphion = 91279700,
MermailAbyssgaios = 74371660,
AbyssDweller = 21044178
AbyssDweller = 21044178,
ZoodiacDrident = 48905153
}
}
......@@ -70,6 +70,7 @@ namespace WindBot.Game
m_selector = null;
m_nextSelector = null;
m_option = -1;
m_yesno = -1;
m_position = CardPosition.FaceUpAttack;
Duel.LastSummonPlayer = -1;
if (Duel.Player == 0 && Duel.Phase == DuelPhase.Draw)
......@@ -446,6 +447,8 @@ namespace WindBot.Game
/// <returns>True for yes, false for no.</returns>
public bool OnSelectYesNo(int desc)
{
if (m_yesno != -1)
return m_yesno>0;
return Executor.OnSelectYesNo(desc);
}
......@@ -465,10 +468,12 @@ namespace WindBot.Game
private CardSelector m_selector;
private CardSelector m_nextSelector;
private CardSelector m_thirdSelector;
private CardPosition m_position = CardPosition.FaceUpAttack;
private int m_option;
private int m_number;
private int m_announce;
private int m_yesno;
private IList<CardAttribute> m_attributes = new List<CardAttribute>();
private IList<CardRace> m_races = new List<CardRace>();
......@@ -522,17 +527,45 @@ namespace WindBot.Game
m_nextSelector = new CardSelector(loc);
}
public void SelectThirdCard(ClientCard card)
{
m_thirdSelector = new CardSelector(card);
}
public void SelectThirdCard(IList<ClientCard> cards)
{
m_thirdSelector = new CardSelector(cards);
}
public void SelectThirdCard(int cardId)
{
m_thirdSelector = new CardSelector(cardId);
}
public void SelectThirdCard(IList<int> ids)
{
m_thirdSelector = new CardSelector(ids);
}
public void SelectThirdCard(CardLocation loc)
{
m_thirdSelector = new CardSelector(loc);
}
public CardSelector GetSelectedCards()
{
CardSelector selected = m_selector;
m_selector = null;
if (m_nextSelector != null)
{
m_selector = m_nextSelector;
m_nextSelector = null;
if (m_thirdSelector != null)
{
m_nextSelector = m_thirdSelector;
m_thirdSelector = null;
}
}
else
m_selector = null;
return selected;
}
......@@ -582,6 +615,11 @@ namespace WindBot.Game
m_announce = id;
}
public void SelectYesNo(bool opt)
{
m_yesno = opt?1:0;
}
/// <summary>
/// Called when the AI has to declare a number.
/// </summary>
......
......@@ -77,6 +77,7 @@
<Compile Include="Game\AI\Decks\DoEveryThingExecutor.cs" />
<Compile Include="Game\AI\Decks\OldSchoolExecutor.cs" />
<Compile Include="Game\AI\Decks\Rank5Executor.cs" />
<Compile Include="Game\AI\Decks\ZoodiacExecutor.cs" />
<Compile Include="Game\AI\Decks\ZexalWeaponsExecutor.cs" />
<Compile Include="Game\AI\DefaultExecutor.cs" />
<Compile Include="Game\AI\Dialogs.cs" />
......
......@@ -32,12 +32,17 @@
},
{
"name": "复制植物",
"deck": "Blue-Eyes",
"deck": "Zoodiac",
"dialog": "copy.zh-CN"
},
{
"name": "复制植物",
"deck": "Blue-Eyes",
"deck": "Zoodiac",
"dialog": "copy.zh-CN"
},
{
"name": "复制植物",
"deck": "Zoodiac",
"dialog": "copy.zh-CN"
},
{
......
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