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
77dd48f2
Commit
77dd48f2
authored
Apr 08, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update ChainBurn deck by handsomekiwi
parent
8438970f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
14 deletions
+54
-14
Game/AI/Decks/ChainBurnExecutor.cs
Game/AI/Decks/ChainBurnExecutor.cs
+54
-14
No files found.
Game/AI/Decks/ChainBurnExecutor.cs
View file @
77dd48f2
...
...
@@ -217,12 +217,16 @@ namespace WindBot.Game.AI.Decks
);
}
bool
pot_used
=
false
;
bool
one_turn_kill
=
false
;
int
expected_blood
=
0
;
bool
prevent_used
=
false
;
int
preventcount
=
0
;
bool
battleprevent
=
false
;
bool
OjamaTrioused
=
false
;
bool
HasAccuulatedFortune
=
false
;
int
blast_count
=
0
;
int
barrel_count
=
0
;
int
just_count
=
0
;
public
override
bool
OnSelectHand
()
{
return
true
;
...
...
@@ -230,10 +234,13 @@ namespace WindBot.Game.AI.Decks
public
override
void
OnNewTurn
()
{
pot_used
=
false
;
prevent_used
=
false
;
battleprevent
=
false
;
OjamaTrioused
=
false
;
}
public
override
void
OnNewPhase
()
{
...
...
@@ -264,6 +271,33 @@ namespace WindBot.Game.AI.Decks
}
}
expected_blood
=
0
;
one_turn_kill
=
false
;
blast_count
=
0
;
barrel_count
=
0
;
just_count
=
0
;
IList
<
ClientCard
>
check
=
Bot
.
SpellZone
;
foreach
(
ClientCard
card
in
check
)
{
if
(
card
.
Id
==
CardId
.
SecretBlast
)
blast_count
++;
break
;
}
foreach
(
ClientCard
card
in
check
)
{
if
(
card
.
Id
==
CardId
.
SectetBarrel
)
barrel_count
++;
break
;
}
foreach
(
ClientCard
card
in
check
)
{
if
(
card
.
Id
==
CardId
.
JustDesserts
)
just_count
++;
break
;
}
expected_blood
=
(
Enemy
.
GetMonsterCount
()
*
500
*
just_count
+
Enemy
.
GetFieldHandCount
()
*
200
*
barrel_count
+
Enemy
.
GetFieldCount
()
*
300
*
blast_count
);
if
(
Enemy
.
LifePoints
<=
expected_blood
)
one_turn_kill
=
true
;
}
...
...
@@ -319,7 +353,8 @@ namespace WindBot.Game.AI.Decks
{
list
.
Add
(
monster
);
}
if
(
GetTotalATK
(
list
)
<=
3000
)
return
false
;
//if (GetTotalATK(list) / 2 >= Bot.LifePoints) return false;
if
(
GetTotalATK
(
list
)
<
3000
)
return
false
;
return
Enemy
.
HasAttackingMonster
()
&&
DefaultUniqueTrap
();
}
private
bool
ThreateningRoareff
()
...
...
@@ -374,12 +409,22 @@ namespace WindBot.Game.AI.Decks
}
private
bool
RecklessGreedeff
()
{
int
count
=
0
;
IList
<
ClientCard
>
check
=
Bot
.
SpellZone
;
foreach
(
ClientCard
card
in
check
)
{
if
(
card
.
Id
==
CardId
.
RecklessGreed
)
count
++;
break
;
}
if
(
count
>
1
)
return
true
;
if
(
Bot
.
LifePoints
<=
2000
)
return
true
;
if
(
Bot
.
GetHandCount
()
<
1
&&
Duel
.
Player
==
0
&&
Duel
.
Phase
!=
DuelPhase
.
Standby
)
return
true
;
return
false
;
}
private
bool
SectetBarreleff
()
{
if
(
one_turn_kill
)
return
true
;
if
(
must_chain
())
return
true
;
int
count
=
Enemy
.
GetFieldHandCount
();
if
(
Enemy
.
LifePoints
<
count
*
200
)
return
true
;
...
...
@@ -388,6 +433,7 @@ namespace WindBot.Game.AI.Decks
}
private
bool
SecretBlasteff
()
{
if
(
one_turn_kill
)
return
true
;
if
(
must_chain
())
return
true
;
int
count
=
Enemy
.
GetFieldCount
();
if
(
Enemy
.
LifePoints
<
count
*
300
)
return
true
;
...
...
@@ -401,6 +447,7 @@ namespace WindBot.Game.AI.Decks
}
private
bool
JustDessertseff
()
{
if
(
one_turn_kill
)
return
true
;
if
(
must_chain
())
return
true
;
int
count
=
Enemy
.
GetMonsterCount
();
if
(
Enemy
.
LifePoints
<=
count
*
500
)
return
true
;
...
...
@@ -417,15 +464,7 @@ namespace WindBot.Game.AI.Decks
if
(
must_chain
())
return
true
;
int
chain
=
Duel
.
CurrentChain
.
Count
;
if
(
Enemy
.
LifePoints
<=
(
chain
+
1
)
*
400
)
return
true
;
if
(
Duel
.
CurrentChain
.
Count
==
4
)
return
true
;
return
false
;
}
private
bool
Ceasefireeff
()
{
if
(
must_chain
())
return
true
;
int
count
=
Bot
.
GetMonsterCount
()
+
Enemy
.
GetMonsterCount
();
if
(
Enemy
.
LifePoints
<=
count
*
500
)
return
true
;
if
(
count
>=
3
)
return
true
;
if
(
Duel
.
CurrentChain
.
Count
>=
3
)
return
true
;
return
false
;
}
...
...
@@ -460,19 +499,20 @@ namespace WindBot.Game.AI.Decks
{
if
(
card
.
Id
==
CardId
.
DiceJar
&&
card
.
IsFacedown
())
return
true
;
break
;
}
return
false
;
}
private
bool
Ceasefire
()
private
bool
Ceasefire
eff
()
{
if
(
Bot
.
GetMonsterCount
()
>=
3
)
return
true
;
if
(
Enemy
.
GetMonsterCount
()
>=
3
)
return
true
;
if
(
DiceJarfacedown
())
return
false
;
if
((
Bot
.
GetMonsterCount
()
+
Enemy
.
GetMonsterCount
())
>=
4
)
return
true
;
return
false
;
}
private
bool
Linkuriboheff
()
{
return
true
;
{
return
DefaultDontChainMyself
()
;
}
/*private bool SwordsOfRevealingLight()
{
...
...
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