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
alstroemeria-silentlove
windbot
Commits
d0c0e4c2
Commit
d0c0e4c2
authored
May 15, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/IceYGO/windbot
parents
4b13cd1c
5facd8c7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
3 deletions
+30
-3
Dialogs/smart.zh-CN.json
Dialogs/smart.zh-CN.json
+2
-1
Game/AI/Decks/FrogExecutor.cs
Game/AI/Decks/FrogExecutor.cs
+14
-1
Game/AI/Decks/PureWindsExecutor.cs
Game/AI/Decks/PureWindsExecutor.cs
+14
-1
No files found.
Dialogs/smart.zh-CN.json
View file @
d0c0e4c2
...
...
@@ -21,7 +21,8 @@
"消失吧,杂鱼"
],
"ondirectattack"
:
[
"爸爸,饶命"
"爸爸,饶命"
,
"恐怖如斯"
],
"facedownmonstername"
:
"怪兽"
,
"activate"
:
[
...
...
Game/AI/Decks/FrogExecutor.cs
View file @
d0c0e4c2
...
...
@@ -49,7 +49,7 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
DupeFrog
,
DupeFrog
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
FlipFlopFrog
,
FlipFlopFrog
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
Ronintoadin
,
Ronintoadin
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
TreebornFrog
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
TreebornFrog
,
TreebornFrog
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
Unifrog
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
CryomancerOfTheIceBarrier
,
SummonFrog
);
...
...
@@ -83,6 +83,19 @@ namespace WindBot.Game.AI.Decks
private
int
m_swapFrogSummoned
;
private
int
m_flipFlopFrogSummoned
;
private
int
m_treebornFrogCount
=
0
;
public
override
void
OnNewTurn
()
{
m_treebornFrogCount
=
0
;
base
.
OnNewTurn
();
}
private
bool
TreebornFrog
()
{
m_treebornFrogCount
++;
return
m_treebornFrogCount
<=
5
;
}
private
bool
SwapFrogSummon
()
{
...
...
Game/AI/Decks/PureWindsExecutor.cs
View file @
d0c0e4c2
...
...
@@ -215,6 +215,7 @@ namespace WindBot.Game.AI.Decks
private
bool
Summon_used
;
private
bool
Pilica_eff
;
private
bool
plan_A
;
private
int
SnowBell_count
=
0
;
//TODO: reset the flags when they should reset ( public override void OnNewTurn() )
public
PureWindsExecutor
(
GameAI
ai
,
Duel
duel
)
:
base
(
ai
,
duel
)
...
...
@@ -294,6 +295,16 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
Repos
,
MonsterRepos
);
}
public
override
void
OnNewTurn
()
{
WindwitchGlassBelleff_used
=
false
;
Summon_used
=
false
;
Pilica_eff
=
false
;
plan_A
=
false
;
SnowBell_count
=
0
;
base
.
OnNewTurn
();
}
private
bool
windaset
()
{
if
(
Enemy
.
HasInMonstersZoneOrInGraveyard
(
CardId
.
ChaosMax
))
...
...
@@ -759,6 +770,7 @@ namespace WindBot.Game.AI.Decks
private
bool
WindwitchSnowBellsp
()
{
if
(
SnowBell_count
>=
5
)
return
false
;
if
((
Bot
.
HasInMonstersZone
(
CardId
.
CrystalWingSynchroDragon
)
||
Bot
.
HasInMonstersZone
(
CardId
.
DaigustoSphreez
)
||
Bot
.
HasInMonstersZone
(
CardId
.
MistWurm
))
&&
...
...
@@ -773,7 +785,8 @@ namespace WindBot.Game.AI.Decks
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchSnowBell
)
&&
(
Util
.
GetBotAvailZonesFromExtraDeck
()
==
0
))
return
false
;
AI
.
SelectPosition
(
CardPosition
.
FaceUpDefence
);
AI
.
SelectPosition
(
CardPosition
.
FaceUpDefence
);
SnowBell_count
++;
return
true
;
}
private
bool
DaigustoSphreezsp
()
...
...
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