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
nanahira
windbot
Commits
97608d27
Commit
97608d27
authored
Sep 28, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into tricky
parents
d185c474
ba9636b8
Pipeline
#5931
passed with stage
in 1 minute and 45 seconds
Changes
19
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
1263 additions
and
145 deletions
+1263
-145
BotWrapper/bot.conf
BotWrapper/bot.conf
+5
-0
Decks/AI_Brave.ydk
Decks/AI_Brave.ydk
+74
-0
Dialogs/wof-Aiha-Kiriha.json
Dialogs/wof-Aiha-Kiriha.json
+50
-0
Dialogs/wof-Ameuta.json
Dialogs/wof-Ameuta.json
+0
-52
Dialogs/wof-Elyse-Coffey.json
Dialogs/wof-Elyse-Coffey.json
+5
-4
Dialogs/wof-Harumi-Natsuka.json
Dialogs/wof-Harumi-Natsuka.json
+51
-0
Dialogs/wof-Hayami-Nijiha.json
Dialogs/wof-Hayami-Nijiha.json
+53
-0
Dialogs/wof-Norma-Linscott.json
Dialogs/wof-Norma-Linscott.json
+1
-1
Dialogs/wof-Sasaki-Akane.json
Dialogs/wof-Sasaki-Akane.json
+5
-5
Dialogs/wof-Shirayuki-Anna.json
Dialogs/wof-Shirayuki-Anna.json
+1
-1
Dialogs/wof-Todoroki-Kanako.json
Dialogs/wof-Todoroki-Kanako.json
+3
-3
Dialogs/wof-Yumeno.json
Dialogs/wof-Yumeno.json
+0
-54
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
bots-wof.json
bots-wof.json
+14
-14
bots.json
bots.json
+5
-5
No files found.
BotWrapper/bot.conf
View file @
97608d27
...
...
@@ -228,3 +228,8 @@ AI_ANTI_META SUPPORT_MASTER_RULE_3 SUPPORT_NEW_MASTER_RULE SUPPORT_MASTER_RULE_2
Name
=璃璃子
Deck
=
TimeThief
Dialog
=
default
时间潜行者卡组。
AI_LV2
SUPPORT_MASTER_RULE_3
SUPPORT_NEW_MASTER_RULE
SUPPORT_MASTER_RULE_2020
!濑名歌铃
Name
=濑名歌铃
Deck
=
Brave
Dialog
=
wof
-
Sena
-
Karin
????? 卡组。
AI_LV2
SUPPORT_MASTER_RULE_3
SUPPORT_NEW_MASTER_RULE
SUPPORT_MASTER_RULE_2020
Decks/AI_Brave.ydk
0 → 100644
View file @
97608d27
#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
Dialogs/wof-
Ninomiya-Arisu
.json
→
Dialogs/wof-
Aiha-Kiriha
.json
View file @
97608d27
{
"welcome"
:
[
"
来来来,一起来娱乐一下
啊!"
"
新的男朋友候选人?!来来来一起来玩
啊!"
],
"deckerror"
:
[
"
没有{0}就很不娱乐。
"
"
要做我的男朋友怎么能不带好{0}呢?
"
],
"duelstart"
:
[
"
娱乐而已,放轻松就好
。"
"
之前都是唬你的,现在请做好被甩的心理准备
。"
],
"newturn"
:
[
"接下来就是我的舞台咯。"
,
...
...
@@ -14,34 +14,34 @@
],
"endturn"
:
[
"OK,该你了。"
,
"
毕竟是娱乐,这布阵
应该对你来说很轻松。"
"
这道题
应该对你来说很轻松。"
],
"directattack"
:
[
"{0}
直接攻击对手
!"
,
"{0}
拿你那个球去撞对手啊
!"
,
"{0}冲鸭!"
,
"一个巴掌拍得响!"
],
"attack"
:
[
"{0}日了那个{1}!"
,
"{0}去和{1}
娱乐娱乐
。"
,
"这个{1}看起来就
不娱乐啊
……"
"{0}去和{1}
比比长度
。"
,
"这个{1}看起来就
太短了
……"
],
"ondirectattack"
:
[
"哎呀!"
,
"不是说好了
娱乐一下就行
吗?!"
"不是说好了
只吃饭的
吗?!"
],
"facedownmonstername"
:
"怪兽"
,
"activate"
:
[
"我发动{0}的效果,虽然卡图上面没写,但
cdb里
说了就是可以这样用。"
,
"所以{0}什么时候
进去
啊?"
"我发动{0}的效果,虽然卡图上面没写,但
我老婆
说了就是可以这样用。"
,
"所以{0}什么时候
涨价涨到8700万
啊?"
],
"summon"
:
[
"
通召
{0},下略。"
,
"{0}
也快进去了吧
……"
"{0},下略。"
,
"{0}
最近可是稀有货啊
……"
],
"setmonster"
:
[
"日常卡手。"
,
"
让你一把
。"
"
多喝热水
。"
],
"chaining"
:
[
"千防万防防不住{0}。"
,
...
...
Dialogs/wof-Ameuta.json
deleted
100644 → 0
View file @
d185c474
{
"welcome"
:
[
"早上好……啊?现在不是早上?"
],
"deckerror"
:
[
"嘶……我醒了,{0}没了,我睡了。"
],
"duelstart"
:
[
"我反正无所谓,你喜欢就行。"
,
"嘛,无所谓了。"
],
"newturn"
:
[
"啊,是我的回合……"
,
"抽一张卡。"
],
"endturn"
:
[
"睡了睡了,到我了记得叫醒我。"
,
"来来来,请开始你的表演。"
],
"directattack"
:
[
"用{0}进行攻击!"
,
"还行,就拿{0}攻击吧。"
,
"尝尝这个{0}!"
],
"attack"
:
[
"{1},挨下{0}这一拳吧!"
,
"胜利属于{0}!"
,
"{1}给我下去!"
],
"ondirectattack"
:
[
"唔……"
,
"呕啊……!"
,
"(摆出Daisuke的姿势挡脸)"
],
"facedownmonstername"
:
"怪兽"
,
"activate"
:
[
"一花前辈用过的{0}就是好啊……"
,
"{0}……似乎能行。"
],
"summon"
:
[
"啊,是没见过的孩子{0}呢。"
,
"{0}:糖歌这么体弱多病就别打牌了……"
],
"setmonster"
:
[
"嗯……"
],
"chaining"
:
[
"发动{0}的效果进行连锁。"
,
"在你做那件事之前我先发动{0}!"
,
"对3?王炸!"
]
}
\ No newline at end of file
Dialogs/wof-
Awaya-Haru
.json
→
Dialogs/wof-
Elyse-Coffey
.json
View file @
97608d27
{
"welcome"
:
[
"又来啦?还是来
找美妙子的吗
?"
"又来啦?还是来
……办证的
?"
],
"deckerror"
:
[
"
美妙子
现在不在,改天再来吧。"
"
你要办的证的负责人
现在不在,改天再来吧。"
],
"duelstart"
:
[
"既然这样的话,那就先过我这关!"
,
"
美妙子
就在里面,不过你得先打赢我才能去见她。"
"
负责人
就在里面,不过你得先打赢我才能去见她。"
],
"newturn"
:
[
"到我了吗?那就抽牌。"
,
...
...
@@ -27,6 +27,7 @@
],
"ondirectattack"
:
[
"习惯了。"
,
"挫。"
,
"一般。"
],
"facedownmonstername"
:
"怪兽"
,
...
...
@@ -35,7 +36,7 @@
"啊等下,使用{0}的效果。"
],
"summon"
:
[
"
召唤
{0}。"
,
"
厚礼
{0}。"
,
"总之,把{0}拉出来就对了。"
,
"让我召唤{0}。"
],
...
...
Dialogs/wof-Harumi-Natsuka.json
0 → 100644
View file @
97608d27
{
"welcome"
:[
"早晨一杯热牛奶……嗯?我的热牛奶呢?"
],
"deckerror"
:[
"昨天谁进我房间里把{0}拿走了?"
],
"duelstart"
:[
"把你那萝莉控的心脏收起来!"
,
"眼睛看哪儿呢?!"
],
"newturn"
:[
"抓一只卡。"
],
"endturn"
:[
"这位同学,请开始你的表演。"
,
"来点海龟或者翼神龙蛋?"
],
"directattack"
:[
"用{0}进行攻击!"
,
"还行,就拿{0}攻击吧。"
,
"尝尝这个{0}!"
],
"attack"
:[
"{1},挨下{0}这一拳吧!"
,
"胜利属于{0}!"
,
"{1}给我下地狱去!"
],
"ondirectattack"
:[
"……啊…………"
,
"喂!"
,
"不能欺负小孩子啊!"
],
"facedownmonstername"
:
"怪兽"
,
"activate"
:[
"{0}……似乎能行。"
,
"来点无敌{0}。"
],
"summon"
:[
"啊,是没见过的孩子{0}呢。"
,
"我放出了一条{0}!"
],
"setmonster"
:[
"嗯……"
],
"chaining"
:[
"发动{0}的效果进行连锁。"
,
"在你做那件事之前我先发动{0}!"
,
"17张牌你能秒我?!"
]
}
\ No newline at end of file
Dialogs/wof-Hayami-Nijiha.json
0 → 100644
View file @
97608d27
{
"welcome"
:
[
"久 等 了"
],
"deckerror"
:
[
"噔 噔 咚"
],
"duelstart"
:
[
"让我这个大姐姐来传授给你一点人生经验。"
],
"newturn"
:
[
"……抽牌。"
,
"到我了吗?那就抽牌。"
],
"endturn"
:
[
"You Jump I Jump。"
,
"来点上升气流。"
],
"directattack"
:
[
"小老弟还能站起来吗?"
,
"完 全 胜 利"
,
"{0}扭的更用力了!"
],
"attack"
:
[
"{0},先给这个{1}一点颜色看看!"
,
"{1} 无 惨"
,
"大事不好了!{1}的牛牛炸了!"
],
"ondirectattack"
:
[
"B A T T L E F I E L D 5"
,
"你特么{0}劈我是吧!"
,
"……果然要考虑命运石之门的抉择啊……"
],
"facedownmonstername"
:
"怪兽"
,
"activate"
:
[
"这个{0}怎么样?"
,
"嗯……{0}……"
,
"{0}{0}{0}{0}!"
],
"summon"
:
[
"火 {0} 火"
,
"酸 {0} 酸"
,
"爱 {0} 爱"
],
"setmonster"
:
[
"先随便盖只鸡看看……"
],
"chaining"
:
[
"急什么啊?"
,
"小老弟对{0}这么毫无防备的吗?"
,
"这是发动{0}的超稀有机会。"
]
}
\ No newline at end of file
Dialogs/wof-
Kimura-Yuro
.json
→
Dialogs/wof-
Norma-Linscott
.json
View file @
97608d27
...
...
@@ -19,7 +19,7 @@
"directattack"
:
[
"{0}的直接攻击!"
,
"畏惧{0}的力量吧!"
,
"
你
已经无法阻止{0}了!"
"
人类的力量
已经无法阻止{0}了!"
],
"attack"
:
[
"{0},打倒{1}!"
,
...
...
Dialogs/wof-
Kurono-Yukari
.json
→
Dialogs/wof-
Sasaki-Akane
.json
View file @
97608d27
{
"welcome"
:
[
"
又迟到了……下次注意啊。
"
"
嗷嗷嗷!
"
],
"deckerror"
:
[
"啊,似乎忘记带{0}了……"
],
"duelstart"
:
[
"
上课咯!
"
,
"
我可是作为一条狗在跟你打牌。
"
,
"就让我来教教你什么叫打牌。"
],
"newturn"
:
[
...
...
@@ -14,7 +14,7 @@
"总之先抽卡。"
],
"endturn"
:
[
"差不多了……那就先休息一下
喝杯茶
吧。"
,
"差不多了……那就先休息一下
吃个骨头
吧。"
,
"下面轮到你了哦。"
],
"directattack"
:
[
...
...
@@ -31,7 +31,7 @@
"ondirectattack"
:
[
"啊啊啊啊啊啊啊啊啊!!!"
,
"哎呀!痛痛痛痛痛痛痛痛……"
,
"
停一下停一下我还没准备好啊
!"
"
杀狗啦!!!!!
!"
],
"facedownmonstername"
:
"怪兽"
,
"activate"
:
[
...
...
@@ -45,7 +45,7 @@
"出现吧,{0}!"
],
"setmonster"
:
[
"
我放置了一只怪兽。
"
"
一对情侣一条狗……
"
],
"chaining"
:
[
"等一下!我发动{0}!"
,
...
...
Dialogs/wof-Shirayuki-Anna.json
View file @
97608d27
...
...
@@ -19,7 +19,7 @@
],
"directattack"
:
[
"{0},安心去吧!"
,
"
去去去去去去{0}别挡路
!"
,
"
大王叫{0}来巡山啊
!"
,
"Star Lock Explosion!"
],
"attack"
:
[
...
...
Dialogs/wof-
Arisugawa-Arisa
.json
→
Dialogs/wof-
Todoroki-Kanako
.json
View file @
97608d27
{
"welcome"
:
[
"这样啊……那
好吧
。"
"这样啊……那
随你便了
。"
],
"deckerror"
:
[
"嗯?我的{0}呢?"
"嗯?我的{0}呢?
被猪吃了?
"
],
"duelstart"
:
[
"考虑要不要给对面一点面子……"
"考虑要不要给对面一点面子……
算了,懒得给。
"
],
"newturn"
:
[
"……抽牌。"
,
...
...
Dialogs/wof-Yumeno.json
deleted
100644 → 0
View file @
d185c474
{
"welcome"
:
[
"所为何事,速速道来。"
],
"deckerror"
:
[
"啊,{0}又用不出来了。"
],
"duelstart"
:
[
"我是不会手下留情的,请拿出你最佳的状态和实力。"
],
"newturn"
:
[
"……抽牌。"
,
"到我了吗?那就抽牌。"
],
"endturn"
:
[
"我要做的都已经完成了,下面就看你的了。"
,
"我已经没什么可做的了,换你来吧。"
],
"directattack"
:
[
"还能站起来吗?"
,
"不知道能挨得住{0}这一下吗?"
,
"总之{0}直接一拳就对了。"
],
"attack"
:
[
"{0},先给这个{1}一点颜色看看吧。"
,
"这个{1}在{0}面前实际上十分脆弱啊……"
,
"嗯……总之先让这个{1}消失。"
],
"ondirectattack"
:
[
"这点小伤,不算什么。"
,
"只是{0}而已,还不足以置我于死地。"
,
"……我还能站起来!"
],
"facedownmonstername"
:
"怪兽"
,
"activate"
:
[
"先用这个{0}的能力看看。"
,
"嗯……{0}的能力应该管用。"
,
"总之,{0}的能力应该可以应付得了。"
],
"summon"
:
[
"嗯……现在应该先出这个,{0}。"
,
"嘛……这种情况{0}应该能应付得过来。"
,
"{0}也许会迟到,但绝不会缺席。"
],
"setmonster"
:
[
"先随便盖个东西看看……"
,
"总之先加强防御。"
],
"chaining"
:
[
"别急,先让我把{0}发动了再说。"
,
"对{0}这么毫无防备的吗?"
,
"这是发动{0}的绝佳机会。"
]
}
\ No newline at end of file
Game/AI/Decks/BraveExecutor.cs
0 → 100644
View file @
97608d27
using
System
;
using
YGOSharp.OCGWrapper.Enums
;
using
System.Collections.Generic
;
using
WindBot
;
using
WindBot.Game
;
using
WindBot.Game.AI
;
using
System.Linq
;
namespace
WindBot.Game.AI.Decks
{
[
Deck
(
"Brave"
,
"AI_Brave"
)]
class
BraveExecutor
:
DefaultExecutor
{
public
class
CardId
{
public
const
int
WanderingGryphonRider
=
2563463
;
public
const
int
DestinyHeroDasher
=
81866673
;
public
const
int
NemesesCorridor
=
72090076
;
public
const
int
DestinyHeroCelestial
=
63362460
;
public
const
int
AquamancerOfTheSanctuary
=
30680659
;
public
const
int
Sangan
=
26202165
;
public
const
int
CrusadiaArboria
=
91646304
;
public
const
int
AshBlossomJoyousSpring
=
14558127
;
public
const
int
MechaPhantomBeastOLion
=
72291078
;
public
const
int
MaxxC
=
23434538
;
public
const
int
JetSynchron
=
9742784
;
public
const
int
EffectVeiler
=
97268402
;
public
const
int
RiteofAramesia
=
3285551
;
public
const
int
HarpiesFeatherDuster
=
18144506
;
public
const
int
FusionDestiny
=
52947044
;
public
const
int
FoolishBurial
=
81439173
;
public
const
int
MonsterReborn
=
83764718
;
public
const
int
CalledByTheGrave
=
24224830
;
public
const
int
CrossoutDesignator
=
65681983
;
public
const
int
JourneyOfDestiny
=
39568067
;
public
const
int
DracobackTheDragonSteed
=
38745520
;
public
const
int
InfiniteImpermanence
=
10045474
;
public
const
int
SolemnStrike
=
40605147
;
public
const
int
ThunderDragonColossus
=
15291624
;
public
const
int
DestinyHeroDestroyPhoenixEnforcer
=
60461804
;
public
const
int
BaronessDeFleur
=
84815190
;
public
const
int
VirtualWorldKyubiShenshen
=
92519087
;
public
const
int
BorreloadSavageDragon
=
27548199
;
public
const
int
CoralDragon
=
42566602
;
public
const
int
TGHyperLibrarian
=
90953320
;
public
const
int
TGWonderMagician
=
98558751
;
public
const
int
CupidPitch
=
21915012
;
public
const
int
MechaPhantomBeastAuroradon
=
44097050
;
public
const
int
CrystronHalqifibrax
=
50588353
;
public
const
int
PredaplantVerteAnaconda
=
70369116
;
public
const
int
LinkSpider
=
98978921
;
public
const
int
SalamangreatAlmiraj
=
60303245
;
public
const
int
BraveToken
=
3285552
;
public
const
int
MechaPhantomBeastToken
=
31533705
;
}
public
BraveExecutor
(
GameAI
ai
,
Duel
duel
)
:
base
(
ai
,
duel
)
{
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
WanderingGryphonRider
,
WanderingGryphonRiderCounter
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
AshBlossomJoyousSpring
,
DefaultAshBlossomAndJoyousSpring
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
CalledByTheGrave
,
DefaultCalledByTheGrave
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
CrossoutDesignator
,
CrossoutDesignatorEffect
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
EffectVeiler
,
DefaultEffectVeiler
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
InfiniteImpermanence
,
DefaultInfiniteImpermanence
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
BorreloadSavageDragon
,
BorreloadSavageDragonEffect
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
BaronessDeFleur
,
BaronessDeFleurEffect
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
SolemnStrike
,
DefaultSolemnStrike
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
MaxxC
,
DefaultMaxxC
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
HarpiesFeatherDuster
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
ThunderDragonColossus
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
DracobackTheDragonSteed
,
DracobackTheDragonSteedBounce
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
DestinyHeroDestroyPhoenixEnforcer
,
DestinyHeroDestroyPhoenixEnforcerEffect
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
RiteofAramesia
,
RiteofAramesiaEffect
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
AquamancerOfTheSanctuary
,
AquamancerOfTheSanctuarySearchEffect
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
JourneyOfDestiny
,
JourneyOfDestinyActivate
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
WanderingGryphonRider
,
WanderingGryphonRiderSummon
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
FoolishBurial
,
FoolishBurialFirst
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
Sangan
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
MechaPhantomBeastOLion
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
MechaPhantomBeastOLion
,
MechaPhantomBeastOLionEffect
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
JetSynchron
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
JourneyOfDestiny
,
JourneyOfDestinyEffect
);
AddExecutor
(
ExecutorType
.
SpSummon
,
CardId
.
SalamangreatAlmiraj
,
SalamangreatAlmirajSummonFirst
);
AddExecutor
(
ExecutorType
.
SpSummon
,
CardId
.
CrusadiaArboria
,
CrusadiaArboriaSummon
);
AddExecutor
(
ExecutorType
.
SpSummon
,
CardId
.
CrystronHalqifibrax
,
CrystronNeedlefiberSummon
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
CrystronHalqifibrax
,
CrystronNeedlefiberEffect
);
AddExecutor
(
ExecutorType
.
SpSummon
,
CardId
.
MechaPhantomBeastAuroradon
,
MechaPhantomBeastAuroradonSummon
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
MechaPhantomBeastAuroradon
,
MechaPhantomBeastAuroradonEffect
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
AquamancerOfTheSanctuary
,
AquamancerOfTheSanctuarySummonEffect
);
AddExecutor
(
ExecutorType
.
SpSummon
,
CardId
.
TGHyperLibrarian
,
TGHyperLibrarianSummon
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
TGHyperLibrarian
);
AddExecutor
(
ExecutorType
.
SpSummon
,
CardId
.
CupidPitch
,
CupidPitchSummon
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
CupidPitch
,
CupidPitchEffect
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
JetSynchron
,
JetSynchronEffect
);
AddExecutor
(
ExecutorType
.
SpSummon
,
CardId
.
SalamangreatAlmiraj
,
SalamangreatAlmirajSummon
);
AddExecutor
(
ExecutorType
.
SpSummon
,
CardId
.
LinkSpider
,
LinkSpiderSummon
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
DracobackTheDragonSteed
,
DracobackTheDragonSteedEquip
);
AddExecutor
(
ExecutorType
.
SpSummon
,
CardId
.
BorreloadSavageDragon
,
BorreloadSavageDragonSummon
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
NemesesCorridor
);
AddExecutor
(
ExecutorType
.
SpSummon
,
CardId
.
ThunderDragonColossus
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
CrusadiaArboria
,
SummonForMaterial
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
AshBlossomJoyousSpring
,
SummonForMaterial
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
EffectVeiler
,
SummonForMaterial
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
AquamancerOfTheSanctuary
,
SummonForMaterial
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
MaxxC
,
SummonForMaterial
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
FoolishBurial
,
FoolishBurialEffect
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
MonsterReborn
,
MonsterRebornEffect
);
AddExecutor
(
ExecutorType
.
SpSummon
,
CardId
.
BaronessDeFleur
,
BaronessDeFleurSummon
);
AddExecutor
(
ExecutorType
.
SpSummon
,
CardId
.
VirtualWorldKyubiShenshen
,
VirtualWorldKyubiShenshenSummon
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
VirtualWorldKyubiShenshen
,
VirtualWorldKyubiShenshenEffect
);
AddExecutor
(
ExecutorType
.
SpSummon
,
CardId
.
CoralDragon
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
CoralDragon
,
CoralDragonEffect
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
TGWonderMagician
,
TGWonderMagicianEffect
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
FusionDestiny
,
FusionDestinyEffect
);
AddExecutor
(
ExecutorType
.
SpSummon
,
CardId
.
PredaplantVerteAnaconda
,
PredaplantVerteAnacondaSummon
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
PredaplantVerteAnaconda
,
PredaplantVerteAnacondaEffect
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
NemesesCorridor
,
SummonForMaterial
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
DestinyHeroCelestial
,
SummonForMaterial
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
DestinyHeroDasher
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
DestinyHeroCelestial
,
DestinyHeroCelestialEffect
);
AddExecutor
(
ExecutorType
.
Repos
,
MonsterRepos
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
InfiniteImpermanence
,
TrapSet
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
SolemnStrike
,
TrapSet
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
CrossoutDesignator
,
TrapSet
);
AddExecutor
(
ExecutorType
.
MonsterSet
,
CardId
.
Sangan
);
AddExecutor
(
ExecutorType
.
SpellSet
,
SetForCelestial
);
}
private
bool
BeastOLionUsed
=
false
;
private
bool
JetSynchronUsed
=
false
;
private
bool
FusionDestinyUsed
=
false
;
private
bool
BaronessDeFleurUsed
=
false
;
public
override
bool
OnSelectHand
()
{
// go first
return
true
;
}
public
override
void
OnNewTurn
()
{
BeastOLionUsed
=
false
;
JetSynchronUsed
=
false
;
FusionDestinyUsed
=
false
;
}
public
override
CardPosition
OnSelectPosition
(
int
cardId
,
IList
<
CardPosition
>
positions
)
{
YGOSharp
.
OCGWrapper
.
NamedCard
cardData
=
YGOSharp
.
OCGWrapper
.
NamedCard
.
Get
(
cardId
);
if
(
cardData
!=
null
)
{
if
(
cardData
.
Attack
<=
1000
)
return
CardPosition
.
FaceUpDefence
;
}
return
0
;
}
public
override
int
OnSelectPlace
(
int
cardId
,
int
player
,
CardLocation
location
,
int
available
)
{
if
(
location
==
CardLocation
.
MonsterZone
)
{
if
(
cardId
==
CardId
.
SalamangreatAlmiraj
)
{
return
available
&
Zones
.
ExtraMonsterZones
;
}
if
(
cardId
==
CardId
.
TGHyperLibrarian
&&
Bot
.
GetMonsterCount
()
>=
3
)
{
return
available
&
Zones
.
ExtraMonsterZones
;
}
return
available
&
Zones
.
MainMonsterZones
&
~
Bot
.
GetLinkedZones
()
&
~(
Zones
.
z2
+
Zones
.
z4
);
// preserve place for arboria
}
return
0
;
}
public
override
IList
<
ClientCard
>
OnSelectCard
(
IList
<
ClientCard
>
cards
,
int
min
,
int
max
,
int
hint
,
bool
cancelable
)
{
if
(
hint
==
HintMsg
.
AddToHand
&&
max
==
1
)
{
foreach
(
ClientCard
card
in
cards
)
{
if
(
card
.
IsCode
(
CardId
.
CrusadiaArboria
))
return
new
List
<
ClientCard
>(
new
[]
{
card
});
if
(
card
.
IsCode
(
CardId
.
NemesesCorridor
))
return
new
List
<
ClientCard
>(
new
[]
{
card
});
}
foreach
(
ClientCard
card
in
cards
)
{
if
(
card
.
IsCode
(
CardId
.
MaxxC
)
&&
!
Bot
.
HasInHand
(
CardId
.
MaxxC
))
return
new
List
<
ClientCard
>(
new
[]
{
card
});
if
(
card
.
IsCode
(
CardId
.
AshBlossomJoyousSpring
)
&&
!
Bot
.
HasInHand
(
CardId
.
AshBlossomJoyousSpring
))
return
new
List
<
ClientCard
>(
new
[]
{
card
});
if
(
card
.
IsCode
(
CardId
.
EffectVeiler
)
&&
!
Bot
.
HasInHand
(
CardId
.
EffectVeiler
))
return
new
List
<
ClientCard
>(
new
[]
{
card
});
}
}
if
(
hint
==
HintMsg
.
SpSummon
&&
max
==
1
)
{
foreach
(
ClientCard
card
in
cards
)
{
if
(
card
.
IsCode
(
CardId
.
DestinyHeroDestroyPhoenixEnforcer
))
return
new
List
<
ClientCard
>(
new
[]
{
card
});
}
}
return
base
.
OnSelectCard
(
cards
,
min
,
max
,
hint
,
cancelable
);
}
public
override
int
OnSelectOption
(
IList
<
int
>
options
)
{
if
(
options
.
Count
==
2
&&
options
[
0
]
==
Util
.
GetStringId
(
CardId
.
CupidPitch
,
1
))
return
0
;
else
return
base
.
OnSelectOption
(
options
);
}
private
IList
<
int
>
GetHandCost
()
{
List
<
int
>
result
=
new
List
<
int
>
{
};
if
(
Bot
.
HasInMonstersZone
(
CardId
.
BraveToken
))
result
.
Add
(
CardId
.
DracobackTheDragonSteed
);
if
(
Bot
.
Hand
.
Count
(
card
=>
card
.
IsCode
(
CardId
.
FusionDestiny
))
>=
2
)
result
.
Add
(
CardId
.
FusionDestiny
);
if
(
Bot
.
Hand
.
Count
(
card
=>
card
.
IsCode
(
CardId
.
Sangan
))
>=
2
)
result
.
Add
(
CardId
.
Sangan
);
if
(
Bot
.
Hand
.
Count
(
card
=>
card
.
IsCode
(
CardId
.
RiteofAramesia
))
>=
2
)
result
.
Add
(
CardId
.
RiteofAramesia
);
if
(
Bot
.
Hand
.
Count
(
card
=>
card
.
IsCode
(
CardId
.
AquamancerOfTheSanctuary
))
>=
2
)
result
.
Add
(
CardId
.
AquamancerOfTheSanctuary
);
if
(
Bot
.
HasInGraveyardOrInBanished
(
CardId
.
DestinyHeroCelestial
)
||
!
Bot
.
HasInExtra
(
CardId
.
DestinyHeroDestroyPhoenixEnforcer
))
result
.
Add
(
CardId
.
DestinyHeroDasher
);
if
(
Bot
.
HasInGraveyardOrInBanished
(
CardId
.
DestinyHeroDasher
)
||
!
Bot
.
HasInExtra
(
CardId
.
DestinyHeroDestroyPhoenixEnforcer
))
result
.
Add
(
CardId
.
DestinyHeroCelestial
);
if
(
Bot
.
Hand
.
Count
(
card
=>
card
.
IsCode
(
CardId
.
AshBlossomJoyousSpring
))
>=
2
)
result
.
Add
(
CardId
.
AshBlossomJoyousSpring
);
if
(
Bot
.
Hand
.
Count
(
card
=>
card
.
IsCode
(
CardId
.
CrossoutDesignator
))
>=
2
)
result
.
Add
(
CardId
.
CrossoutDesignator
);
if
(
Bot
.
HasInHand
(
result
))
return
result
;
result
.
AddRange
(
new
int
[]{
CardId
.
HarpiesFeatherDuster
,
CardId
.
MechaPhantomBeastOLion
,
CardId
.
Sangan
,
CardId
.
AshBlossomJoyousSpring
,
CardId
.
MaxxC
,
CardId
.
EffectVeiler
,
CardId
.
CrossoutDesignator
,
CardId
.
CalledByTheGrave
,
CardId
.
RiteofAramesia
,
CardId
.
AquamancerOfTheSanctuary
,
CardId
.
InfiniteImpermanence
,
CardId
.
SolemnStrike
});
return
result
;
}
private
bool
WanderingGryphonRiderCounter
()
{
if
(
Card
.
Location
==
CardLocation
.
Hand
)
return
false
;
return
Duel
.
LastChainPlayer
==
1
;
}
private
bool
CrossoutDesignatorEffect
()
{
ClientCard
LastChainCard
=
Util
.
GetLastChainCard
();
if
(
LastChainCard
==
null
||
Duel
.
LastChainPlayer
!=
1
)
return
false
;
return
CrossoutDesignatorCheck
(
LastChainCard
,
CardId
.
AquamancerOfTheSanctuary
,
3
)
||
CrossoutDesignatorCheck
(
LastChainCard
,
CardId
.
Sangan
,
3
)
||
CrossoutDesignatorCheck
(
LastChainCard
,
CardId
.
AshBlossomJoyousSpring
,
3
)
||
CrossoutDesignatorCheck
(
LastChainCard
,
CardId
.
MaxxC
,
2
)
||
CrossoutDesignatorCheck
(
LastChainCard
,
CardId
.
EffectVeiler
,
1
)
||
CrossoutDesignatorCheck
(
LastChainCard
,
CardId
.
RiteofAramesia
,
3
)
||
CrossoutDesignatorCheck
(
LastChainCard
,
CardId
.
HarpiesFeatherDuster
,
1
)
||
CrossoutDesignatorCheck
(
LastChainCard
,
CardId
.
FusionDestiny
,
3
)
||
CrossoutDesignatorCheck
(
LastChainCard
,
CardId
.
FoolishBurial
,
1
)
||
CrossoutDesignatorCheck
(
LastChainCard
,
CardId
.
MonsterReborn
,
1
)
||
CrossoutDesignatorCheck
(
LastChainCard
,
CardId
.
CalledByTheGrave
,
2
)
||
CrossoutDesignatorCheck
(
LastChainCard
,
CardId
.
CrossoutDesignator
,
3
)
||
CrossoutDesignatorCheck
(
LastChainCard
,
CardId
.
InfiniteImpermanence
,
3
)
;
}
private
bool
CrossoutDesignatorCheck
(
ClientCard
LastChainCard
,
int
id
,
int
count
)
{
if
(
LastChainCard
.
IsCode
(
id
)
&&
Bot
.
GetRemainingCount
(
id
,
count
)
>
0
)
{
AI
.
SelectAnnounceID
(
id
);
return
true
;
}
return
false
;
}
private
bool
DestinyHeroDestroyPhoenixEnforcerEffect
()
{
if
(
Card
.
Location
==
CardLocation
.
Grave
)
return
true
;
else
{
ClientCard
target
=
Util
.
GetProblematicEnemyCard
();
if
(
target
!=
null
)
{
AI
.
SelectCard
(
CardId
.
DestinyHeroDestroyPhoenixEnforcer
);
AI
.
SelectNextCard
(
target
);
return
true
;
}
target
=
Util
.
GetBestEnemyCard
();
if
(
target
==
null
)
return
false
;
if
(
DefaultOnBecomeTarget
()
||
Bot
.
UnderAttack
||
Duel
.
Phase
==
DuelPhase
.
End
||
(
Duel
.
Player
==
0
&&
Util
.
IsTurn1OrMain2
())
||
(
Duel
.
Player
==
1
&&
Enemy
.
GetMonsterCount
()
>=
2
))
{
AI
.
SelectCard
(
CardId
.
DestinyHeroDestroyPhoenixEnforcer
);
AI
.
SelectNextCard
(
target
);
return
true
;
}
return
false
;
}
}
private
bool
DracobackTheDragonSteedBounce
()
{
if
(
Card
.
Location
!=
CardLocation
.
SpellZone
)
return
false
;
ClientCard
target
=
Util
.
GetProblematicEnemyCard
();
AI
.
SelectCard
(
target
);
return
true
;
}
private
bool
DracobackTheDragonSteedEquip
()
{
if
(
Card
.
Location
==
CardLocation
.
SpellZone
)
return
false
;
if
(
Card
.
Location
==
CardLocation
.
Grave
)
return
true
;
if
(
Bot
.
HasInMonstersZone
(
CardId
.
BraveToken
,
faceUp
:
true
))
{
AI
.
SelectCard
(
CardId
.
BraveToken
);
return
true
;
}
return
false
;
}
private
bool
BorreloadSavageDragonSummon
()
{
int
[]
materials
=
new
[]
{
CardId
.
CupidPitch
,
CardId
.
MechaPhantomBeastToken
,
CardId
.
AquamancerOfTheSanctuary
};
if
(
Bot
.
MonsterZone
.
GetMatchingCardsCount
(
card
=>
card
.
IsCode
(
materials
))
>=
2
)
{
AI
.
SelectMaterials
(
materials
);
return
true
;
}
return
false
;
}
private
bool
BorreloadSavageDragonEffect
()
{
if
(
ActivateDescription
==
-
1
)
{
AI
.
SelectCard
(
new
[]
{
CardId
.
MechaPhantomBeastAuroradon
,
CardId
.
CrystronHalqifibrax
,
CardId
.
PredaplantVerteAnaconda
});
return
true
;
}
else
{
return
true
;
}
}
private
bool
RiteofAramesiaEffect
()
{
AI
.
SelectYesNo
(
true
);
return
true
;
}
private
bool
WanderingGryphonRiderSummon
()
{
if
(
Card
.
Location
!=
CardLocation
.
Hand
)
return
false
;
return
Bot
.
HasInMonstersZone
(
CardId
.
BraveToken
)
||
(
Duel
.
Player
==
0
&&
(
Duel
.
LastChainPlayer
==
-
1
||
Bot
.
HasInSpellZone
(
CardId
.
JourneyOfDestiny
)));
}
private
bool
JourneyOfDestinyActivate
()
{
return
Card
.
Location
==
CardLocation
.
Hand
;
}
private
bool
JourneyOfDestinyEffect
()
{
if
(
Card
.
Location
==
CardLocation
.
Hand
)
return
false
;
if
(
ActivateDescription
==
-
1
||
ActivateDescription
==
Util
.
GetStringId
(
CardId
.
JourneyOfDestiny
,
1
))
{
// search equip to hand
AI
.
SelectOption
(
0
);
return
true
;
}
else
{
// search rider or aquamancer
if
(
Bot
.
GetRemainingCount
(
CardId
.
WanderingGryphonRider
,
1
)
==
0
&&
Bot
.
HasInHandOrInMonstersZoneOrInGraveyard
(
CardId
.
AquamancerOfTheSanctuary
))
return
false
;
AI
.
SelectCard
(
CardId
.
WanderingGryphonRider
);
AI
.
SelectNextCard
(
GetHandCost
());
return
true
;
}
}
private
bool
AquamancerOfTheSanctuarySearchEffect
()
{
if
(
Card
.
Location
==
CardLocation
.
Grave
)
{
AI
.
SelectCard
(
CardLocation
.
Deck
);
return
true
;
}
if
(
ActivateDescription
==
Util
.
GetStringId
(
CardId
.
AquamancerOfTheSanctuary
,
0
))
{
// summon
return
false
;
}
else
{
// search
return
!
Bot
.
HasInHand
(
CardId
.
RiteofAramesia
)
&&
!
Bot
.
HasInMonstersZone
(
CardId
.
BraveToken
);
}
}
private
bool
AquamancerOfTheSanctuarySummonEffect
()
{
if
(
ActivateDescription
==
Util
.
GetStringId
(
CardId
.
AquamancerOfTheSanctuary
,
0
))
{
// summon
return
Bot
.
GetMonsterCount
()
<=
3
;
}
return
false
;
}
private
bool
MechaPhantomBeastOLionEffect
()
{
if
(
Bot
.
GetMonsterCount
()
>=
3
&&
((
Bot
.
HasInExtra
(
CardId
.
MechaPhantomBeastAuroradon
)
&&
Bot
.
HasInMonstersZone
(
CardId
.
CrystronHalqifibrax
))
||
Bot
.
HasInMonstersZone
(
CardId
.
MechaPhantomBeastAuroradon
)))
return
false
;
if
(
ActivateDescription
==
-
1
)
{
BeastOLionUsed
=
true
;
return
true
;
}
return
!
BeastOLionUsed
;
}
private
bool
CrusadiaArboriaSummon
()
{
return
!
Bot
.
GetMonsters
().
Any
(
card
=>
card
.
IsFaceup
()
&&
card
.
IsTuner
());
}
private
bool
CrystronNeedlefiberSummon
()
{
if
(
JetSynchronUsed
&&
!
Bot
.
HasInMonstersZone
(
CardId
.
MechaPhantomBeastOLion
))
return
false
;
List
<
int
>
materials
=
new
List
<
int
>{
CardId
.
Sangan
,
CardId
.
PredaplantVerteAnaconda
,
CardId
.
SalamangreatAlmiraj
,
CardId
.
LinkSpider
,
CardId
.
MaxxC
,
CardId
.
MechaPhantomBeastToken
,
CardId
.
AquamancerOfTheSanctuary
,
CardId
.
CrusadiaArboria
,
CardId
.
MechaPhantomBeastOLion
,
CardId
.
JetSynchron
,
CardId
.
AshBlossomJoyousSpring
,
CardId
.
EffectVeiler
};
if
(!
Bot
.
HasInMonstersZone
(
CardId
.
BraveToken
)
||
!
Bot
.
HasInMonstersZone
(
CardId
.
WanderingGryphonRider
))
{
materials
.
Add
(
CardId
.
BraveToken
);
materials
.
Add
(
CardId
.
WanderingGryphonRider
);
}
if
(
Bot
.
MonsterZone
.
GetMatchingCardsCount
(
card
=>
card
.
IsCode
(
materials
))
>=
2
)
{
AI
.
SelectMaterials
(
materials
);
return
true
;
}
return
false
;
}
private
bool
CrystronNeedlefiberEffect
()
{
if
(
Duel
.
Player
==
0
)
{
AI
.
SelectCard
(
CardId
.
JetSynchron
,
CardId
.
MechaPhantomBeastOLion
,
CardId
.
EffectVeiler
);
return
true
;
}
else
{
if
(
Enemy
.
GetSpells
().
Any
(
card
=>
card
.
IsFacedown
()
||
card
.
HasType
(
CardType
.
Continuous
)
||
card
.
HasType
(
CardType
.
Field
)
||
card
.
HasType
(
CardType
.
Equip
)))
{
AI
.
SelectCard
(
CardId
.
TGWonderMagician
);
}
else
{
AI
.
SelectCard
(
CardId
.
CoralDragon
);
}
return
true
;
}
}
private
bool
TGWonderMagicianEffect
()
{
ClientCard
target
=
Util
.
GetProblematicEnemySpell
();
if
(
target
==
null
)
target
=
Enemy
.
GetSpells
().
Find
(
card
=>
card
.
IsFacedown
()
||
card
.
HasType
(
CardType
.
Continuous
)
||
card
.
HasType
(
CardType
.
Field
)
||
card
.
HasType
(
CardType
.
Equip
));
if
(
target
==
null
)
return
false
;
AI
.
SelectCard
(
target
);
return
true
;
}
private
bool
MechaPhantomBeastAuroradonSummon
()
{
return
Bot
.
GetMonsterCount
()
<=
4
;
// has 3 field for tokens
}
private
bool
MechaPhantomBeastAuroradonEffect
()
{
if
(
ActivateDescription
==
-
1
)
return
true
;
else
{
AI
.
SelectOption
(
1
);
// release 2 monsters
AI
.
SelectCard
(
CardId
.
MechaPhantomBeastAuroradon
);
AI
.
SelectNextCard
(
CardId
.
MechaPhantomBeastToken
);
return
true
;
}
}
private
bool
TGHyperLibrarianSummon
()
{
int
[]
materials
=
new
[]
{
CardId
.
MechaPhantomBeastOLion
,
CardId
.
MechaPhantomBeastToken
,
CardId
.
AquamancerOfTheSanctuary
};
if
(
Bot
.
MonsterZone
.
GetMatchingCardsCount
(
card
=>
card
.
IsCode
(
materials
))
>=
3
)
{
AI
.
SelectMaterials
(
materials
);
return
true
;
}
return
false
;
}
private
bool
JetSynchronEffect
()
{
int
[]
materials
=
new
[]
{
CardId
.
MechaPhantomBeastToken
};
if
(
Bot
.
MonsterZone
.
GetMatchingCardsCount
(
card
=>
card
.
IsCode
(
materials
))
>=
2
||
Bot
.
GetMonsterCount
()
<=
3
)
{
JetSynchronUsed
=
true
;
AI
.
SelectCard
(
GetHandCost
());
return
true
;
}
return
false
;
}
private
bool
CupidPitchSummon
()
{
int
[]
materials
=
new
[]
{
CardId
.
JetSynchron
,
CardId
.
EffectVeiler
,
CardId
.
MechaPhantomBeastToken
,
CardId
.
AquamancerOfTheSanctuary
,
CardId
.
Sangan
,
CardId
.
TGHyperLibrarian
,
CardId
.
BraveToken
};
if
(
Bot
.
MonsterZone
.
GetMatchingCardsCount
(
card
=>
card
.
IsCode
(
materials
))
>=
3
)
{
AI
.
SelectMaterials
(
materials
);
return
true
;
}
return
false
;
}
private
bool
CupidPitchEffect
()
{
if
(
Card
.
Location
==
CardLocation
.
MonsterZone
)
{
AI
.
SelectOption
(
1
);
// level up
}
else
{
AI
.
SelectCard
(
CardId
.
NemesesCorridor
);
}
return
true
;
}
private
bool
SalamangreatAlmirajSummonFirst
()
{
int
[]
materials
=
new
[]
{
CardId
.
Sangan
};
if
(
Bot
.
MonsterZone
.
GetMatchingCardsCount
(
card
=>
card
.
IsCode
(
materials
)
&&
!
card
.
IsSpecialSummoned
)
==
0
)
return
false
;
AI
.
SelectMaterials
(
materials
);
return
true
;
}
private
bool
SalamangreatAlmirajSummon
()
{
int
[]
materials
=
new
[]
{
CardId
.
Sangan
,
CardId
.
MechaPhantomBeastOLion
,
CardId
.
JetSynchron
};
if
(
Bot
.
MonsterZone
.
GetMatchingCardsCount
(
card
=>
card
.
IsCode
(
materials
)
&&
!
card
.
IsSpecialSummoned
)
==
0
)
return
false
;
AI
.
SelectMaterials
(
materials
);
return
true
;
}
private
bool
LinkSpiderSummon
()
{
if
(
PhoenixNotAvail
())
return
false
;
List
<
int
>
materials
=
new
List
<
int
>{
CardId
.
MechaPhantomBeastToken
};
if
(!
Bot
.
HasInMonstersZone
(
CardId
.
BraveToken
)
||
!
Bot
.
HasInMonstersZone
(
CardId
.
WanderingGryphonRider
))
{
materials
.
Add
(
CardId
.
BraveToken
);
}
if
(
Bot
.
MonsterZone
.
GetMatchingCardsCount
(
card
=>
card
.
IsCode
(
materials
))
==
0
)
return
false
;
AI
.
SelectMaterials
(
materials
);
return
true
;
}
private
bool
NeedMonster
()
{
if
(
Bot
.
HasInMonstersZone
(
CardId
.
PredaplantVerteAnaconda
,
true
)
||
PhoenixNotAvail
())
return
false
;
if
(
Bot
.
MonsterZone
.
GetMatchingCardsCount
(
card
=>
card
.
Level
>=
8
)
>
0
)
return
false
;
if
(
Bot
.
GetMonsterCount
()
==
0
&&
Bot
.
Hand
.
GetMatchingCardsCount
(
card
=>
card
.
Level
<=
4
)
==
0
)
return
false
;
if
(
Bot
.
GetMonsterCount
()
>=
2
)
return
false
;
return
true
;
}
private
bool
SummonForMaterial
()
{
if
(
Bot
.
HasInMonstersZone
(
CardId
.
PredaplantVerteAnaconda
,
true
)
||
!
Bot
.
HasInExtra
(
CardId
.
PredaplantVerteAnaconda
))
return
false
;
if
(
Bot
.
MonsterZone
.
GetMatchingCardsCount
(
card
=>
(
card
.
HasType
(
CardType
.
Effect
)
||
card
.
IsTuner
())
&&
card
.
Level
<
8
)
==
1
)
return
true
;
return
false
;
}
private
bool
PhoenixNotAvail
()
{
return
Bot
.
GetRemainingCount
(
CardId
.
FusionDestiny
,
3
)
==
0
||
Bot
.
HasInHand
(
CardId
.
FusionDestiny
)
||
!
Bot
.
HasInExtra
(
CardId
.
PredaplantVerteAnaconda
)
||
!
Bot
.
HasInExtra
(
CardId
.
DestinyHeroDestroyPhoenixEnforcer
)
||
(
Bot
.
GetRemainingCount
(
CardId
.
DestinyHeroCelestial
,
1
)
==
0
&&
!
Bot
.
HasInHand
(
CardId
.
DestinyHeroCelestial
))
||
(
Bot
.
GetRemainingCount
(
CardId
.
DestinyHeroDasher
,
1
)
==
0
&&
!
Bot
.
HasInHand
(
CardId
.
DestinyHeroDasher
));
}
private
bool
PredaplantVerteAnacondaSummon
()
{
if
(
PhoenixNotAvail
())
return
false
;
List
<
int
>
materials
=
new
List
<
int
>{
CardId
.
AquamancerOfTheSanctuary
,
CardId
.
Sangan
,
CardId
.
SalamangreatAlmiraj
,
CardId
.
LinkSpider
,
CardId
.
NemesesCorridor
,
CardId
.
DestinyHeroCelestial
,
CardId
.
DestinyHeroDasher
,
CardId
.
CrusadiaArboria
,
CardId
.
AshBlossomJoyousSpring
,
CardId
.
MechaPhantomBeastOLion
,
CardId
.
MaxxC
,
CardId
.
JetSynchron
,
CardId
.
EffectVeiler
,
CardId
.
CrystronHalqifibrax
,
CardId
.
TGHyperLibrarian
};
if
(!
Bot
.
HasInMonstersZone
(
CardId
.
BraveToken
)
||
!
Bot
.
HasInMonstersZone
(
CardId
.
WanderingGryphonRider
))
{
materials
.
Add
(
CardId
.
WanderingGryphonRider
);
}
if
(
Bot
.
MonsterZone
.
GetMatchingCardsCount
(
card
=>
card
.
IsCode
(
materials
))
>=
2
)
{
AI
.
SelectMaterials
(
materials
);
return
true
;
}
return
false
;
}
private
bool
PredaplantVerteAnacondaEffect
()
{
if
(
ActivateDescription
==
Util
.
GetStringId
(
CardId
.
PredaplantVerteAnaconda
,
0
))
return
false
;
FusionDestinyUsed
=
true
;
AI
.
SelectCard
(
CardId
.
FusionDestiny
);
AI
.
SelectMaterials
(
CardLocation
.
Deck
);
return
true
;
}
private
bool
FusionDestinyEffect
()
{
FusionDestinyUsed
=
true
;
return
true
;
}
private
bool
FoolishBurialFirst
()
{
if
(!
Bot
.
HasInHand
(
CardId
.
RiteofAramesia
)
&&
!
Bot
.
HasInHandOrInGraveyard
(
CardId
.
AquamancerOfTheSanctuary
)
&&
!
Bot
.
HasInMonstersZone
(
CardId
.
BraveToken
))
{
AI
.
SelectCard
(
CardId
.
AquamancerOfTheSanctuary
);
return
true
;
}
return
false
;
}
private
bool
FoolishBurialEffect
()
{
if
(
FusionDestinyUsed
)
return
false
;
if
(!
NeedMonster
())
return
false
;
AI
.
SelectCard
(
new
[]
{
CardId
.
MechaPhantomBeastOLion
});
return
true
;
}
private
bool
MonsterRebornEffect
()
{
if
(
Bot
.
HasInGraveyard
(
CardId
.
BaronessDeFleur
))
{
AI
.
SelectCard
(
CardId
.
BaronessDeFleur
);
return
true
;
}
else
if
(
Bot
.
HasInGraveyard
(
CardId
.
WanderingGryphonRider
))
{
AI
.
SelectCard
(
CardId
.
WanderingGryphonRider
);
return
true
;
}
else
{
if
(!
NeedMonster
())
return
false
;
AI
.
SelectCard
(
new
[]
{
CardId
.
Sangan
,
CardId
.
MechaPhantomBeastOLion
,
CardId
.
CrusadiaArboria
,
CardId
.
AshBlossomJoyousSpring
});
return
true
;
}
}
private
bool
DestinyHeroCelestialEffect
()
{
if
(!
Bot
.
HasInGraveyard
(
CardId
.
DestinyHeroDasher
))
return
false
;
AI
.
SelectCard
(
CardId
.
DestinyHeroDasher
);
return
true
;
}
private
bool
BaronessDeFleurSummon
()
{
int
[]
materials
=
new
[]
{
CardId
.
CupidPitch
,
CardId
.
TGWonderMagician
,
CardId
.
TGHyperLibrarian
};
if
(
Bot
.
MonsterZone
.
GetMatchingCardsCount
(
card
=>
card
.
IsCode
(
materials
))
>=
2
)
{
AI
.
SelectMaterials
(
materials
);
return
true
;
}
if
(!
Bot
.
HasInMonstersZone
(
CardId
.
BraveToken
))
{
materials
=
new
[]
{
CardId
.
AshBlossomJoyousSpring
,
CardId
.
CrusadiaArboria
,
CardId
.
WanderingGryphonRider
};
if
(
Bot
.
MonsterZone
.
GetMatchingCardsCount
(
card
=>
card
.
IsCode
(
materials
))
>=
2
)
{
AI
.
SelectMaterials
(
materials
);
return
true
;
}
}
if
(!
Bot
.
HasInMonstersZone
(
CardId
.
WanderingGryphonRider
)
||
Bot
.
HasInHand
(
CardId
.
RiteofAramesia
))
{
materials
=
new
[]
{
CardId
.
CoralDragon
,
CardId
.
BraveToken
};
if
(
Bot
.
MonsterZone
.
GetMatchingCardsCount
(
card
=>
card
.
IsCode
(
materials
))
>=
2
)
{
AI
.
SelectMaterials
(
materials
);
return
true
;
}
}
return
false
;
}
private
bool
BaronessDeFleurEffect
()
{
if
(
Duel
.
LastChainPlayer
==
1
)
{
BaronessDeFleurUsed
=
true
;
return
true
;
}
if
(
Duel
.
Phase
==
DuelPhase
.
Standby
&&
BaronessDeFleurUsed
)
{
BaronessDeFleurUsed
=
false
;
return
true
;
}
if
(
Duel
.
Phase
==
DuelPhase
.
Main1
||
Duel
.
Phase
==
DuelPhase
.
Main2
)
{
ClientCard
target
=
Util
.
GetProblematicEnemyCard
(
canBeTarget
:
true
);
if
(
target
==
null
)
target
=
Util
.
GetBestEnemyCard
(
canBeTarget
:
true
);
if
(
target
!=
null
)
{
AI
.
SelectCard
(
target
);
return
true
;
}
}
return
false
;
}
private
bool
VirtualWorldKyubiShenshenSummon
()
{
int
[]
materials
=
new
[]
{
CardId
.
CoralDragon
,
CardId
.
AquamancerOfTheSanctuary
,
CardId
.
Sangan
};
if
(
Bot
.
MonsterZone
.
GetMatchingCardsCount
(
card
=>
card
.
IsCode
(
materials
))
>=
2
)
{
AI
.
SelectMaterials
(
materials
);
return
true
;
}
if
(!
Bot
.
HasInMonstersZone
(
CardId
.
BraveToken
))
{
materials
=
new
[]
{
CardId
.
MechaPhantomBeastOLion
,
CardId
.
WanderingGryphonRider
};
if
(
Bot
.
MonsterZone
.
GetMatchingCardsCount
(
card
=>
card
.
IsCode
(
materials
))
>=
2
)
{
AI
.
SelectMaterials
(
materials
);
return
true
;
}
}
return
false
;
}
private
bool
VirtualWorldKyubiShenshenEffect
()
{
if
(
Card
.
Location
==
CardLocation
.
MonsterZone
&&
Bot
.
HasInBanished
(
CardId
.
AquamancerOfTheSanctuary
))
{
AI
.
SelectCard
(
CardId
.
AquamancerOfTheSanctuary
);
return
true
;
}
else
{
int
[]
costs
=
new
[]
{
CardId
.
NemesesCorridor
,
CardId
.
Sangan
,
CardId
.
CrusadiaArboria
,
CardId
.
AshBlossomJoyousSpring
,
CardId
.
MechaPhantomBeastOLion
,
CardId
.
MaxxC
,
CardId
.
EffectVeiler
,
CardId
.
ThunderDragonColossus
,
CardId
.
BorreloadSavageDragon
,
CardId
.
CoralDragon
,
CardId
.
TGHyperLibrarian
,
CardId
.
TGWonderMagician
,
CardId
.
CupidPitch
,
CardId
.
CrystronHalqifibrax
,
CardId
.
PredaplantVerteAnaconda
,
CardId
.
LinkSpider
,
CardId
.
SalamangreatAlmiraj
};
AI
.
SelectCard
(
costs
);
AI
.
SelectNextCard
(
costs
);
return
true
;
}
}
private
bool
CoralDragonEffect
()
{
if
(
Card
.
Location
==
CardLocation
.
Grave
)
return
true
;
ClientCard
target
=
Util
.
GetProblematicEnemyCard
(
canBeTarget
:
true
);
if
(
target
!=
null
)
{
AI
.
SelectCard
(
target
);
return
true
;
}
return
false
;
}
private
bool
TrapSet
()
{
AI
.
SelectPlace
(
Zones
.
z0
+
Zones
.
z1
+
Zones
.
z3
+
Zones
.
z4
);
return
true
;
}
private
bool
SetForCelestial
()
{
return
!
FusionDestinyUsed
&&
Bot
.
HasInGraveyard
(
CardId
.
DestinyHeroCelestial
)
&&
Bot
.
HasInGraveyard
(
CardId
.
DestinyHeroDasher
)
&&
TrapSet
();
}
private
bool
MonsterRepos
()
{
if
(
Card
.
IsFacedown
())
return
true
;
return
DefaultMonsterRepos
();
}
}
}
Game/AI/DefaultExecutor.cs
View file @
97608d27
...
...
@@ -500,8 +500,9 @@ namespace WindBot.Game.AI
/// </summary>
protected
bool
DefaultEffectVeiler
()
{
if
(
Util
.
GetLastChainCard
()
!=
null
&&
Util
.
GetLastChainCard
().
IsCode
(
_CardId
.
GalaxySoldier
)
&&
Enemy
.
Hand
.
Count
>=
3
)
return
false
;
if
(
Util
.
ChainContainsCard
(
_CardId
.
EffectVeiler
))
ClientCard
LastChainCard
=
Util
.
GetLastChainCard
();
if
(
LastChainCard
!=
null
&&
(
LastChainCard
.
IsCode
(
_CardId
.
GalaxySoldier
)
&&
Enemy
.
Hand
.
Count
>=
3
||
LastChainCard
.
IsCode
(
_CardId
.
EffectVeiler
,
_CardId
.
InfiniteImpermanence
)))
return
false
;
return
DefaultBreakthroughSkill
();
}
...
...
@@ -539,7 +540,9 @@ namespace WindBot.Game.AI
protected
bool
DefaultInfiniteImpermanence
()
{
// 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
DefaultDisableMonster
();
}
...
...
Game/ClientField.cs
View file @
97608d27
...
...
@@ -248,6 +248,11 @@ namespace WindBot.Game
return
HasInHand
(
cardId
)
||
HasInGraveyard
(
cardId
);
}
public
bool
HasInGraveyardOrInBanished
(
int
cardId
)
{
return
HasInBanished
(
cardId
)
||
HasInGraveyard
(
cardId
);
}
public
bool
HasInMonstersZoneOrInGraveyard
(
int
cardId
)
{
return
HasInMonstersZone
(
cardId
)
||
HasInGraveyard
(
cardId
);
...
...
Game/GameAI.cs
View file @
97608d27
...
...
@@ -464,13 +464,13 @@ namespace WindBot.Game
/// <returns>Index of the selected option.</returns>
public
int
OnSelectOption
(
IList
<
int
>
options
)
{
if
(
m_option
!=
-
1
&&
m_option
<
options
.
Count
)
return
m_option
;
int
result
=
Executor
.
OnSelectOption
(
options
);
if
(
result
!=
-
1
)
return
result
;
if
(
m_option
!=
-
1
&&
m_option
<
options
.
Count
)
return
m_option
;
return
0
;
// Always select the first option.
}
...
...
WindBot.csproj
View file @
97608d27
...
...
@@ -70,6 +70,7 @@
<Compile
Include=
"Game\AI\DeckAttribute.cs"
/>
<Compile
Include=
"Game\AI\DecksManager.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\BlackwingExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\LuckyExecutor.cs"
/>
...
...
bots-wof.json
View file @
97608d27
...
...
@@ -26,9 +26,9 @@
"dialog"
:
"wof-Ayase-Amu"
},
{
"name"
:
"
淡野晴
"
,
"name"
:
"
埃莉丝·科菲
"
,
"deck"
:
"Level VIII"
,
"dialog"
:
"wof-
Awaya-Haru
"
"dialog"
:
"wof-
Elyse-Coffey
"
},
{
"name"
:
"城崎千夏"
,
...
...
@@ -46,9 +46,9 @@
"dialog"
:
"wof-Sagisawa-Yui"
},
{
"name"
:
"
有栖川亚里沙
"
,
"name"
:
"
十十六木花奏子
"
,
"deck"
:
"Qliphort"
,
"dialog"
:
"wof-
Arisugawa-Arisa
"
"dialog"
:
"wof-
Todoroki-Kanako
"
},
{
"name"
:
"七草一花"
,
...
...
@@ -101,9 +101,9 @@
"dialog"
:
"wof-Tsukishiro-Isuzu"
},
{
"name"
:
"
糖歌
"
,
"name"
:
"
晴海夏佳
"
,
"deck"
:
"OldSchool"
,
"dialog"
:
"wof-
Ameut
a"
"dialog"
:
"wof-
Harumi-Natsuk
a"
},
{
"name"
:
"濑名歌铃"
,
...
...
@@ -126,14 +126,14 @@
"dialog"
:
"wof-Helen-Virsaladze"
},
{
"name"
:
"
二宫爱丽丝
"
,
"name"
:
"
蓝叶雾叶
"
,
"deck"
:
"Dragun"
,
"dialog"
:
"wof-
Ninomiya-Arisu
"
"dialog"
:
"wof-
Aiha-Kiriha
"
},
{
"name"
:
"
木村有容
"
,
"name"
:
"
诺玛·林斯科特
"
,
"deck"
:
"MathMech"
,
"dialog"
:
"wof-
Kimura-Yuro
"
"dialog"
:
"wof-
Norma-Linscott
"
},
{
"name"
:
"砂冢明音"
,
...
...
@@ -141,9 +141,9 @@
"dialog"
:
"wof-Sunazuka-Akane"
},
{
"name"
:
"
梦野
"
,
"name"
:
"
早见虹羽
"
,
"deck"
:
"PureWinds"
,
"dialog"
:
"wof-
Yumeno
"
"dialog"
:
"wof-
Hayami-Nijiha
"
},
{
"name"
:
"白雪安娜"
,
...
...
@@ -161,9 +161,9 @@
"dialog"
:
"wof-Asami-Sorako"
},
{
"name"
:
"
黑野紫
"
,
"name"
:
"
佐佐木茜
"
,
"deck"
:
"Horus"
,
"dialog"
:
"wof-
Kurono-Yukari
"
"dialog"
:
"wof-
Sasaki-Akane
"
},
{
"name"
:
"克里斯汀·罗森塔尔"
,
...
...
bots.json
View file @
97608d27
...
...
@@ -188,11 +188,6 @@
"deck"
:
"Phantasm"
,
"dialog"
:
"kiwi.zh-TW"
},
{
"name"
:
"幻煌果"
,
"deck"
:
"Phantasm"
,
"dialog"
:
"kiwi.zh-TW"
},
{
"name"
:
"報社鬥士"
,
"deck"
:
"GrenMajuThunderBoarder"
,
...
...
@@ -214,6 +209,11 @@
"name"
:
"璃璃子"
,
"deck"
:
"TimeThief"
,
"dialog"
:
"default"
},
{
"name"
:
"濑名歌铃"
,
"deck"
:
"Brave"
,
"dialog"
:
"wof-Sena-Karin"
}
]
}
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