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
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
MyCard
windbot
Commits
5870c2d9
Commit
5870c2d9
authored
Apr 05, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor format fixes
parent
cfc60c2b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
53 additions
and
54 deletions
+53
-54
Dialogs/kiwi.zh-TW.json
Dialogs/kiwi.zh-TW.json
+1
-2
Game/AI/Decks/BlackwingExecutor.cs
Game/AI/Decks/BlackwingExecutor.cs
+1
-1
Game/AI/Decks/CyberDragonExecutor.cs
Game/AI/Decks/CyberDragonExecutor.cs
+1
-1
Game/AI/Decks/LightswornShaddoldinosourExecutor.cs
Game/AI/Decks/LightswornShaddoldinosourExecutor.cs
+44
-44
Game/AI/Decks/NekrozExecutor.cs
Game/AI/Decks/NekrozExecutor.cs
+4
-4
Game/AI/Decks/QliphortExecutor.cs
Game/AI/Decks/QliphortExecutor.cs
+1
-1
Game/GameAI.cs
Game/GameAI.cs
+1
-1
No files found.
Dialogs/kiwi.zh-
CN
.json
→
Dialogs/kiwi.zh-
TW
.json
View file @
5870c2d9
...
@@ -9,8 +9,7 @@
...
@@ -9,8 +9,7 @@
"duelstart"
:
[
"duelstart"
:
[
"這只是AI,打贏不要太高興阿。"
,
"這只是AI,打贏不要太高興阿。"
,
"十分致謝233服讓我們有遊戲可以玩,別忘記去拜訪他們。"
,
"十分致謝233服讓我們有遊戲可以玩,別忘記去拜訪他們。"
,
"反主流學院請洽NOVA。"
,
"反主流學院請洽NOVA。"
],
],
"newturn"
:
[
"newturn"
:
[
"到我的回合了,抽牌!"
,
"到我的回合了,抽牌!"
,
...
...
Game/AI/Decks/BlackwingExecutor.cs
View file @
5870c2d9
...
@@ -43,7 +43,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -43,7 +43,7 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
DarkHole
,
DefaultDarkHole
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
DarkHole
,
DefaultDarkHole
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
Raigeki
,
DefaultRaigeki
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
Raigeki
,
DefaultRaigeki
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
BlackWhirlwind
,
BlackWhirlwindEffect
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
BlackWhirlwind
,
BlackWhirlwindEffect
);
AddExecutor
(
ExecutorType
.
SpSummon
,
CardId
.
KrisTheCrackOfDawn
);
AddExecutor
(
ExecutorType
.
SpSummon
,
CardId
.
KrisTheCrackOfDawn
);
AddExecutor
(
ExecutorType
.
SummonOrSet
,
CardId
.
KrisTheCrackOfDawn
);
AddExecutor
(
ExecutorType
.
SummonOrSet
,
CardId
.
KrisTheCrackOfDawn
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
SiroccoTheDawn
,
SiroccoTheDawnSummon
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
SiroccoTheDawn
,
SiroccoTheDawnSummon
);
...
...
Game/AI/Decks/CyberDragonExecutor.cs
View file @
5870c2d9
...
@@ -129,7 +129,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -129,7 +129,7 @@ namespace WindBot.Game.AI.Decks
if
(
bestMy
==
null
||
!
AI
.
Utils
.
IsOneEnemyBetterThanValue
(
bestMy
.
Attack
,
false
))
if
(
bestMy
==
null
||
!
AI
.
Utils
.
IsOneEnemyBetterThanValue
(
bestMy
.
Attack
,
false
))
return
false
;
return
false
;
else
else
AI
.
SelectCard
(
Enemy
.
MonsterZone
.
GetHighestAttackMonster
());
AI
.
SelectCard
(
Enemy
.
MonsterZone
.
GetHighestAttackMonster
());
return
true
;
return
true
;
}
}
...
...
Game/AI/Decks/LightswornShaddoldinosourExecutor.cs
View file @
5870c2d9
...
@@ -34,7 +34,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -34,7 +34,7 @@ namespace WindBot.Game.AI.Decks
public
const
int
MaxxC
=
23434538
;
public
const
int
MaxxC
=
23434538
;
public
const
int
PlaguespreaderZombie
=
33420078
;
public
const
int
PlaguespreaderZombie
=
33420078
;
public
const
int
GlowUpBulb
=
67441435
;
public
const
int
GlowUpBulb
=
67441435
;
//spell
//spell
public
const
int
AllureofDarkness
=
1475311
;
public
const
int
AllureofDarkness
=
1475311
;
public
const
int
ThatGrassLooksgreener
=
11110587
;
public
const
int
ThatGrassLooksgreener
=
11110587
;
...
@@ -53,7 +53,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -53,7 +53,7 @@ namespace WindBot.Game.AI.Decks
public
const
int
LostWind
=
74003290
;
public
const
int
LostWind
=
74003290
;
public
const
int
SinisterShadowGames
=
77505534
;
public
const
int
SinisterShadowGames
=
77505534
;
public
const
int
ShaddollCore
=
4904633
;
public
const
int
ShaddollCore
=
4904633
;
//extra
//extra
public
const
int
ElShaddollShekhinaga
=
74822425
;
public
const
int
ElShaddollShekhinaga
=
74822425
;
public
const
int
ElShaddollConstruct
=
20366274
;
public
const
int
ElShaddollConstruct
=
20366274
;
...
@@ -77,7 +77,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -77,7 +77,7 @@ namespace WindBot.Game.AI.Decks
:
base
(
ai
,
duel
)
:
base
(
ai
,
duel
)
{
{
//counter
//counter
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
GhostOgre
,
Hand_act_eff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
GhostOgre
,
Hand_act_eff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
AshBlossom
,
Hand_act_eff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
AshBlossom
,
Hand_act_eff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
MaxxC
,
MaxxC
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
MaxxC
,
MaxxC
);
...
@@ -86,7 +86,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -86,7 +86,7 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
infiniteTransience
,
infiniteTransience
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
infiniteTransience
,
infiniteTransience
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
ThatGrassLooksgreener
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
ThatGrassLooksgreener
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
SouleatingOviraptor
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
SouleatingOviraptor
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
SouleatingOviraptor
,
SouleatingOviraptoreff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
SouleatingOviraptor
,
SouleatingOviraptoreff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
AllureofDarkness
,
DefaultAllureofDarkness
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
AllureofDarkness
,
DefaultAllureofDarkness
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
PotOfAvarice
,
PotofAvarice
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
PotOfAvarice
,
PotofAvarice
);
// AddExecutor(ExecutorType.Activate, CardId.HarpiesFeatherDuster);
// AddExecutor(ExecutorType.Activate, CardId.HarpiesFeatherDuster);
...
@@ -99,9 +99,9 @@ namespace WindBot.Game.AI.Decks
...
@@ -99,9 +99,9 @@ namespace WindBot.Game.AI.Decks
//Normal Summon
//Normal Summon
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
Raiden
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
Raiden
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
Raiden
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
Raiden
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
KeeperOfDragonicMagic
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
KeeperOfDragonicMagic
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
KeeperOfDragonicMagic
,
KeeperOfDragonicMagic
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
KeeperOfDragonicMagic
,
KeeperOfDragonicMagic
);
AddExecutor
(
ExecutorType
.
MonsterSet
,
CardId
.
ShaddollSquamata
);
AddExecutor
(
ExecutorType
.
MonsterSet
,
CardId
.
ShaddollSquamata
);
AddExecutor
(
ExecutorType
.
MonsterSet
,
CardId
.
GlowUpBulb
);
AddExecutor
(
ExecutorType
.
MonsterSet
,
CardId
.
GlowUpBulb
);
AddExecutor
(
ExecutorType
.
MonsterSet
,
CardId
.
ShaddollHedgehog
);
AddExecutor
(
ExecutorType
.
MonsterSet
,
CardId
.
ShaddollHedgehog
);
...
@@ -116,12 +116,12 @@ namespace WindBot.Game.AI.Decks
...
@@ -116,12 +116,12 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
DoubleEvolutionPill
,
DoubleEvolutionPill
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
DoubleEvolutionPill
,
DoubleEvolutionPill
);
AddExecutor
(
ExecutorType
.
SpSummon
,
CardId
.
MinervaTheExalte
);
AddExecutor
(
ExecutorType
.
SpSummon
,
CardId
.
MinervaTheExalte
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
MinervaTheExalte
,
MinervaTheExaltedEffect
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
MinervaTheExalte
,
MinervaTheExaltedEffect
);
//activate
//activate
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
GlowUpBulb
,
GlowUpBulb
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
GlowUpBulb
,
GlowUpBulb
);
//activate chain
//activate chain
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
OvertexCoatls
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
OvertexCoatls
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
ShaddollBeast
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
ShaddollBeast
);
...
@@ -142,7 +142,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -142,7 +142,7 @@ namespace WindBot.Game.AI.Decks
//trap
//trap
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
LostWind
,
TrapSetWhenZoneFree
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
LostWind
,
TrapSetWhenZoneFree
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
SinisterShadowGames
,
TrapSetWhenZoneFree
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
SinisterShadowGames
,
TrapSetWhenZoneFree
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
ShaddollCore
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
ShaddollCore
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
infiniteTransience
,
SetIsFieldEmpty
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
infiniteTransience
,
SetIsFieldEmpty
);
//trap activate
//trap activate
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
LostWind
,
DefaultBreakthroughSkill
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
LostWind
,
DefaultBreakthroughSkill
);
...
@@ -206,12 +206,12 @@ namespace WindBot.Game.AI.Decks
...
@@ -206,12 +206,12 @@ namespace WindBot.Game.AI.Decks
CardId
.
ChargeOfTheLightBrigade
,
CardId
.
ChargeOfTheLightBrigade
,
CardId
.
FoolishBurial
,
CardId
.
FoolishBurial
,
CardId
.
HarpiesFeatherDuster
,
CardId
.
HarpiesFeatherDuster
,
CardId
.
ThatGrassLooksgreener
,
CardId
.
ThatGrassLooksgreener
,
CardId
.
FairyTailSnow
,
CardId
.
FairyTailSnow
,
CardId
.
GiantRex
,
CardId
.
GiantRex
,
CardId
.
Lumina
,
CardId
.
Lumina
,
CardId
.
OvertexCoatls
,
CardId
.
OvertexCoatls
,
};
};
}
}
...
@@ -233,7 +233,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -233,7 +233,7 @@ namespace WindBot.Game.AI.Decks
}
}
if
(
Duel
.
Phase
==
DuelPhase
.
Damage
)
if
(
Duel
.
Phase
==
DuelPhase
.
Damage
)
return
true
;
return
true
;
return
true
;
return
true
;
}
}
private
bool
UltimateConductorTytannosp
()
private
bool
UltimateConductorTytannosp
()
...
@@ -254,8 +254,8 @@ namespace WindBot.Game.AI.Decks
...
@@ -254,8 +254,8 @@ namespace WindBot.Game.AI.Decks
AI
.
SelectCard
(
Useless_List
());
AI
.
SelectCard
(
Useless_List
());
return
true
;
return
true
;
}
}
return
true
;
return
true
;
}
}
private
bool
MonsterRepos
()
private
bool
MonsterRepos
()
...
@@ -273,11 +273,11 @@ namespace WindBot.Game.AI.Decks
...
@@ -273,11 +273,11 @@ namespace WindBot.Game.AI.Decks
if
(
Pillused
==
true
)
return
false
;
if
(
Pillused
==
true
)
return
false
;
Pillused
=
true
;
Pillused
=
true
;
IList
<
int
>
targets
=
new
[]
{
IList
<
int
>
targets
=
new
[]
{
CardId
.
GiantRex
,
CardId
.
GiantRex
,
CardId
.
DogorantheMadFlameKaiju
,
CardId
.
DogorantheMadFlameKaiju
,
CardId
.
GamecieltheSeaTurtleKaiju
,
CardId
.
GamecieltheSeaTurtleKaiju
,
CardId
.
RadiantheMultidimensionalKaiju
,
CardId
.
RadiantheMultidimensionalKaiju
,
CardId
.
OvertexCoatls
,
CardId
.
OvertexCoatls
,
CardId
.
SouleatingOviraptor
,
CardId
.
SouleatingOviraptor
,
CardId
.
UltimateConductorTytanno
,
CardId
.
UltimateConductorTytanno
,
};
};
...
@@ -288,7 +288,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -288,7 +288,7 @@ namespace WindBot.Game.AI.Decks
CardId
.
DogorantheMadFlameKaiju
,
CardId
.
DogorantheMadFlameKaiju
,
CardId
.
OvertexCoatls
,
CardId
.
OvertexCoatls
,
CardId
.
GamecieltheSeaTurtleKaiju
,
CardId
.
GamecieltheSeaTurtleKaiju
,
CardId
.
RadiantheMultidimensionalKaiju
,
CardId
.
RadiantheMultidimensionalKaiju
,
CardId
.
SouleatingOviraptor
,
CardId
.
SouleatingOviraptor
,
CardId
.
UltimateConductorTytanno
,
CardId
.
UltimateConductorTytanno
,
});
});
...
@@ -306,7 +306,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -306,7 +306,7 @@ namespace WindBot.Game.AI.Decks
});
});
}
}
AI
.
SelectNextCard
(
new
[]
{
AI
.
SelectNextCard
(
new
[]
{
CardId
.
ShaddollBeast
,
CardId
.
ShaddollBeast
,
CardId
.
ShaddollDragon
,
CardId
.
ShaddollDragon
,
CardId
.
KeeperOfDragonicMagic
,
CardId
.
KeeperOfDragonicMagic
,
CardId
.
ShaddollSquamata
,
CardId
.
ShaddollSquamata
,
...
@@ -320,7 +320,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -320,7 +320,7 @@ namespace WindBot.Game.AI.Decks
CardId
.
MaxxC
,
CardId
.
MaxxC
,
CardId
.
PlaguespreaderZombie
,
CardId
.
PlaguespreaderZombie
,
CardId
.
GlowUpBulb
,
CardId
.
GlowUpBulb
,
CardId
.
FairyTailSnow
,
CardId
.
FairyTailSnow
,
});
});
AI
.
SelectThirdCard
(
new
[]
{
AI
.
SelectThirdCard
(
new
[]
{
...
@@ -340,14 +340,14 @@ namespace WindBot.Game.AI.Decks
...
@@ -340,14 +340,14 @@ namespace WindBot.Game.AI.Decks
AI
.
SelectPosition
(
CardPosition
.
FaceUpDefence
);
AI
.
SelectPosition
(
CardPosition
.
FaceUpDefence
);
return
true
;
return
true
;
}
}
return
false
;
return
false
;
}
}
return
true
;
return
true
;
}
}
private
bool
FairyTailSnow
()
private
bool
FairyTailSnow
()
{
{
if
(
Card
.
Location
==
CardLocation
.
MonsterZone
)
if
(
Card
.
Location
==
CardLocation
.
MonsterZone
)
{
{
return
true
;
return
true
;
...
@@ -367,7 +367,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -367,7 +367,7 @@ namespace WindBot.Game.AI.Decks
}
}
private
bool
ShaddollFusion
()
private
bool
ShaddollFusion
()
{
{
if
(
Enemy
.
GetMonstersExtraZoneCount
()
!=
0
)
if
(
Enemy
.
GetMonstersExtraZoneCount
()
!=
0
)
{
{
IList
<
ClientCard
>
materials0
=
Bot
.
Deck
;
IList
<
ClientCard
>
materials0
=
Bot
.
Deck
;
...
@@ -375,7 +375,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -375,7 +375,7 @@ namespace WindBot.Game.AI.Decks
IList
<
ClientCard
>
mats
=
new
List
<
ClientCard
>();
IList
<
ClientCard
>
mats
=
new
List
<
ClientCard
>();
AI
.
SelectCard
(
CardId
.
ElShaddollConstruct
);
AI
.
SelectCard
(
CardId
.
ElShaddollConstruct
);
ClientCard
mat
=
null
;
ClientCard
mat
=
null
;
foreach
(
ClientCard
card
in
materials0
)
foreach
(
ClientCard
card
in
materials0
)
{
{
...
@@ -432,7 +432,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -432,7 +432,7 @@ namespace WindBot.Game.AI.Decks
mats
.
Add
(
mat
);
mats
.
Add
(
mat
);
AI
.
SelectMaterials
(
mats
);
AI
.
SelectMaterials
(
mats
);
AI
.
SelectPosition
(
CardPosition
.
FaceUpAttack
);
AI
.
SelectPosition
(
CardPosition
.
FaceUpAttack
);
return
true
;
return
true
;
}
}
...
@@ -463,7 +463,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -463,7 +463,7 @@ namespace WindBot.Game.AI.Decks
mats
.
Add
(
mat
);
mats
.
Add
(
mat
);
AI
.
SelectMaterials
(
mats
);
AI
.
SelectMaterials
(
mats
);
AI
.
SelectPosition
(
CardPosition
.
FaceUpAttack
);
AI
.
SelectPosition
(
CardPosition
.
FaceUpAttack
);
return
true
;
return
true
;
}
}
...
@@ -494,7 +494,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -494,7 +494,7 @@ namespace WindBot.Game.AI.Decks
mats
.
Add
(
mat
);
mats
.
Add
(
mat
);
AI
.
SelectMaterials
(
mats
);
AI
.
SelectMaterials
(
mats
);
AI
.
SelectPosition
(
CardPosition
.
FaceUpAttack
);
AI
.
SelectPosition
(
CardPosition
.
FaceUpAttack
);
return
true
;
return
true
;
}
}
...
@@ -509,7 +509,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -509,7 +509,7 @@ namespace WindBot.Game.AI.Decks
return
true
;
return
true
;
}
}
/* private ClientCard GetAleisterInGrave()
/* private ClientCard GetAleisterInGrave()
{
{
...
@@ -529,8 +529,8 @@ namespace WindBot.Game.AI.Decks
...
@@ -529,8 +529,8 @@ namespace WindBot.Game.AI.Decks
}
}
return null;
return null;
}*/
}*/
private
bool
ShaddollCore
()
private
bool
ShaddollCore
()
{
{
return
Bot
.
HasInGraveyard
(
CardId
.
ShaddollFusion
);
return
Bot
.
HasInGraveyard
(
CardId
.
ShaddollFusion
);
...
@@ -552,7 +552,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -552,7 +552,7 @@ namespace WindBot.Game.AI.Decks
{
{
return
true
;
return
true
;
}
}
return
false
;
return
false
;
}
}
private
bool
spellset
()
private
bool
spellset
()
{
{
...
@@ -560,13 +560,13 @@ namespace WindBot.Game.AI.Decks
...
@@ -560,13 +560,13 @@ namespace WindBot.Game.AI.Decks
}
}
private
bool
RebornEffect
()
private
bool
RebornEffect
()
{
{
IList
<
int
>
targets
=
new
[]
{
IList
<
int
>
targets
=
new
[]
{
CardId
.
UltimateConductorTytanno
,
CardId
.
UltimateConductorTytanno
,
CardId
.
ElShaddollConstruct
,
CardId
.
ElShaddollConstruct
,
CardId
.
DogorantheMadFlameKaiju
,
CardId
.
DogorantheMadFlameKaiju
,
CardId
.
GamecieltheSeaTurtleKaiju
,
CardId
.
GamecieltheSeaTurtleKaiju
,
CardId
.
SouleatingOviraptor
,
CardId
.
SouleatingOviraptor
,
};
};
if
(!
Bot
.
HasInGraveyard
(
targets
))
if
(!
Bot
.
HasInGraveyard
(
targets
))
{
{
...
@@ -602,9 +602,9 @@ namespace WindBot.Game.AI.Decks
...
@@ -602,9 +602,9 @@ namespace WindBot.Game.AI.Decks
AI
.
SelectCard
(
CardId
.
Raiden
);
AI
.
SelectCard
(
CardId
.
Raiden
);
else
else
AI
.
SelectCard
(
new
[]
AI
.
SelectCard
(
new
[]
{
{
CardId
.
Lumina
,
CardId
.
Lumina
,
});
});
return
true
;
return
true
;
}
}
...
@@ -617,7 +617,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -617,7 +617,7 @@ namespace WindBot.Game.AI.Decks
AI
.
SelectCard
(
new
[]
AI
.
SelectCard
(
new
[]
{
{
CardId
.
ShaddollBeast
,
CardId
.
ShaddollBeast
,
}
}
);
);
...
@@ -640,7 +640,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -640,7 +640,7 @@ namespace WindBot.Game.AI.Decks
CardId
.
ShaddollSquamata
,
CardId
.
ShaddollSquamata
,
}
}
);
);
}
}
return
true
;
return
true
;
}
}
...
@@ -669,12 +669,12 @@ namespace WindBot.Game.AI.Decks
...
@@ -669,12 +669,12 @@ namespace WindBot.Game.AI.Decks
});
});
}
}
else
else
{
{
ClientCard
target
=
AI
.
Utils
.
GetBestEnemyMonster
();
ClientCard
target
=
AI
.
Utils
.
GetBestEnemyMonster
();
AI
.
SelectCard
(
target
);
AI
.
SelectCard
(
target
);
}
}
return
true
;
return
true
;
...
@@ -683,7 +683,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -683,7 +683,7 @@ namespace WindBot.Game.AI.Decks
}
}
private
bool
FoolishBurialEffect
()
private
bool
FoolishBurialEffect
()
{
{
AI
.
SelectCard
(
new
[]
AI
.
SelectCard
(
new
[]
{
{
CardId
.
OvertexCoatls
,
CardId
.
OvertexCoatls
,
...
@@ -697,7 +697,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -697,7 +697,7 @@ namespace WindBot.Game.AI.Decks
});
});
return
true
;
return
true
;
}
}
private
bool
GoblindberghSummon
()
private
bool
GoblindberghSummon
()
{
{
...
@@ -709,9 +709,9 @@ namespace WindBot.Game.AI.Decks
...
@@ -709,9 +709,9 @@ namespace WindBot.Game.AI.Decks
return
false
;
return
false
;
}
}
private
bool
PerformageTrickClownEffect
()
private
bool
PerformageTrickClownEffect
()
{
{
AI
.
SelectPosition
(
CardPosition
.
FaceUpDefence
);
AI
.
SelectPosition
(
CardPosition
.
FaceUpDefence
);
...
...
Game/AI/Decks/NekrozExecutor.cs
View file @
5870c2d9
...
@@ -9,7 +9,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -9,7 +9,7 @@ namespace WindBot.Game.AI.Decks
// NOT FINISHED YET
// NOT FINISHED YET
[
Deck
(
"Nekroz"
,
"AI_Nekroz"
,
"NotFinished"
)]
[
Deck
(
"Nekroz"
,
"AI_Nekroz"
,
"NotFinished"
)]
public
class
NekrozExecutor
:
DefaultExecutor
public
class
NekrozExecutor
:
DefaultExecutor
{
{
public
class
CardId
public
class
CardId
{
{
public
const
int
DancePrincess
=
52738610
;
public
const
int
DancePrincess
=
52738610
;
...
@@ -45,7 +45,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -45,7 +45,7 @@ namespace WindBot.Game.AI.Decks
public
NekrozExecutor
(
GameAI
ai
,
Duel
duel
)
public
NekrozExecutor
(
GameAI
ai
,
Duel
duel
)
:
base
(
ai
,
duel
)
:
base
(
ai
,
duel
)
{
{
NekrozRituelCard
.
Add
(
CardId
.
Clausolas
);
NekrozRituelCard
.
Add
(
CardId
.
Clausolas
);
NekrozRituelCard
.
Add
(
CardId
.
Unicore
);
NekrozRituelCard
.
Add
(
CardId
.
Unicore
);
NekrozRituelCard
.
Add
(
CardId
.
DecisiveArmor
);
NekrozRituelCard
.
Add
(
CardId
.
DecisiveArmor
);
NekrozRituelCard
.
Add
(
CardId
.
Brionac
);
NekrozRituelCard
.
Add
(
CardId
.
Brionac
);
...
@@ -103,7 +103,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -103,7 +103,7 @@ namespace WindBot.Game.AI.Decks
private
bool
ThousandHandsSummon
()
private
bool
ThousandHandsSummon
()
{
{
if
(!
Bot
.
HasInHand
(
NekrozRituelCard
)
||
Bot
.
HasInHand
(
CardId
.
Shurit
)
||
!
Bot
.
HasInHand
(
NekrozSpellCard
))
if
(!
Bot
.
HasInHand
(
NekrozRituelCard
)
||
Bot
.
HasInHand
(
CardId
.
Shurit
)
||
!
Bot
.
HasInHand
(
NekrozSpellCard
))
return
true
;
return
true
;
foreach
(
ClientCard
Card
in
Bot
.
Hand
)
foreach
(
ClientCard
Card
in
Bot
.
Hand
)
if
(
Card
!=
null
&&
Card
.
Id
==
CardId
.
Kaleidoscope
&&
!
Bot
.
HasInHand
(
CardId
.
Unicore
))
if
(
Card
!=
null
&&
Card
.
Id
==
CardId
.
Kaleidoscope
&&
!
Bot
.
HasInHand
(
CardId
.
Unicore
))
...
@@ -175,7 +175,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -175,7 +175,7 @@ namespace WindBot.Game.AI.Decks
}
}
private
bool
GungnirEffect
()
private
bool
GungnirEffect
()
{
{
if
(
AI
.
Utils
.
IsOneEnemyBetter
(
true
)
&&
Duel
.
Phase
==
DuelPhase
.
Main1
)
if
(
AI
.
Utils
.
IsOneEnemyBetter
(
true
)
&&
Duel
.
Phase
==
DuelPhase
.
Main1
)
{
{
AI
.
SelectCard
(
Enemy
.
GetMonsters
().
GetHighestAttackMonster
());
AI
.
SelectCard
(
Enemy
.
GetMonsters
().
GetHighestAttackMonster
());
...
...
Game/AI/Decks/QliphortExecutor.cs
View file @
5870c2d9
...
@@ -191,7 +191,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -191,7 +191,7 @@ namespace WindBot.Game.AI.Decks
}
}
return
false
;
return
false
;
}
}
private
bool
TrapSetUnique
()
private
bool
TrapSetUnique
()
{
{
foreach
(
ClientCard
card
in
Bot
.
GetSpells
())
foreach
(
ClientCard
card
in
Bot
.
GetSpells
())
...
...
Game/GameAI.cs
View file @
5870c2d9
...
@@ -703,7 +703,7 @@ namespace WindBot.Game
...
@@ -703,7 +703,7 @@ namespace WindBot.Game
{
{
m_thirdSelector
=
new
CardSelector
(
loc
);
m_thirdSelector
=
new
CardSelector
(
loc
);
}
}
public
void
SelectMaterials
(
ClientCard
card
)
public
void
SelectMaterials
(
ClientCard
card
)
{
{
m_materialSelector
=
new
CardSelector
(
card
);
m_materialSelector
=
new
CardSelector
(
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