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
4c5989bc
Commit
4c5989bc
authored
Sep 23, 2023
by
wind2009
Committed by
GitHub
Sep 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enum update (#171)
parent
e28a0fb9
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
43 additions
and
16 deletions
+43
-16
Game/AI/Decks/SwordsoulExecutor.cs
Game/AI/Decks/SwordsoulExecutor.cs
+6
-9
Game/AI/Enums/DangerousMonster.cs
Game/AI/Enums/DangerousMonster.cs
+2
-0
Game/AI/Enums/Floodgate.cs
Game/AI/Enums/Floodgate.cs
+12
-1
Game/AI/Enums/FusionSpell.cs
Game/AI/Enums/FusionSpell.cs
+4
-1
Game/AI/Enums/InvincibleMonster.cs
Game/AI/Enums/InvincibleMonster.cs
+10
-2
Game/AI/Enums/NotBeSynchroMaterialMonster.cs
Game/AI/Enums/NotBeSynchroMaterialMonster.cs
+2
-1
Game/AI/Enums/NotBeXyzMaterialMonster.cs
Game/AI/Enums/NotBeXyzMaterialMonster.cs
+2
-1
Game/AI/Enums/ShouldBeDisabledBeforeItUseEffectMonster.cs
Game/AI/Enums/ShouldBeDisabledBeforeItUseEffectMonster.cs
+5
-1
No files found.
Game/AI/Decks/SwordsoulExecutor.cs
View file @
4c5989bc
...
@@ -936,6 +936,10 @@ namespace WindBot.Game.AI.Decks
...
@@ -936,6 +936,10 @@ namespace WindBot.Game.AI.Decks
{
{
return
true
;
return
true
;
}
}
if
(
Bot
.
HasInExtra
(
CardId
.
PsychicEndPunisher
)
&&
Bot
.
HasInMonstersZone
(
CardId
.
SwordsoulToken
)
&&
!
onlyWyrmSpSummon
)
{
return
true
;
}
return
false
;
return
false
;
}
}
...
@@ -1387,7 +1391,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -1387,7 +1391,7 @@ namespace WindBot.Game.AI.Decks
List
<
ClientCard
>
checkNonTuner
=
Bot
.
GetMonsters
().
Where
(
card
=>
card
.
IsFaceup
()
&&
!
card
.
IsTuner
()).
ToList
();
List
<
ClientCard
>
checkNonTuner
=
Bot
.
GetMonsters
().
Where
(
card
=>
card
.
IsFaceup
()
&&
!
card
.
IsTuner
()).
ToList
();
checkNonTuner
.
Sort
(
CardContainer
.
CompareCardAttack
);
checkNonTuner
.
Sort
(
CardContainer
.
CompareCardAttack
);
// level7 check
// level7 check
if
(
Bot
.
HasInExtra
(
CardId
.
YaziEvilOfTheYangZing
))
if
(
Bot
.
HasInExtra
(
CardId
.
YaziEvilOfTheYangZing
)
&&
GetProblematicEnemyCardList
(
true
,
true
).
Count
()
>
0
)
{
{
foreach
(
ClientCard
checkCard
in
checkNonTuner
)
foreach
(
ClientCard
checkCard
in
checkNonTuner
)
{
{
...
@@ -2673,7 +2677,6 @@ namespace WindBot.Game.AI.Decks
...
@@ -2673,7 +2677,6 @@ namespace WindBot.Game.AI.Decks
if
(
CheckRemainInDeck
(
CardId
.
SwordsoulBlackout
)
>
0
)
if
(
CheckRemainInDeck
(
CardId
.
SwordsoulBlackout
)
>
0
)
{
{
AI
.
SelectCard
(
CardId
.
SwordsoulBlackout
);
AI
.
SelectCard
(
CardId
.
SwordsoulBlackout
);
AI
.
SelectYesNo
(
true
);
activatedCardIdList
.
Add
(
Card
.
Id
);
activatedCardIdList
.
Add
(
Card
.
Id
);
return
true
;
return
true
;
}
}
...
@@ -2687,7 +2690,6 @@ namespace WindBot.Game.AI.Decks
...
@@ -2687,7 +2690,6 @@ namespace WindBot.Game.AI.Decks
if
(
CheckRemainInDeck
(
checkId
)
>
0
&&
!
Bot
.
HasInHand
(
checkId
))
if
(
CheckRemainInDeck
(
checkId
)
>
0
&&
!
Bot
.
HasInHand
(
checkId
))
{
{
AI
.
SelectCard
(
checkId
);
AI
.
SelectCard
(
checkId
);
AI
.
SelectYesNo
(
true
);
activatedCardIdList
.
Add
(
Card
.
Id
);
activatedCardIdList
.
Add
(
Card
.
Id
);
return
true
;
return
true
;
}
}
...
@@ -2700,7 +2702,6 @@ namespace WindBot.Game.AI.Decks
...
@@ -2700,7 +2702,6 @@ namespace WindBot.Game.AI.Decks
&&
SwordsoulOfMoYeEffectCheck
()
&&
CheckRemainInDeck
(
CardId
.
SwordsoulStrategistLongyuan
)
>
0
)
&&
SwordsoulOfMoYeEffectCheck
()
&&
CheckRemainInDeck
(
CardId
.
SwordsoulStrategistLongyuan
)
>
0
)
{
{
AI
.
SelectCard
(
CardId
.
SwordsoulStrategistLongyuan
);
AI
.
SelectCard
(
CardId
.
SwordsoulStrategistLongyuan
);
AI
.
SelectYesNo
(
true
);
activatedCardIdList
.
Add
(
Card
.
Id
);
activatedCardIdList
.
Add
(
Card
.
Id
);
return
true
;
return
true
;
}
}
...
@@ -2714,7 +2715,6 @@ namespace WindBot.Game.AI.Decks
...
@@ -2714,7 +2715,6 @@ namespace WindBot.Game.AI.Decks
if
(
CheckRemainInDeck
(
CardId
.
SwordsoulSacredSummit
)
>
0
)
if
(
CheckRemainInDeck
(
CardId
.
SwordsoulSacredSummit
)
>
0
)
{
{
AI
.
SelectCard
(
CardId
.
SwordsoulSacredSummit
);
AI
.
SelectCard
(
CardId
.
SwordsoulSacredSummit
);
AI
.
SelectYesNo
(
true
);
activatedCardIdList
.
Add
(
Card
.
Id
);
activatedCardIdList
.
Add
(
Card
.
Id
);
return
true
;
return
true
;
}
}
...
@@ -2724,7 +2724,6 @@ namespace WindBot.Game.AI.Decks
...
@@ -2724,7 +2724,6 @@ namespace WindBot.Game.AI.Decks
if
(
CheckRemainInDeck
(
CardId
.
SwordsoulOfTaia
)
>
0
)
if
(
CheckRemainInDeck
(
CardId
.
SwordsoulOfTaia
)
>
0
)
{
{
AI
.
SelectCard
(
CardId
.
SwordsoulOfTaia
);
AI
.
SelectCard
(
CardId
.
SwordsoulOfTaia
);
AI
.
SelectYesNo
(
true
);
activatedCardIdList
.
Add
(
Card
.
Id
);
activatedCardIdList
.
Add
(
Card
.
Id
);
return
true
;
return
true
;
}
}
...
@@ -2738,7 +2737,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -2738,7 +2737,7 @@ namespace WindBot.Game.AI.Decks
{
{
Logger
.
DebugWriteLine
(
"Chixiao banish blackout"
);
Logger
.
DebugWriteLine
(
"Chixiao banish blackout"
);
AI
.
SelectCard
(
CardId
.
SwordsoulBlackout
);
AI
.
SelectCard
(
CardId
.
SwordsoulBlackout
);
AI
.
Select
YesNo
(
false
);
AI
.
Select
Option
(
1
);
activatedCardIdList
.
Add
(
Card
.
Id
);
activatedCardIdList
.
Add
(
Card
.
Id
);
return
true
;
return
true
;
}
}
...
@@ -2754,7 +2753,6 @@ namespace WindBot.Game.AI.Decks
...
@@ -2754,7 +2753,6 @@ namespace WindBot.Game.AI.Decks
if
(
CheckRemainInDeck
(
checkId
)
>
0
&&
!
Bot
.
HasInHand
(
checkId
))
if
(
CheckRemainInDeck
(
checkId
)
>
0
&&
!
Bot
.
HasInHand
(
checkId
))
{
{
AI
.
SelectCard
(
checkId
);
AI
.
SelectCard
(
checkId
);
AI
.
SelectYesNo
(
true
);
activatedCardIdList
.
Add
(
Card
.
Id
);
activatedCardIdList
.
Add
(
Card
.
Id
);
return
true
;
return
true
;
}
}
...
@@ -2770,7 +2768,6 @@ namespace WindBot.Game.AI.Decks
...
@@ -2770,7 +2768,6 @@ namespace WindBot.Game.AI.Decks
if
(
CheckRemainInDeck
(
checkId
)
>
0
&&
!
Bot
.
HasInHand
(
checkId
))
if
(
CheckRemainInDeck
(
checkId
)
>
0
&&
!
Bot
.
HasInHand
(
checkId
))
{
{
AI
.
SelectCard
(
checkId
);
AI
.
SelectCard
(
checkId
);
AI
.
SelectYesNo
(
true
);
activatedCardIdList
.
Add
(
Card
.
Id
);
activatedCardIdList
.
Add
(
Card
.
Id
);
return
true
;
return
true
;
}
}
...
...
Game/AI/Enums/DangerousMonster.cs
View file @
4c5989bc
...
@@ -24,5 +24,7 @@
...
@@ -24,5 +24,7 @@
ZushintheSleepingGiant
=
67547370
,
ZushintheSleepingGiant
=
67547370
,
Heart_eartHDragon
=
97403510
,
Heart_eartHDragon
=
97403510
,
DaigustoSphreeze
=
29552709
,
DaigustoSphreeze
=
29552709
,
OhimetheManifestedMikanko
=
81260679
,
ArahimetheManifestedMikanko
=
75771170
}
}
}
}
Game/AI/Enums/Floodgate.cs
View file @
4c5989bc
...
@@ -199,6 +199,17 @@
...
@@ -199,6 +199,17 @@
BystialDisPater
=
27572350
,
BystialDisPater
=
27572350
,
DespianLuluwalilith
=
53971455
,
DespianLuluwalilith
=
53971455
,
FirewallDragonSingularity
=
21637210
,
FirewallDragonSingularity
=
21637210
,
BrandedEtude
=
45675980
BrandedEtude
=
45675980
,
EvolzarLars
=
35103106
,
AltergeistAdminia
=
61470213
,
EmperorCharlesTheGreat
=
97864322
,
YouReFinished
=
88346805
,
VolcanicEmperor
=
46412900
,
VolcanicInferno
=
84138874
,
RedZone
=
50056656
,
TGGlaiveBlaster
=
95973569
,
StellarNemesisTPHON_DoomsdayStar
=
93039339
,
SPLittleKnight
=
29301450
,
AngelRing
=
40678060
}
}
}
}
Game/AI/Enums/FusionSpell.cs
View file @
4c5989bc
...
@@ -82,6 +82,9 @@
...
@@ -82,6 +82,9 @@
AmazonessSecretArts
=
86758746
,
AmazonessSecretArts
=
86758746
,
DarkWorldAccession
=
65956182
,
DarkWorldAccession
=
65956182
,
BeetrooperLanding
=
13234975
,
BeetrooperLanding
=
13234975
,
FusionReproduction
=
43331750
FusionReproduction
=
43331750
,
ChimeraFusion
=
63136489
,
HarmonicSynchroFusion
=
7473735
,
SouloftheSupremeCelestialKing
=
76840111
}
}
}
}
Game/AI/Enums/InvincibleMonster.cs
View file @
4c5989bc
...
@@ -27,7 +27,9 @@
...
@@ -27,7 +27,9 @@
NumberC96DarkStorm
=
77205367
,
NumberC96DarkStorm
=
77205367
,
Number54LionHeart
=
54366836
,
Number54LionHeart
=
54366836
,
Number2NinjaShadowMosquito
=
32453837
,
Number2NinjaShadowMosquito
=
32453837
,
OhimetheManifestedMikanko
=
81260679
OhimetheManifestedMikanko
=
81260679
,
NightmareMagician
=
40221691
,
ArahimetheManifestedMikanko
=
75771170
}
}
/// <summary>
/// <summary>
/// Cards that are invincible to battle.
/// Cards that are invincible to battle.
...
@@ -101,6 +103,12 @@
...
@@ -101,6 +103,12 @@
BrigrandtheGloryDragon
=
34848821
,
BrigrandtheGloryDragon
=
34848821
,
AmazonessQueen
=
15951532
,
AmazonessQueen
=
15951532
,
Number2NinjaShadowMosquito
=
32453837
,
Number2NinjaShadowMosquito
=
32453837
,
OhimetheManifestedMikanko
=
81260679
OhimetheManifestedMikanko
=
81260679
,
CornfieldCoatl
=
92565383
,
MirrorSwordknight
=
28954097
,
NightmareMagician
=
40221691
,
ArahimetheManifestedMikanko
=
75771170
,
UFOLight
=
9275482
,
TaotheGreatChanter
=
34541543
}
}
}
}
Game/AI/Enums/NotBeSynchroMaterialMonster.cs
View file @
4c5989bc
...
@@ -26,7 +26,8 @@ namespace WindBot.Game.AI.Enums
...
@@ -26,7 +26,8 @@ namespace WindBot.Game.AI.Enums
GreenDuston
=
52182715
,
GreenDuston
=
52182715
,
RedDuston
=
61019812
,
RedDuston
=
61019812
,
EaterofMillions
=
63845230
,
EaterofMillions
=
63845230
,
PutridPuddingBodyBuddies
=
85101097
PutridPuddingBodyBuddies
=
85101097
,
Click_Echo
=
2992467
}
}
}
}
\ No newline at end of file
Game/AI/Enums/NotBeXyzMaterialMonster.cs
View file @
4c5989bc
...
@@ -8,6 +8,7 @@ namespace WindBot.Game.AI.Enums
...
@@ -8,6 +8,7 @@ namespace WindBot.Game.AI.Enums
GreenDuston
=
52182715
,
GreenDuston
=
52182715
,
RedDuston
=
61019812
,
RedDuston
=
61019812
,
EaterofMillions
=
63845230
,
EaterofMillions
=
63845230
,
PutridPuddingBodyBuddies
=
85101097
PutridPuddingBodyBuddies
=
85101097
,
Click_Echo
=
2992467
}
}
}
}
\ No newline at end of file
Game/AI/Enums/ShouldBeDisabledBeforeItUseEffectMonster.cs
View file @
4c5989bc
...
@@ -59,6 +59,10 @@
...
@@ -59,6 +59,10 @@
BrotherhoodoftheFireFist_Leopard
=
39699564
,
BrotherhoodoftheFireFist_Leopard
=
39699564
,
SpringansPedor
=
56818977
,
SpringansPedor
=
56818977
,
GizmekNaganakitheSunriseSignaler
=
96399967
,
GizmekNaganakitheSunriseSignaler
=
96399967
,
MyutantMutant
=
26561172
MyutantMutant
=
26561172
,
ThreeEyedGhost
=
31464658
,
UrsarcticPolarStar
=
62714453
,
BattlinBoxerPromoter
=
83315222
,
TGRocketSalamander
=
77392987
}
}
}
}
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