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
Tang Xinwei
windbot
Commits
d2bdb15f
Commit
d2bdb15f
authored
Apr 26, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rainbow no longer summon rescue rabbit in vain
parent
1007700b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
Game/AI/Decks/RainbowExecutor.cs
Game/AI/Decks/RainbowExecutor.cs
+14
-6
No files found.
Game/AI/Decks/RainbowExecutor.cs
View file @
d2bdb15f
using
YGOSharp.OCGWrapper.Enums
;
using
System
;
using
YGOSharp.OCGWrapper.Enums
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
WindBot
;
using
WindBot
;
using
WindBot.Game
;
using
WindBot.Game
;
using
WindBot.Game.AI
;
using
WindBot.Game.AI
;
namespace
WindBot.Game.AI.Decks
namespace
WindBot.Game.AI.Decks
{
{
[
Deck
(
"Rainbow"
,
"AI_Rainbow"
)]
[
Deck
(
"Rainbow"
,
"AI_Rainbow"
)]
...
@@ -61,7 +62,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -61,7 +62,7 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
UnexpectedDai
,
UnexpectedDaiEffect
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
UnexpectedDai
,
UnexpectedDaiEffect
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
RescueRabbit
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
RescueRabbit
,
RescueRabbitSummon
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
RescueRabbit
,
RescueRabbitEffect
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
RescueRabbit
,
RescueRabbitEffect
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
PotOfDesires
,
DefaultPotOfDesires
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
PotOfDesires
,
DefaultPotOfDesires
);
...
@@ -136,8 +137,8 @@ namespace WindBot.Game.AI.Decks
...
@@ -136,8 +137,8 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
TraptrixTrapHoleNightmare
,
DefaultUniqueTrap
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
TraptrixTrapHoleNightmare
,
DefaultUniqueTrap
);
AddExecutor
(
ExecutorType
.
Repos
,
DefaultMonsterRepos
);
AddExecutor
(
ExecutorType
.
Repos
,
DefaultMonsterRepos
);
}
}
public
override
void
OnNewTurn
()
public
override
void
OnNewTurn
()
{
{
NormalSummoned
=
false
;
NormalSummoned
=
false
;
...
@@ -206,6 +207,13 @@ namespace WindBot.Game.AI.Decks
...
@@ -206,6 +207,13 @@ namespace WindBot.Game.AI.Decks
}
}
return
true
;
return
true
;
}
}
private
bool
RescueRabbitSummon
()
{
return
AI
.
Utils
.
GetBotAvailZonesFromExtraDeck
()
>
0
||
AI
.
Utils
.
GetMatchingCards
(
Enemy
.
MonsterZone
,
card
=>
card
.
GetDefensePower
()
>=
1900
).
Count
==
0
||
AI
.
Utils
.
GetMatchingCards
(
Enemy
.
MonsterZone
,
card
=>
card
.
GetDefensePower
()
<
1900
).
Count
>
AI
.
Utils
.
GetMatchingCards
(
Bot
.
MonsterZone
,
card
=>
card
.
Attack
>=
1900
).
Count
;
}
private
bool
RescueRabbitEffect
()
private
bool
RescueRabbitEffect
()
{
{
...
@@ -255,7 +263,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -255,7 +263,7 @@ namespace WindBot.Game.AI.Decks
}
}
private
bool
NormalSummon
()
private
bool
NormalSummon
()
{
{
return
true
;
return
Card
.
Id
!=
CardId
.
RescueRabbit
;
}
}
private
bool
GagagaCowboySummon
()
private
bool
GagagaCowboySummon
()
...
...
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