Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
Windbot-408
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
神之吹息
Windbot-408
Commits
5d176811
Commit
5d176811
authored
Apr 11, 2018
by
handsomekiwi
Committed by
mercury233
Apr 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update ChainBurn deck (#41)
parent
4b2ffc27
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
16 deletions
+41
-16
Game/AI/Decks/ChainBurnExecutor.cs
Game/AI/Decks/ChainBurnExecutor.cs
+34
-16
Game/AI/Decks/LightswornShaddoldinosourExecutor.cs
Game/AI/Decks/LightswornShaddoldinosourExecutor.cs
+6
-0
Game/GameAI.cs
Game/GameAI.cs
+1
-0
No files found.
Game/AI/Decks/ChainBurnExecutor.cs
View file @
5d176811
...
...
@@ -232,6 +232,7 @@ namespace WindBot.Game.AI.Decks
bool
OjamaTrioused
=
false
;
bool
OjamaTrioused_draw
=
false
;
bool
drawfirst
=
false
;
bool
Linkuribohused
=
true
;
int
Waboku_count
=
0
;
int
Roar_count
=
0
;
int
strike_count
=
0
;
...
...
@@ -251,8 +252,8 @@ namespace WindBot.Game.AI.Decks
no_sp
=
false
;
prevent_used
=
false
;
prevent_used
=
false
;
Linkuribohused
=
true
;
}
public
override
void
OnNewPhase
()
...
...
@@ -260,8 +261,9 @@ namespace WindBot.Game.AI.Decks
preventcount
=
0
;
battleprevent
=
false
;
OjamaTrioused
=
false
;
IList
<
ClientCard
>
trap
=
Bot
.
SpellZone
;
IList
<
ClientCard
>
monster
=
Bot
.
MonsterZone
;
IList
<
ClientCard
>
trap
=
Bot
.
GetSpells
();
IList
<
ClientCard
>
monster
=
Bot
.
GetMonsters
();
foreach
(
ClientCard
card
in
trap
)
{
...
...
@@ -297,7 +299,7 @@ namespace WindBot.Game.AI.Decks
Roar_count
=
0
;
Ojama_count
=
0
;
IList
<
ClientCard
>
check
=
Bot
.
SpellZone
;
IList
<
ClientCard
>
check
=
Bot
.
GetSpells
()
;
foreach
(
ClientCard
card
in
check
)
{
if
(
card
.
Id
==
CardId
.
AccuulatedFortune
)
...
...
@@ -352,7 +354,7 @@ namespace WindBot.Game.AI.Decks
}
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
;
//if (Enemy.LifePoints <= expected_blood && Duel.Player == 1
) one_turn_kill = true;
if
(
greed_count
>=
2
)
greed_count
=
1
;
if
(
blast_count
>=
2
)
blast_count
=
1
;
if
(
just_count
>=
2
)
just_count
=
1
;
...
...
@@ -365,10 +367,10 @@ namespace WindBot.Game.AI.Decks
currentchain
=
Duel
.
CurrentChain
.
Count
+
blast_count
+
just_count
+
barrel_count
+
Waboku_count
+
Waboku_count
+
Roar_count
+
greed_count
+
strike_count
+
Ojama_count
;
else
currentchain
=
Duel
.
CurrentChain
.
Count
+
blast_count
+
just_count
+
barrel_count
+
Waboku_count
+
Waboku_count
+
greed_count
+
Roar_count
+
strike_count
;
if
(
currentchain
>=
3
)
drawfirst
=
true
;
//if (currentchain >= 3 && Duel.Player == 1
) drawfirst = true;
currentchain
=
Duel
.
CurrentChain
.
Count
+
blast_count
+
just_count
+
barrel_count
;
expected_blood
=
(
Enemy
.
GetMonsterCount
()
*
500
*
just_count
+
Enemy
.
GetFieldHandCount
()
*
200
*
barrel_count
+
Enemy
.
GetFieldCount
()
*
300
*
blast_count
+(
currentchain
+
1
)*
400
);
if
(
Enemy
.
LifePoints
<=
expected_blood
)
one_turn_kill_1
=
true
;
//if (Enemy.LifePoints <= expected_blood && Duel.Player==1
) one_turn_kill_1 = true;
}
...
...
@@ -439,7 +441,7 @@ namespace WindBot.Game.AI.Decks
private
bool
ThreateningRoareff
()
{
if
(
drawfirst
)
return
true
;
if
(
must_chain
())
return
true
;
if
(
must_chain
())
return
DefaultUniqueTrap
()
;
if
(
prevent_used
||
Duel
.
Phase
!=
DuelPhase
.
BattleStart
)
return
false
;
prevent_used
=
true
;
return
DefaultUniqueTrap
();
...
...
@@ -452,11 +454,19 @@ namespace WindBot.Game.AI.Decks
}
private
bool
Wabokueff
()
{
if
(
drawfirst
)
return
true
;
if
(
must_chain
())
return
true
;
if
(
drawfirst
)
return
true
;
if
(
drawfirst
)
{
Linkuribohused
=
false
;
return
true
;
}
if
(
must_chain
())
{
Linkuribohused
=
false
;
return
DefaultUniqueTrap
();
}
if
(
prevent_used
||
Duel
.
Player
==
0
||
Duel
.
Phase
!=
DuelPhase
.
BattleStart
)
return
false
;
prevent_used
=
true
;
Linkuribohused
=
false
;
return
DefaultUniqueTrap
();
}
private
bool
BattleFadereff
()
...
...
@@ -610,10 +620,18 @@ namespace WindBot.Game.AI.Decks
return
false
;
}
private
bool
Linkuriboheff
()
{
ClientCard
lastchaincard
=
AI
.
Utils
.
GetLastChainCard
();
if
(
lastchaincard
==
null
)
return
true
;
if
(
lastchaincard
.
Id
==
CardId
.
Linkuriboh
)
return
false
;
{
IList
<
ClientCard
>
newlist
=
new
List
<
ClientCard
>();
foreach
(
ClientCard
newmonster
in
Enemy
.
GetMonsters
())
{
newlist
.
Add
(
newmonster
);
}
if
(!
Linkuribohused
)
return
false
;
if
(
Enemy
.
BattlingMonster
.
Attack
>
1800
&&
Bot
.
HasInSpellZone
(
CardId
.
MagicCylinder
))
return
false
;
if
(
GetTotalATK
(
newlist
)
>=
3000
&&
Bot
.
HasInSpellZone
(
CardId
.
BlazingMirrorForce
))
return
false
;
if
(
AI
.
Utils
.
GetLastChainCard
()
==
null
)
return
true
;
if
(
AI
.
Utils
.
GetLastChainCard
().
Id
==
CardId
.
Linkuriboh
)
return
false
;
return
true
;
}
...
...
Game/AI/Decks/LightswornShaddoldinosourExecutor.cs
View file @
5d176811
...
...
@@ -600,6 +600,12 @@ namespace WindBot.Game.AI.Decks
private
bool
ShaddollFusioneff
()
{
if
(
Bot
.
HasInMonstersZone
(
CardId
.
ElShaddollConstruct
)
||
Bot
.
HasInMonstersZone
(
CardId
.
ElShaddollGrysra
)
||
Bot
.
HasInMonstersZone
(
CardId
.
ElShaddollShekhinaga
)
||
Bot
.
HasInMonstersZone
(
CardId
.
ElShaddollWinda
))
return
false
;
bool
deck_check
=
false
;
List
<
ClientCard
>
monsters
=
Enemy
.
GetMonsters
();
foreach
(
ClientCard
monster
in
monsters
)
...
...
Game/GameAI.cs
View file @
5d176811
...
...
@@ -94,6 +94,7 @@ namespace WindBot.Game
{
_dialogs
.
SendNewTurn
();
}
Executor
.
OnNewPhase
();
}
/// <summary>
...
...
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