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
9d4c1974
Commit
9d4c1974
authored
Mar 07, 2023
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/IceYGO/windbot
parents
714846e1
3c40d4c4
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
208 additions
and
8 deletions
+208
-8
BotWrapper/bot.conf
BotWrapper/bot.conf
+7
-2
Game/AI/DefaultExecutor.cs
Game/AI/DefaultExecutor.cs
+55
-0
Game/AI/Enums/Floodgate.cs
Game/AI/Enums/Floodgate.cs
+94
-1
Game/AI/Enums/FusionSpell.cs
Game/AI/Enums/FusionSpell.cs
+28
-0
Game/AI/Enums/InvincibleMonster.cs
Game/AI/Enums/InvincibleMonster.cs
+10
-2
Game/AI/Enums/PreventActivationEffectInBattle.cs
Game/AI/Enums/PreventActivationEffectInBattle.cs
+5
-0
Game/AI/Enums/ShouldBeDisabledBeforeItUseEffectMonster.cs
Game/AI/Enums/ShouldBeDisabledBeforeItUseEffectMonster.cs
+4
-1
Game/AI/Enums/ShouldNotBeMonsterTarget.cs
Game/AI/Enums/ShouldNotBeMonsterTarget.cs
+3
-1
Game/AI/Enums/ShouldNotBeSpellTarget.cs
Game/AI/Enums/ShouldNotBeSpellTarget.cs
+2
-1
No files found.
BotWrapper/bot.conf
View file @
9d4c1974
...
...
@@ -72,7 +72,7 @@ SUPPORT_MASTER_RULE_3 SUPPORT_MASTER_RULE_2020
!复制植物-青眼
Name
=复制植物
Deck
=
Blue
-
Eyes
Dialog
=
copy
.
zh
-
CN
青眼卡组。
AI_LV
3
SUPPORT_MASTER_RULE_3
SUPPORT_MASTER_RULE_2020
AI_LV
2
SUPPORT_MASTER_RULE_3
SUPPORT_MASTER_RULE_2020
!复制植物-十二兽
Name
=复制植物
Deck
=
Zoodiac
Dialog
=
copy
.
zh
-
CN
...
...
@@ -202,4 +202,9 @@ AI_LV3 SUPPORT_MASTER_RULE_2020
![狂野模式]神数不神-雷龙
Name
=神数不神
Deck
=
ThunderDragon
Dialog
=
Zefra
.
zh
-
CN
深渊混沌雷龙卡组。(普通模式的人机的卡组会符合其使用的卡池对应的环境的禁限卡表,但在狂野模式中,人机的卡组不符合任何禁限卡表。)
SUPPORT_MASTER_RULE_2020
\ No newline at end of file
SUPPORT_MASTER_RULE_2020
!神数不神-珠泪哀歌
Name
=神数不神
Deck
=
Tearlaments
Dialog
=
Zefra
.
zh
-
CN
旧式地天使珠泪哀歌族卡组。
AI_LV3
SUPPORT_MASTER_RULE_2020
Game/AI/DefaultExecutor.cs
View file @
9d4c1974
...
...
@@ -121,12 +121,17 @@ namespace WindBot.Game.AI
public
const
int
RoyalDecreel
=
51452091
;
public
const
int
NaturiaBeast
=
33198837
;
public
const
int
AntiSpellFragrance
=
58921041
;
public
const
int
VaylantzWorld_ShinraBansho
=
49568943
;
public
const
int
VaylantzWorld_KonigWissen
=
75952542
;
}
protected
DefaultExecutor
(
GameAI
ai
,
Duel
duel
)
:
base
(
ai
,
duel
)
{
AddExecutor
(
ExecutorType
.
Activate
,
_CardId
.
ChickenGame
,
DefaultChickenGame
);
AddExecutor
(
ExecutorType
.
Activate
,
_CardId
.
VaylantzWorld_ShinraBansho
,
DefaultVaylantzWorld_ShinraBansho
);
AddExecutor
(
ExecutorType
.
Activate
,
_CardId
.
VaylantzWorld_KonigWissen
,
DefaultVaylantzWorld_KonigWissen
);
AddExecutor
(
ExecutorType
.
Activate
,
_CardId
.
SantaClaws
);
}
...
...
@@ -1182,5 +1187,55 @@ namespace WindBot.Game.AI
return
Util
.
IsTurn1OrMain2
();
}
/// <summary>
/// Always activate
/// </summary>
protected
bool
DefaultVaylantzWorld_ShinraBansho
()
{
if
(
DefaultSpellWillBeNegated
())
{
return
false
;
}
return
true
;
}
/// <summary>
/// Select enemy's best monster
/// </summary>
protected
bool
DefaultVaylantzWorld_KonigWissen
()
{
if
(
DefaultSpellWillBeNegated
())
{
return
false
;
}
List
<
ClientCard
>
monsters
=
Enemy
.
GetMonsters
();
if
(
monsters
.
Count
==
0
)
{
return
false
;
}
List
<
ClientCard
>
targetList
=
new
List
<
ClientCard
>();
List
<
ClientCard
>
floodgateCards
=
monsters
.
Where
(
card
=>
card
?.
Data
!=
null
&&
card
.
IsFloodgate
()
&&
card
.
IsFaceup
()
&&
!
card
.
IsShouldNotBeTarget
())
.
OrderBy
(
card
=>
card
.
Attack
).
ToList
();
List
<
ClientCard
>
dangerousCards
=
monsters
.
Where
(
card
=>
card
?.
Data
!=
null
&&
card
.
IsMonsterDangerous
()
&&
card
.
IsFaceup
()
&&
!
card
.
IsShouldNotBeTarget
())
.
OrderBy
(
card
=>
card
.
Attack
).
ToList
();
List
<
ClientCard
>
attackOrderedCards
=
monsters
.
Where
(
card
=>
card
?.
Data
!=
null
&&
card
.
HasType
(
CardType
.
Monster
)
&&
card
.
IsFaceup
()
&&
card
.
IsShouldNotBeTarget
())
.
OrderBy
(
card
=>
card
.
Attack
).
ToList
();
targetList
.
AddRange
(
floodgateCards
);
targetList
.
AddRange
(
dangerousCards
);
targetList
.
AddRange
(
attackOrderedCards
);
if
(
targetList
?.
Count
>
0
)
{
AI
.
SelectCard
(
targetList
);
return
true
;
}
return
false
;
}
}
}
Game/AI/Enums/Floodgate.cs
View file @
9d4c1974
...
...
@@ -106,6 +106,99 @@
AdamancipatorRisenDragite
=
9464441
,
TeardroptheRikkaQueen
=
33779875
,
CeruleanSkyFire
=
54828837
,
SacredBeastAwakening
=
53701259
SacredBeastAwakening
=
53701259
,
GrandSpiritualArtIchirin
=
38057522
,
DualAvatarFeetArmoredUnGyo
=
7631534
,
VirtualWorldKyubiShenshen
=
92519087
,
VirtualWorldGateChuche
=
13364097
,
DragunityKnightAreadbhair
=
88234821
,
AiwasstheMagistusSpellSpirit
=
35877582
,
OneirostheDreamMirrorErlking
=
35187185
,
PlunderPatrollshipBrann
=
94253655
,
PlunderPatrollshipMoerk
=
20248754
,
PlunderPatrollshipLys
=
18832779
,
HollowGiants
=
15462014
,
GrozaTyrantofThunder
=
45420955
,
SpringansCaptainSargas
=
29601381
,
S_ForceOrrafist
=
95974848
,
AncientWarriors_RebelliousLuFeng
=
82791472
,
OneirostheDreamMirrorTormentor
=
37678339
,
SacredTreeBeastHyperyton
=
9349094
,
S_ForceJustify
=
35334193
,
UnderworldGoddessoftheClosedWorld
=
98127546
,
VampireVoivode
=
4918855
,
NekrozofAreadbhair
=
39468724
,
NekrozofUnicore
=
89463537
,
BenghalancertheResurgent
=
73345237
,
UrsarcticSeptentrion
=
53087962
,
TheIrisSwordsoul
=
62849088
,
AntihumanIntelligenceME_PSY_YA
=
58844135
,
MagikeyMechmortar_Garesglasser
=
45877457
,
ShootingMajesticStarDragon
=
40939228
,
StellarWindWolfrayet
=
3322931
,
ChronomalyVimana
=
2609443
,
CyberdarknessDragon
=
18967507
,
ClearWingSynchroDragon
=
82044279
,
CrystalClearWingSynchroDragon
=
59765225
,
BaronnedeFleur
=
84815190
,
Lyrilusc_EnsemblueRobin
=
72971064
,
Number4StealthKragen
=
67557908
,
Floowandereeze_Snowl
=
53212882
,
Floowandereeze_Empen
=
80611581
,
MasqueradetheBlazingDragon
=
6855503
,
DestinyHERO_DestroyerPhoenixEnforcer
=
60461804
,
SwordsoulGrandmaster_Chixiao
=
69248256
,
ZoroatheMagistusConflagrantCalamity
=
95911373
,
MasterflareHyperion
=
63101468
,
FallenSanctuary
=
90312154
,
MyutantBeast
=
34695290
,
MyutantArsenal
=
7574904
,
MyutantUltimus
=
6182103
,
Underdog
=
5779502
,
IcejadeKosmochlor
=
3355732
,
IllusionofChaos
=
12266229
,
SwordsoulSinisterSovereign_QixingLongyuan
=
47710198
,
DDDDeviserKingDeusMachinex
=
46593546
,
IcejadeErosion
=
46593546
,
NordicRelicSvalinn
=
64797746
,
OceanDragonLord_Kairyu_Shin
=
23931679
,
MarincessAquaArgonaut
=
20934852
,
MirrorjadetheIcebladeDragon
=
44146295
,
WitchcrafterVice_Madame
=
9603252
,
Therion_King_Regulus
=
10604644
,
StarvingVenomPredapowerFusionDragon
=
39915560
,
DinomorphiaRexterm
=
92798873
,
ExosistersMagnifica
=
59242457
,
IcejadeCurse
=
83670388
,
MamonakatheVaylantzUnited
=
40680521
,
LabrynthLabyrinth
=
33407125
,
RunickFountain
=
92107604
,
SprightRed
=
75922381
,
SprightCarrot
=
2311090
,
RikkaKonkon
=
76869711
,
PowerToolBraverDragon
=
63265554
,
MagikeyDeity_Ashtartu
=
26988374
,
RainbowOverdragon
=
37440988
,
TheBystialAlbaLos
=
69120785
,
KashtiraFenrir
=
32909498
,
MitsutheInsectNinja
=
67282505
,
VeratheVernusylphGoddess
=
55125728
,
TearlamentsRulkallos
=
84330567
,
Black_WingedAssaultDragon
=
73218989
,
BrandedBeast
=
32756828
,
GraphaDragonOverlordofDarkWorld
=
39552584
,
EpurrelyBeauty
=
98049934
,
ExpurrelyNoir
=
83827392
,
BeetrooperScaleBomber
=
39041550
,
EvigishkiNeremanas
=
88926295
,
ArktosXII_ChronochasmVaylantz
=
50687050
,
IcejadeGymirAegirine
=
86682165
,
KashtiraArise_Heart
=
48626373
,
LaevateinGeneraiderBossofShadows
=
74615388
,
SynchroZone
=
60306277
,
BystialDisPater
=
27572350
,
DespianLuluwalilith
=
53971455
,
FirewallDragonSingularity
=
21637210
,
BrandedEtude
=
45675980
}
}
Game/AI/Enums/FusionSpell.cs
View file @
9d4c1974
...
...
@@ -51,9 +51,37 @@
FusionGate
=
33550694
,
DFusion
=
26841274
,
FusionDestiny
=
52947044
,
PyroxeneFusion
=
55824220
,
FragmentFusion
=
72029628
,
NecroFusion
=
81223446
,
PredaplantVerteAnaconda
=
70369116
,
DreamMirrorofChaos
=
98570539
,
PlunderPatrollShipshapeShipsShipping
=
44227727
,
FireFormationIngen
=
29143457
,
ParametalfoesFusion
=
58549532
,
ReadyFusion
=
63854005
,
BrandedinWhite
=
34995106
,
BrandedinRed
=
82738008
,
FaceCardFusion
=
29062925
,
MyutantFusion
=
42577802
,
MyutantCry
=
31855260
,
GreaterPolymerization
=
7614732
,
UltimateFusion
=
71143015
,
BrandedFusion
=
44362883
,
GhostFusion
=
35705817
,
WitchcrafterConfusionConfession
=
35098357
,
BrandedBanishment
=
6763530
,
DinomorphiaDomain
=
26631975
,
DinomorphiaFrenzy
=
78420796
,
SouloftheSupremeKing
=
92428405
,
InstantContact
=
16169772
,
ScatterFusion
=
40597694
,
FavoriteContact
=
75047173
,
AmazonessSecretArts
=
86758746
,
DarkWorldAccession
=
65956182
,
BeetrooperLanding
=
13234975
,
FusionReproduction
=
43331750
}
}
Game/AI/Enums/InvincibleMonster.cs
View file @
9d4c1974
...
...
@@ -25,7 +25,9 @@
DaigustoSphreez
=
29552709
,
Number92HearteartHDragon
=
97403510
,
NumberC96DarkStorm
=
77205367
,
Number54LionHeart
=
54366836
Number54LionHeart
=
54366836
,
Number2NinjaShadowMosquito
=
32453837
,
OhimetheManifestedMikanko
=
81260679
}
/// <summary>
/// Cards that are invincible to battle.
...
...
@@ -93,6 +95,12 @@
GoukiTheGiantOgre
=
47946130
,
BorrelswordDragon
=
85289965
,
NumberF0UtopicFutureDragon
=
26973555
,
BorrelendDragon
=
98630720
BorrelendDragon
=
98630720
,
MimickingMan_EaterBug
=
72427512
,
ShiningPiecephilia
=
49776811
,
BrigrandtheGloryDragon
=
34848821
,
AmazonessQueen
=
15951532
,
Number2NinjaShadowMosquito
=
32453837
,
OhimetheManifestedMikanko
=
81260679
}
}
Game/AI/Enums/PreventActivationEffectInBattle.cs
View file @
9d4c1974
...
...
@@ -11,5 +11,10 @@
SamuraiDestroyer
=
40509732
,
ArmadesKeeperOfBoundaries
=
88033975
,
NumberS39UtopiaTheLightning
=
56832966
,
DualAvatarEmpoweredKonGyo
=
33026283
,
GGolemRockHammer
=
98875863
,
WishDragon
=
64583600
,
ChaosWitch
=
30327674
,
FissioningMotherSpider
=
34034150
}
}
Game/AI/Enums/ShouldBeDisabledBeforeItUseEffectMonster.cs
View file @
9d4c1974
...
...
@@ -56,6 +56,9 @@
ShiranuiSolitaire
=
94801854
,
Mixeroid
=
71340250
,
LonefireBlossom
=
48686504
,
BrotherhoodoftheFireFist_Leopard
=
39699564
BrotherhoodoftheFireFist_Leopard
=
39699564
,
SpringansPedor
=
56818977
,
GizmekNaganakitheSunriseSignaler
=
96399967
,
MyutantMutant
=
26561172
}
}
Game/AI/Enums/ShouldNotBeMonsterTarget.cs
View file @
9d4c1974
...
...
@@ -14,6 +14,8 @@
PaleozoicAnomalocaris
=
61307542
,
PaleozoicOpabinia
=
37649320
,
BorreloadDragon
=
31833038
,
BorrelendDragon
=
98630720
BorrelendDragon
=
98630720
,
DrytronMeteonisDraconids
=
69815951
,
MyutantBeast
=
34695290
}
}
Game/AI/Enums/ShouldNotBeSpellTarget.cs
View file @
9d4c1974
...
...
@@ -9,6 +9,7 @@
ApoqliphortTowers
=
27279764
,
ApoqliphortSkybase
=
40061558
,
TheLegendaryFishermanIII
=
44968687
,
ChaosAncientGearGiant
=
51788412
ChaosAncientGearGiant
=
51788412
,
DrytronMeteonisQuadrantids
=
95209656
}
}
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